/* ==========================================================================
   Cloudcopy Direct — App UI (Geschwister von Hardcopy: Tinten-Sidebar, Inter + Archivo Black)
   ========================================================================== */
:root {
  --bg: #f4f4f1;
  --bg-2: #ecece7;
  --card: #ffffff;
  --ink: #15151a;
  --ink-2: #3a3a44;
  --muted: #6f6f7b;
  --muted-2: #a2a2ad;
  --rule: #e4e4de;
  --rule-2: #d4d4cc;
  --blue: #2f5bff;
  --blue-2: #1f44e0;
  --blue-soft: #e8edff;
  --yellow: #ffd400;
  --yellow-soft: #fff6c4;
  --green: #14925a;
  --green-soft: #dcf5e8;
  --red: #d6342c;
  --red-soft: #fce4e2;
  --orange: #e2670f;
  --orange-soft: #fdeede;
  --violet: #6b4fe0;
  --violet-soft: #ece8fc;
  --side: #15151a;
  --side-2: #1e1e25;
  --side-ink: #d9d9e0;
  --side-muted: #85858f;
  --side-active: #2a2a33;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 10px;
  --r-lg: 14px;
  --r-sm: 7px;
  --shadow: 0 1px 2px rgba(21, 21, 26, 0.05), 0 10px 30px -16px rgba(21, 21, 26, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(21, 21, 26, 0.45);
  --side-w: 236px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Funnel-Ansicht: eine Farbe pro Bedeutung */
  --people: #4f46e5;
  --people-2: #818cf8;
  --people-soft: #eef0ff;
  --money: #059669;
  --money-2: #34d399;
  --money-soft: #ecfdf5;
  --cost-1: #52525b;
  --cost-2: #71717a;
  --cost-3: #a1a1aa;
  --cost-4: #d4d4d8;
  --hair: rgba(21, 21, 26, 0.08);
  --zone-good: #bbf0d6;
  --zone-mid: #fde9a6;
  --zone-bad: #fbd0cc;
  --tnum: "tnum" 1, "cv11" 1, "ss01" 1;
  --jr-r-xl: 20px;
  --jr-r-lg: 14px;
  --jr-r-sm: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .strong { font-weight: 650; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.col { display: grid; gap: 12px; align-content: start; }
.grow { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp { flex: 1; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 14px; }
.num { font-family: var(--font); font-weight: 600; font-feature-settings: var(--tnum); letter-spacing: -0.015em; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 12px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-size: 17px; letter-spacing: 0.01em; line-height: 1; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--side-muted); margin-top: 3px; }
.nav-cta { margin: 0 4px 12px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-weight: 520; font-size: 14px; }
.nav a svg { width: 18px; height: 18px; opacity: 0.8; flex: none; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--yellow); }
.nav-sep { height: 1px; background: #2a2a33; margin: 10px 8px; }
.nav-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--side-muted); padding: 8px 12px 4px; }
.side-foot { margin-top: auto; border-top: 1px solid #2a2a33; padding: 12px 8px 0; display: grid; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me-name { font-weight: 600; font-size: 13.5px; color: #fff; }
.me-role { font-size: 11.5px; color: var(--side-muted); }
.usage-pill { font-size: 11.5px; color: var(--side-muted); display: flex; justify-content: space-between; }
.side-foot button { background: transparent; border: 1px solid #33333c; color: var(--side-ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 12.5px; }
.side-foot button:hover { background: var(--side-2); }

.main { min-width: 0; padding: 28px 34px 60px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%); padding: 0 2px; }

/* ------------------------------------------------------------ buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink); border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.12s, border-color 0.12s, transform 0.12s; line-height: 1.2; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2b2b33; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-2); }
.btn.yellow { background: var(--yellow); border-color: #e8c000; color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 12px 20px; font-size: 15px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.icon { padding: 7px; }
.side .btn.yellow { width: 100%; padding: 10px 14px; font-size: 14px; }

.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--rule-2); background: #fff; border-radius: 9px; padding: 9px 11px; outline: none; transition: border-color 0.12s, box-shadow 0.12s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.textarea.code { font-family: var(--mono); font-size: 12.5px; min-height: 120px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236f6f7b' d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 18px; padding-right: 30px; }
.input.sm, .select.sm { padding: 6px 9px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.check input { margin-top: 3px; accent-color: var(--blue); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { appearance: none; width: 36px; height: 21px; border-radius: 999px; background: var(--rule-2); position: relative; cursor: pointer; transition: background 0.15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s var(--ease); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(15px); }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 6px 11px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button.on { background: var(--ink); color: #fff; }

/* slider (Regler) */
.dial { display: grid; gap: 4px; }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dial-name { font-weight: 650; font-size: 13px; }
.dial-val { font-size: 12px; color: var(--muted); }
.dial-val.changed { color: var(--blue); font-weight: 650; }
.dial input[type="range"] { width: 100%; accent-color: var(--blue); margin: 2px 0; }
.dial-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }

/* ------------------------------------------------------------ cards */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card-title { font-weight: 750; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.stat-v { font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--rule-2); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 650; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.blue { background: var(--blue-soft); color: var(--blue-2); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.yellow { background: var(--yellow-soft); color: #8a6d00; }
.badge.orange { background: var(--orange-soft); color: #b1500c; }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.ink { background: var(--ink); color: #fff; }
.type-tsl { background: #e8edff; color: #1f44e0; } .type-advertorial { background: #dcf5e8; color: #0f7a4a; } .type-listicle { background: #fdeede; color: #b1500c; }
.type-prelander { background: #ece8fc; color: #5b3fd0; } .type-offer { background: #fff6c4; color: #8a6d00; } .type-vsl { background: #fce4e2; color: #b42a23; } .type-article { background: #ecece7; color: #3a3a44; }
.type-upsell { background: #e3f6ea; color: #13703d; } .type-downsell { background: #e6f4f8; color: #1d6a80; } .type-thankyou { background: #fdebf3; color: #a3265f; }

/* page cards */
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--rule); border-radius: 14px; display: flex; flex-direction: column; cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s; position: relative; }
.pcard:has(.menu) { z-index: 30; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pthumb { aspect-ratio: 16 / 9; background: var(--bg-2); position: relative; overflow: hidden; border-radius: 13px 13px 0 0; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb-text { position: absolute; inset: 0; padding: 14px; display: flex; align-items: flex-end; font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--ink); background: linear-gradient(135deg, #fff 0%, var(--bg-2) 100%); }
.pthumb .badge { position: absolute; top: 10px; left: 10px; }
.pthumb .gen { position: absolute; inset: 0; background: rgba(21, 21, 26, 0.55); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; }
.pbody { padding: 12px 14px 12px; display: grid; gap: 6px; flex: 1; }
.ptitle { font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.pmenu { position: absolute; top: 8px; right: 8px; z-index: 5; }
.pmenu .btn { background: rgba(255, 255, 255, 0.92); }
.new-card { border: 2px dashed var(--rule-2); background: transparent; display: grid; place-items: center; min-height: 250px; color: var(--muted); font-weight: 650; gap: 8px; text-align: center; }
.new-card:hover { border-color: var(--ink); color: var(--ink); }
.new-card .plus { font-size: 34px; line-height: 1; }

/* choice cards (Wizard) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.choice { border: 1.5px solid var(--rule-2); border-radius: 13px; background: #fff; padding: 14px 16px; cursor: pointer; text-align: left; display: grid; gap: 6px; align-content: start; transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s; }
.choice:hover { border-color: var(--ink-2); }
.choice.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.choice-t { font-weight: 750; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.choice-d { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.choice .rec { color: var(--green); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.choice.big { padding: 20px; }
.choice.big .choice-t { font-size: 16px; }
.choice-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); font-size: 19px; }

.wizard { max-width: 980px; }
.steps { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); font-size: 12.5px; font-weight: 650; color: var(--muted); }
.step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); font-size: 11.5px; }
.step.on { color: var(--ink); border-color: var(--ink); }
.step.on b { background: var(--ink); color: #fff; }
.step.done b { background: var(--green); color: #fff; }
.wiz-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.section-t { font-weight: 800; font-size: 16px; margin: 6px 0 4px; }
.section-d { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ------------------------------------------------------------ template previews */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tpl { background: #fff; border: 1.5px solid var(--rule); border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tpl-prev { height: 250px; overflow: hidden; position: relative; background: #f3f4f6; border-bottom: 1px solid var(--rule); }
.tpl-prev iframe { width: 100%; height: 100%; border: 0; pointer-events: none; background: #fff; display: block; }
.tpl-info { padding: 12px 14px; display: grid; gap: 5px; }
.tpl-name { font-weight: 750; }

/* ------------------------------------------------------------ modal, toast, misc */
.overlay { position: fixed; inset: 0; background: rgba(21, 21, 26, 0.42); display: grid; place-items: center; z-index: 60; padding: 20px; animation: fade 0.15s ease; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop 0.18s var(--ease); }
.modal.wide { width: min(1100px, 100%); }
.modal.full { width: min(1320px, 100%); height: calc(100vh - 40px); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.modal-h h2 { font-size: 17px; font-weight: 800; }
.modal-b { padding: 18px 20px; overflow: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--rule); display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 90; width: min(380px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: #fff; border-radius: 11px; padding: 11px 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; animation: pop 0.2s var(--ease); }
.toast.err { background: var(--red); }
.toast.ok { background: #0f6b43; }
.toast .x { margin-left: auto; cursor: pointer; opacity: 0.7; background: none; border: 0; color: #fff; }
.toast-act { background: #fff; color: var(--ink); border: 0; border-radius: 7px; padding: 3px 9px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; margin-left: 10px; white-space: nowrap; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot 0.7s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty .big { font-size: 38px; }
.bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width 0.4s var(--ease); }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: #fff; }
.note { background: var(--yellow-soft); border: 1px solid #f0dd84; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.note.blue { background: var(--blue-soft); border-color: #cdd7ff; }
.note.red { background: var(--red-soft); border-color: #f4c3bf; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; }
.secret { font-family: var(--mono); font-size: 15px; background: var(--bg-2); border-radius: 9px; padding: 10px 12px; letter-spacing: 0.04em; user-select: all; }

/* ------------------------------------------------------------ login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 20% -10%, #e8edff 0%, transparent 60%), radial-gradient(900px 400px at 110% 110%, #fff6c4 0%, transparent 55%), var(--bg); }
.login { width: min(420px, 100%); padding: 30px 30px 26px; }
.login h1 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 18px 0 6px; }

/* ------------------------------------------------------------ editor */
.ed { display: grid; grid-template-rows: 54px 1fr; height: 100vh; background: var(--bg-2); }
.ed-top { background: #fff; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; }
.ed-title { border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font-weight: 700; font-size: 14.5px; min-width: 120px; max-width: 420px; background: transparent; }
.ed-title:hover { border-color: var(--rule-2); }
.ed-title:focus { border-color: var(--blue); outline: none; background: #fff; }
.save-state { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state.dirty { color: var(--orange); }
.save-state.err { color: var(--red); }
.ed-body { display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; min-height: 0; }
.ed-left, .ed-right { background: #fff; min-height: 0; display: flex; flex-direction: column; }
.ed-left { border-right: 1px solid var(--rule); }
.ed-right { border-left: 1px solid var(--rule); }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--rule); overflow-x: auto; flex: none; }
.tab { border: 0; background: transparent; padding: 8px 10px 9px; font-weight: 650; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.tab .badge { padding: 0 6px; font-size: 10.5px; }
.pane { padding: 14px; overflow: auto; flex: 1; min-height: 0; display: grid; gap: 14px; align-content: start; }
.ed-canvas-wrap { min-height: 0; overflow: hidden; position: relative; display: flex; justify-content: center; }
.ed-canvas-wrap iframe { border: 0; width: 100%; height: 100%; background: transparent; transition: width 0.25s var(--ease); }
.ed-canvas-wrap.mobile iframe { width: 400px; box-shadow: 0 0 0 1px var(--rule-2), var(--shadow-lg); margin: 16px 0; height: calc(100% - 32px); border-radius: 22px; }
.gen-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: grid; gap: 7px; width: min(560px, calc(100% - 24px)); }
.gen-banner .bar { background: #33333c; }
.gen-banner .bar > i { background: var(--yellow); }
.gen-banner .btn { background: transparent; color: #fff; border-color: #44444f; }
.outline-pane { gap: 0 !important; padding: 8px 8px 14px !important; }
.outline-bar { gap: 6px; padding: 2px 4px 8px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.outline-item { min-width: 0; display: flex; gap: 7px; align-items: center; padding: 3px 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); border: 1px solid transparent; }
.outline-item:hover { background: var(--bg); }
.outline-item.on { background: var(--blue-soft); color: var(--ink); }
.outline-item.drag-over { border-color: var(--blue); border-style: dashed; }
.outline-item .oi { flex: 0 0 22px; font-size: 10.5px; font-weight: 750; color: var(--muted); text-align: center; }
.outline-item .x { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outline-item.major .x { font-weight: 700; color: var(--ink); }
.outline-item.major .oi { color: var(--blue); }
.outline-item.para-run .x { color: var(--muted); font-style: italic; }
.outline-sec { display: flex; gap: 6px; align-items: center; width: 100%; text-align: left; font: inherit; font-size: 10.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: transparent; border: 0; padding: 9px 6px 3px; cursor: pointer; }
.palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pal { border: 1px solid var(--rule); background: #fff; border-radius: 9px; padding: 8px; cursor: pointer; text-align: left; display: grid; gap: 2px; font-size: 12.5px; font-weight: 650; }
.pal:hover { border-color: var(--ink-2); }
.pal small { font-weight: 450; color: var(--muted); font-size: 11px; line-height: 1.3; }
.pgroup { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 6px 0 -4px; }
.qa { display: flex; flex-wrap: wrap; gap: 6px; }
.qa .btn { font-size: 12px; padding: 5px 9px; }
.panel-box { border: 1px solid var(--rule); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.panel-box h4 { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.panel-box h4 svg, .section-t svg, .card-title svg { width: 16px; height: 16px; flex: none; }
.seg button svg { width: 16px; height: 16px; display: block; }
.chip svg, .tab svg { width: 14px; height: 14px; }
.issue { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.issue:hover { background: var(--bg); }
.issue .ico { flex: none; width: 20px; text-align: center; }
.lv { border: 1px solid var(--rule); border-radius: 11px; padding: 10px 12px; display: grid; gap: 6px; }
.lv-h { font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.cm { border: 1px solid var(--rule); border-radius: 11px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; }
.cm.resolved { opacity: 0.55; }
.cm-q { font-size: 12px; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-grid.sm { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mitem { position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1; cursor: pointer; border: 2px solid transparent; }
.mitem.on { border-color: var(--blue); }
.mitem img, .mitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mitem .badge { position: absolute; left: 6px; top: 6px; }
.mitem .mcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; font-size: 11px; }
.jobs-dock { position: fixed; left: calc(var(--side-w) + 18px); bottom: 18px; display: grid; gap: 8px; z-index: 50; width: 300px; }
.ed .jobs-dock { left: 266px; }
.jobcard { background: #fff; border: 1px solid var(--rule); border-radius: 11px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12.5px; display: grid; gap: 6px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; z-index: 40; display: grid; }
.menu button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.menu button:hover { background: var(--bg); }
.menu button svg { width: 16px; height: 16px; flex: none; }
.menu button.danger, .menu button.danger svg { color: var(--red); }
.rel { position: relative; }
.preview-frame { width: 100%; height: 100%; border: 0; background: #f3f4f6; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rule-2); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.theme-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.theme-card { border: 1.5px solid var(--rule-2); border-radius: 10px; padding: 8px; cursor: pointer; background: #fff; text-align: left; font-size: 12px; font-weight: 650; display: grid; gap: 6px; }
.theme-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.theme-sample { height: 46px; border-radius: 6px; display: grid; place-items: center; font-size: 15px; }
.angle { border: 1.5px solid var(--rule-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 5px; background: #fff; text-align: left; }
.angle.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.angle-h { font-weight: 750; }
.angle-hl { font-size: 13px; font-style: italic; }
.swipe-card { background: #fff; border: 1px solid var(--rule); border-radius: 13px; padding: 14px 16px; display: grid; gap: 8px; cursor: pointer; }
.swipe-card:hover { box-shadow: var(--shadow); }
.swipe-hl { font-weight: 800; font-size: 15px; line-height: 1.3; }
.swipe-why { font-size: 12.5px; color: var(--muted); }
.hl-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: start; }

@media (max-width: 1280px) {
  .ed-body { grid-template-columns: 220px minmax(0, 1fr) 330px; }
}
@media (max-width: 1080px) {
  .ed-body { grid-template-columns: 0 minmax(0, 1fr) 320px; }
  .ed-left { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .nav { display: flex; flex-wrap: wrap; }
  .side-foot, .nav-label, .nav-sep { display: none; }
  .main { padding: 20px 16px 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-right { display: none; }
  .jobs-dock { left: 18px; }
}

/* ------------------------------------------------------------ Listenansicht Seiten */
.plist { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: visible; }
.plist table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.plist th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; cursor: pointer; user-select: none; }
.plist th.sorted { color: var(--ink); }
.plist td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.plist tr:last-child td { border-bottom: 0; }
.plist tbody tr { cursor: pointer; }
.plist tbody tr:hover { background: var(--bg); }
.plist .pl-thumb { width: 56px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--bg-2); display: block; }
.plist .pl-title { font-weight: 650; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-toggle .seg button { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------ Hinweise / Sperren */
.lock-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 6; background: #fff; border: 1px solid #f0dd84; box-shadow: var(--shadow-lg); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; font-size: 13px; width: min(620px, calc(100% - 24px)); }
.lock-banner .ico { font-size: 20px; }
.key-usage { display: grid; gap: 4px; }
.key-usage .bar { background: #33333c; }
.key-usage .bar > i { background: var(--yellow); }
.risk { border: 1px solid #f4c3bf; background: var(--red-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- Ads */
.ads-badge { cursor: pointer; border: 1px dashed var(--rule-2); background: #fff; font: inherit; font-size: 11.5px; font-weight: 650; }
.ads-badge:hover { border-color: var(--blue); color: var(--blue); }
.dna-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.style-card { border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; display: grid; gap: 7px; align-content: start; transition: border-color 0.12s, box-shadow 0.12s; }
.style-card:hover { border-color: #c9c9d6; }
.style-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.style-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.style-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.check-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.check-dot svg { width: 13px; height: 13px; }
.risk-note { color: var(--red); line-height: 1.4; }
.ads-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ad-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ad-card.sel { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.ad-card.fav { border-color: #f1d54a; }
.ad-media { position: relative; background: var(--bg-2); aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; }
.ad-media.r-16-9 { aspect-ratio: 16 / 9; }
.ad-media.r-1-1 { aspect-ratio: 1 / 1; }
.ad-media.r-4-5 { aspect-ratio: 4 / 5; }
.ad-media.r-9-16 { aspect-ratio: 9 / 16; max-height: 460px; }
.ad-media img, .ad-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-media.r-9-16 video, .ad-media.r-9-16 img { object-fit: contain; background: #000; }
.ad-pending { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; background: rgba(244, 244, 241, 0.82); font-size: 13px; color: var(--ink-2); text-align: center; padding: 12px; }
.ad-pending.err { color: var(--red); }
.ad-check { position: absolute; top: 8px; left: 8px; background: rgba(255, 255, 255, 0.92); border-radius: 7px; padding: 4px 6px; line-height: 0; cursor: pointer; }
.ad-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.ad-kind { position: absolute; top: 8px; right: 8px; background: rgba(21, 21, 26, 0.78); color: #fff; font-size: 11px; font-weight: 650; border-radius: 6px; padding: 3px 7px; }
.ad-body { padding: 12px; display: grid; gap: 8px; }
.ad-hl { width: 100%; border: 1px solid var(--rule); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 14.5px; font-weight: 650; line-height: 1.35; resize: vertical; min-height: 58px; }
.ad-hl:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.ad-hl.over { border-color: var(--red); background: var(--red-soft); }
.ad-hl-ro { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.over-count { color: var(--red); font-weight: 650; }
.ad-alts { display: flex; flex-direction: column; gap: 4px; }
.ad-alt { text-align: left; border: 1px dashed var(--rule-2); background: var(--bg); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; line-height: 1.35; }
.ad-alt:hover:not([disabled]) { border-color: var(--blue); color: var(--ink); }
.ad-hyp { line-height: 1.4; }
.ad-actions { gap: 6px; flex-wrap: wrap; }
.btn.fav-on { background: var(--yellow-soft); border-color: #f1d54a; color: #8a6d00; }
@media (max-width: 1100px) { .dna-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ads-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dna-grid, .ads-opts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Funnels */
.funnel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.funnel-card { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: grid; gap: 8px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
.funnel-card:hover { border-color: #c9c9d6; box-shadow: var(--shadow); }
.funnel-name { font-weight: 750; font-size: 17px; line-height: 1.25; }
.funnel-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; }
.funnel-kpis div { display: grid; }
.funnel-kpis strong { font-size: 15px; }
.funnel-kpis span { font-size: 11.5px; color: var(--muted); }
.funnel-title { font-family: var(--display); font-size: 26px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 2px 6px; margin: 6px 0 6px -6px; width: 100%; max-width: 760px; color: var(--ink); }
.funnel-title:hover:not([disabled]), .funnel-title:focus { border-color: var(--rule-2); background: #fff; outline: none; }
.verdict { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--rule); background: #fff; margin-bottom: 14px; }
.verdict.profitabel { background: #eefaf2; border-color: #bfe8cf; }
.verdict.knapp { background: var(--yellow-soft); border-color: #f1e39a; }
.verdict.verlust { background: var(--red-soft); border-color: #f4c3bf; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.kpi-v { font-weight: 750; font-size: 17px; white-space: nowrap; }
.kpi.pos .kpi-v { color: var(--green, #1f9d55); }
.kpi.neg .kpi-v { color: var(--red); }
.kpi-l { font-size: 11.5px; color: var(--muted); }
.flow { display: flex; gap: 6px; align-items: stretch; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.flow-arrow { align-self: center; color: var(--muted); font-size: 18px; flex: none; }
.step { flex: 0 0 210px; scroll-snap-align: start; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 8px; }
.step.linked { border-color: #bfe8cf; }
.step.off { opacity: 0.55; background: var(--bg); }
.step-ico { font-size: 16px; }
.step-nums { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.step-nums > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step-page { margin-top: auto; display: grid; gap: 6px; }
.step-page-link { display: flex; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 12.5px; color: inherit; background: var(--bg); border: 1px solid var(--rule); border-radius: 9px; padding: 6px; cursor: pointer; min-width: 0; }
.step-page-link:hover { border-color: var(--blue); }
.step-page-link img, .step-page-ph { width: 40px; height: 30px; border-radius: 5px; object-fit: cover; flex: none; background: var(--bg-2); font-size: 9px; display: grid; place-items: center; color: var(--muted); }
.step-page-link .grow { min-width: 0; }
.offer-mini { display: grid; gap: 3px; font-size: 12.5px; }
.offer-mini .row { gap: 6px; }
.num-in { display: inline-flex; align-items: center; gap: 4px; }
.num-in .input { text-align: right; padding-right: 6px; min-width: 0; }
.num-unit { font-size: 11.5px; color: var(--muted); }
.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.tabs-row .tab { border: 0; background: transparent; font: inherit; font-weight: 650; font-size: 14px; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-row .tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.calc { display: grid; gap: 10px; margin-top: 14px; }
.calc-group { background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.calc-head { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 14px; background: transparent; border: 0; padding: 11px 14px; cursor: pointer; }
.calc-head:hover { background: var(--bg); }
.calc-body { padding: 4px 14px 14px; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.cfield { display: grid; gap: 4px; font-size: 12.5px; }
.cfield-l { color: var(--ink-2); font-weight: 600; display: flex; gap: 5px; align-items: center; }
.cfield-l i { font-style: normal; font-size: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); color: var(--muted); display: inline-grid; place-items: center; cursor: help; }
.cfield .num-in { width: 100%; }
.cfield .num-in .input { flex: 1; }
.calc-table-wrap { overflow-x: auto; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.calc-table th { text-align: left; font-weight: 650; color: var(--muted); padding: 6px; white-space: nowrap; border-bottom: 1px solid var(--rule); cursor: help; }
.calc-table td { padding: 5px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.calc-table td .input { min-width: 70px; }
.calc-table .sub-row td { background: var(--bg); }
.calc-table .sub-row .tiny { display: block; margin-bottom: 2px; }
.reasons { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.mail-list { display: grid; gap: 6px; }
.mail-row { display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.mail-row:hover { border-color: var(--blue); }
.mail-row svg { width: 16px; height: 16px; color: var(--muted); }
.mail-day { flex: none; width: 52px; font-size: 12px; font-weight: 700; color: var(--blue); }
.mail-head { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 2px; }
.mail-body { font-size: 15px; line-height: 1.6; max-width: 640px; }
.mail-body p { margin: 0 0 12px; }
.mail-body ul { margin: 0 0 12px; padding-left: 20px; }
.mail-body .ph { background: var(--yellow-soft); border-radius: 4px; padding: 0 3px; }
.link-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.link-item { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 9px 12px; cursor: pointer; min-width: 0; }
.link-item:hover { border-color: var(--blue); }
.link-item.dim { opacity: 0.6; }
.mail-cta { display: inline-block; background: var(--ink); color: #fff; border-radius: 8px; padding: 9px 16px; font-weight: 650; font-size: 14px; }

/* ---------------------------------------------------------------- KI-Vorschläge prüfen */
.proposal-banner { border-color: #c9d6ff; }
.review { display: grid; grid-template-columns: 300px 1fr; height: 100%; min-height: 0; }
.review-list { border-right: 1px solid var(--rule); overflow: auto; padding: 12px; display: grid; gap: 8px; align-content: start; background: var(--bg); }
.review-sum { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; }
.review-item { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; display: grid; gap: 4px; cursor: pointer; }
.review-item.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.review-item.off { opacity: 0.6; }
.review-diff { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.review-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rule); }
.review-col:last-child { border-right: 0; }
.review-h { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--rule); background: #fff; }
.review-frame { flex: 1; width: 100%; border: 0; min-height: 60vh; background: #fff; }
@media (max-width: 900px) { .review { grid-template-columns: 1fr; } .review-diff { grid-template-columns: 1fr; } }
.pal.drag { cursor: grab; position: relative; padding-left: 22px; }
.pal.drag:active { cursor: grabbing; }
.pal .pal-grip { position: absolute; left: 6px; top: 9px; font-size: 11px; letter-spacing: -2px; color: var(--muted); }
.pal.drag:hover { border-color: var(--blue); box-shadow: 0 2px 8px -3px rgba(47, 91, 255, 0.35); }
.style-card { padding: 0 0 12px; overflow: hidden; }
.style-card > :not(.style-img) { margin: 0 12px; }
.style-img { position: relative; aspect-ratio: 3 / 2; background: var(--bg-2); overflow: hidden; }
.style-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.style-card:hover .style-img img { transform: scale(1.04); }
.style-img .check-dot { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

/* ================================================================ Funnel (Detail)
   Farben mit Bedeutung: Indigo = Menschen, Smaragd = Geld, Grau = Kosten, Gelb nur für die eine Hauptaktion. */
.fx { max-width: 1340px; }
.fx-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-save { font-size: 12px; color: var(--muted); margin-right: 4px; }
.fx-save.err { color: var(--red); }
.fx-pill { width: auto !important; border-radius: 999px !important; padding-right: 28px; }
.fx-title { display: block; width: 100%; font-family: var(--display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.1; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 10px; padding: 4px 8px; margin: 8px 0 4px -8px; }
.fx-title:hover:not([disabled]), .fx-title:focus { border-color: var(--rule-2); background: #fff; outline: none; }

/* Kennzahlen-Box */
.fx-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 8px 24px; margin: 4px 0 18px; padding: 12px 16px 10px; border-radius: var(--jr-r-lg); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #23232c 0%, #15151a 55%, #101014 100%); box-shadow: 0 10px 24px -18px rgba(21, 21, 26, 0.55); }
.fx-hero::before { content: ""; position: absolute; left: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 0, 0.2), transparent 70%); pointer-events: none; transition: background 0.4s; }
.fx-hero.st-profitabel::before { background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%); }
.fx-hero.st-verlust::before { background: radial-gradient(circle, rgba(248, 113, 113, 0.3), transparent 70%); }
.fx-hero > * { position: relative; min-width: 0; }
.fx-hero-main { min-width: 0; align-self: center; }
.fx-hero-l { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #c9c9d1; white-space: nowrap; }
.fx-status { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.fx-status.green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.fx-status.yellow { background: rgba(255, 212, 0, 0.18); color: #ffd400; }
.fx-status.red { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.fx-status.pop { animation: fxPop 0.24s var(--ease); }
@keyframes fxPop { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.fx-hero-num { font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1; margin: 5px 0 5px; letter-spacing: -0.03em; }
.st-profitabel .fx-hero-num { color: #6ee7b7; }
.st-verlust .fx-hero-num { color: #fca5a5; }
.fx-hero-sub { font-size: 11.5px; color: #b4b4be; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-hero-side { display: grid; gap: 9px; align-content: center; min-width: 0; }
.fx-kpis { display: flex; min-width: 0; }
.fx-kpis > div { flex: 1 1 0; padding: 0 12px; min-width: 0; }
.fx-kpis > div:first-child { padding-left: 0; }
.fx-kpis > div + div { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.fx-kpi-l { font-size: 11px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-kpi-v { display: flex; align-items: baseline; gap: 6px; font-size: 16px; color: #fff; white-space: nowrap; margin-top: 1px; }
.fx-kpi-v .fx-delta { font-size: 10.5px; padding: 0 6px; }
.fx-kpi-s { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.fx-delta { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; font-feature-settings: var(--tnum); white-space: nowrap; }
.fx-delta.good { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.fx-delta.bad { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.fx-lever-cta { width: 100%; min-width: 0; display: flex; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 4px 5px 4px 9px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.fx-lever-cta:hover:not([disabled]), .fx-lever-cta:focus-visible { background: rgba(255, 212, 0, 0.08); border-color: rgba(255, 212, 0, 0.45); outline: none; }
.fx-lever-cta[disabled] { cursor: default; }
.fx-bolt { display: grid; place-items: center; color: var(--yellow); flex: none; }
.fx-bolt svg { width: 15px; height: 15px; }
.fx-lever-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9c9d1; }
.fx-lever-txt strong { color: #fff; font-weight: 650; }
.fx-lever-gain { color: var(--yellow); font-weight: 700; white-space: nowrap; flex: none; }
.fx-lever-sub { color: rgba(255, 255, 255, 0.5); font-size: 11.5px; white-space: nowrap; flex: none; }
.fx-apply { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 12px; border-radius: 8px; padding: 4px 11px; white-space: nowrap; flex: none; }
.fx-unit { grid-column: 1 / -1; }
.fx-unit-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; margin-bottom: 7px; color: #e4e4e7; }
.fx-unit-r { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.fx-unit-h .muted { color: rgba(255, 255, 255, 0.5); }
.fx-unit-h .muted b { color: #e4e4e7; font-weight: 600; }
.fx-unit-h .pos { color: var(--money-2); font-weight: 600; }
.fx-unit-h .neg { color: #fca5a5; font-weight: 600; }
.fx-unit-h .pos b, .fx-unit-h .neg b { font-weight: 700; }
.fx-gap { color: var(--yellow); font-weight: 700; }
.fx-ok { color: var(--money-2); font-weight: 700; }
.fx-unit-bar { position: relative; display: flex; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.fx-unit-bar i { display: block; height: 100%; border-right: 1.5px solid #15151a; transition: width 0.35s var(--ease), opacity 0.15s; }
.fx-unit-bar i:first-child { border-radius: 4px 0 0 4px; }
.fx-unit.hov .fx-unit-bar i:not(.on):not(.target):not(.loss) { opacity: 0.4; }
.fx-unit-bar i.target { position: absolute; right: 0; top: -3px; bottom: -3px; border: 1.5px dashed var(--yellow); border-radius: 4px; background: transparent; pointer-events: none; }
.fx-unit-bar i.loss { position: absolute; top: 0; bottom: 0; border: 0; background: repeating-linear-gradient(135deg, rgba(248, 113, 113, 0.95) 0 3px, rgba(248, 113, 113, 0.5) 3px 6px); }
.fx-unit-legend { display: flex; gap: 12px; margin-top: 6px; font-size: 11px; color: #c9c9d1; overflow: hidden; }
.fx-unit-legend span { white-space: nowrap; transition: opacity 0.15s, color 0.15s; cursor: default; }
.fx-unit.hov .fx-unit-legend span { opacity: 0.5; }
.fx-unit.hov .fx-unit-legend span.on { opacity: 1; color: #fff; }
.fx-unit-legend b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* Live-Leiste unten */
.fx-live { position: sticky; bottom: 12px; z-index: 20; margin: 18px auto 0; width: max-content; max-width: 100%; overflow: hidden; display: flex; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 7px 8px 7px 10px; box-shadow: var(--shadow-lg); font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.18s, transform 0.18s var(--ease); }
.fx-live.on { opacity: 1; transform: none; pointer-events: auto; }
.fx-live-i { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; min-width: 0; overflow: hidden; }
.fx-live-i .l { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.fx-live .was { color: rgba(255, 255, 255, 0.5); }
.fx-live .arr { color: rgba(255, 255, 255, 0.35); }
.fx-live strong { font-weight: 650; }
.fx-live-reset { flex: none; display: flex; gap: 6px; align-items: center; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #fff; border-radius: 9px; padding: 4px 9px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fx-live-reset:hover { background: rgba(255, 255, 255, 0.08); }
.fx-live-reset svg { width: 14px; height: 14px; }

.fx-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.fx-sec-h h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0; }
.fx-sec-sub { font-size: 13px; color: var(--muted); }
.fx-sec-sub b { color: var(--ink); font-weight: 650; }

/* Karten unter dem Strom */
.fx-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.fx-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--jr-r-lg); padding: 18px 20px; box-shadow: 0 1px 2px rgba(21, 21, 26, 0.04); min-width: 0; }
.fx-card-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-card-h h3 { margin: 0; font-size: 16.5px; }
.fx-drivers { display: grid; gap: 18px; }
.fx-dgroup { display: grid; gap: 8px; }
.fx-dg-h { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fx-slider { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(140px, 1.6fr) 104px; gap: 14px; align-items: center; font-size: 13px; }
.fx-slider-l { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-range { position: relative; display: block; min-width: 0; padding: 7px 0; }
.fx-slider.zoned .fx-range { padding-bottom: 16px; }
.fx-slider input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 0; border-radius: 999px; background: linear-gradient(90deg, var(--people) var(--p, 50%), var(--bg-2) var(--p, 50%)); outline: none; cursor: pointer; }
.fx-slider.zoned input[type="range"] { background: var(--track); }
.fx-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--people); box-shadow: 0 1px 4px rgba(21, 21, 26, 0.25); cursor: grab; transition: transform 0.1s, border-color 0.15s; }
.fx-slider input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.fx-slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--people); box-shadow: 0 1px 4px rgba(21, 21, 26, 0.25); cursor: grab; }
.fx-slider.z-good input[type="range"]::-webkit-slider-thumb { border-color: var(--money); }
.fx-slider.z-mid input[type="range"]::-webkit-slider-thumb { border-color: #c79a00; }
.fx-slider.z-bad input[type="range"]::-webkit-slider-thumb { border-color: var(--red); }
.fx-slider.z-good input[type="range"]::-moz-range-thumb { border-color: var(--money); }
.fx-slider.z-mid input[type="range"]::-moz-range-thumb { border-color: #c79a00; }
.fx-slider.z-bad input[type="range"]::-moz-range-thumb { border-color: var(--red); }
.fx-slider input[type="range"]:focus-visible { box-shadow: 0 0 0 3px var(--people-soft); }
.fx-slider input[type="range"]:disabled { opacity: 0.5; cursor: default; }
.fx-mark { font-style: normal; position: absolute; top: 3px; height: 14px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; pointer-events: none; }
.fx-mark b { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.fx-mark.off { background: transparent; }
.fx-mark.off b { transform: translateX(-100%); }
.fx-mix-bar { position: relative; height: 36px; border-radius: 10px; overflow: hidden; background: var(--bg-2); user-select: none; touch-action: none; }
.fx-mix-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; }
.fx-mix-handle { position: absolute; top: 5px; bottom: 5px; width: 12px; transform: translateX(-50%); border-radius: 6px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); cursor: ew-resize; z-index: 2; }
.fx-mix-handle::after { content: ""; position: absolute; left: 4px; right: 4px; top: 30%; bottom: 30%; border-left: 1px solid #b4b4be; border-right: 1px solid #b4b4be; }
.fx-mix-handle.off { cursor: default; display: none; }
.fx-mix-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-top: 9px; color: var(--ink-2); }
.fx-mix-legend b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.fx-levers { display: grid; gap: 2px; }
.fx-lever { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; outline: none; transition: background 0.12s; }
.fx-lever:hover, .fx-lever.on, .fx-lever:focus-visible { background: var(--bg); }
.fx-lever-t { display: flex; flex-direction: column; min-width: 0; }
.fx-lever-t strong { font-size: 13.5px; }
.fx-lever-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-lever-bar i { display: block; flex: none; height: 8px; border-radius: 4px; background: var(--cost-4); min-width: 4px; transition: width 0.35s var(--ease); }
.fx-lever-bar i.top { background: var(--yellow); }
.fx-lever-bar span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fx-lever-bar em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lever-pv { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--muted); }
.fx-lever-pv b { color: var(--money); font-weight: 700; }
.fx-lever-t, .fx-lever-bar, .fx-lever-pv { grid-column: 1; }
.fx-lever .btn { grid-column: 2; grid-row: 1 / span 3; }
.fx-diags { display: grid; gap: 14px; }
.fx-diag-h { font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.fx-diag-h b { color: var(--ink); font-weight: 650; }
.fx-more summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fx-more[open] summary { margin-bottom: 8px; }
.fx-reasons { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 1080px) { .fx-hero, .fx-grid { grid-template-columns: minmax(0, 1fr); } .fx-unit-h { flex-wrap: wrap; row-gap: 2px; } .fx-slider { grid-template-columns: 1fr 104px; gap: 4px 12px; } .fx-slider .fx-range { grid-column: 1 / -1; grid-row: 2; } }

/* Messlatte mit Zonen (rot · gelb · grün) */
.ruler { display: grid; gap: 4px; }
.ruler-track { position: relative; height: 6px; border-radius: 3px; }
.ruler-goal { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--money); border-radius: 1px; }
.ruler-bad { position: absolute; top: -1px; bottom: -1px; width: 1px; background: rgba(214, 52, 44, 0.45); }
.ruler-mark { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: left 0.3s var(--ease), border-color 0.2s; }
.ruler.good .ruler-mark { border-color: var(--money); }
.ruler.mid .ruler-mark { border-color: #c79a00; }
.ruler.bad .ruler-mark { border-color: var(--red); }
.ruler-l { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }
.ruler-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================ Funnel-Journey (Strom + Stufen) */
.jr { container: jr / inline-size; background: #fff; border: 1px solid var(--rule); border-radius: var(--jr-r-xl); box-shadow: 0 1px 2px rgba(21, 21, 26, 0.04), 0 24px 48px -36px rgba(21, 21, 26, 0.25); margin-bottom: 18px; }
.jr-scroll { overflow-x: auto; scrollbar-width: thin; border-radius: var(--jr-r-xl); }
.jr-inner { min-width: calc(var(--n) * 130px); padding: 16px 14px 14px; }
.jr-heads, .jr-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.jr-head { text-align: left; padding: 0 4px; min-width: 0; }
.jr-big { display: flex; align-items: baseline; font-size: 20px; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.jr-cap { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-sub-money { font-size: 12px; color: var(--money); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-sub-money span { color: var(--muted); font-weight: 400; }
.jr-delta { background: var(--money-soft); color: var(--money); font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 6px; letter-spacing: 0; }
.jr-band { position: relative; height: 104px; margin: 28px 0 30px; z-index: 3; }
.jr-stream { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.jr-buyline { stroke: rgba(21, 21, 26, 0.18); stroke-width: 1; stroke-dasharray: 2 3; }
.jr-ghost { fill: none; stroke: rgba(21, 21, 26, 0.35); stroke-width: 1.2; stroke-dasharray: 4 5; }
.jr-ghost.preview { stroke: var(--money); stroke-width: 1.6; }
.jr-axis { position: absolute; top: -20px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; pointer-events: none; }
.jr-loss { position: absolute; top: calc(100% + 5px); transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--muted); pointer-events: none; }

/* Prozent-Pillen (ziehbar) */
.jr-pill { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; min-width: 74px; background: #fff; border-radius: 12px; padding: 3px 9px 5px; box-shadow: 0 6px 18px -8px rgba(21, 21, 26, 0.35), 0 0 0 1px rgba(21, 21, 26, 0.07); z-index: 2; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; transition: box-shadow 0.15s; }
.jr-pill.ro { cursor: default; }
.jr-pill.ok { box-shadow: 0 6px 18px -8px rgba(21, 21, 26, 0.35), 0 0 0 1.5px var(--money); }
.jr-pill.hot { box-shadow: 0 6px 18px -8px rgba(21, 21, 26, 0.35), 0 0 0 2px var(--yellow); }
.jr-pill:hover:not(.ro), .jr-pill:focus-visible { box-shadow: 0 8px 22px -8px rgba(21, 21, 26, 0.4), 0 0 0 1.5px var(--people); z-index: 4; }
.jr-pill.scrubbing { box-shadow: 0 0 0 2px var(--people), 0 10px 24px -8px rgba(79, 70, 229, 0.45); z-index: 5; }
.jr-pill.hl { animation: jrPulse 1.1s ease-out 2; }
@keyframes jrPulse { 0% { box-shadow: 0 0 0 2px var(--yellow), 0 0 0 2px rgba(255, 212, 0, 0.6); } 100% { box-shadow: 0 0 0 2px var(--yellow), 0 0 0 9px rgba(255, 212, 0, 0); } }
.jr-pill-v { display: inline-flex; align-items: baseline; gap: 2px; font-size: 15.5px; line-height: 1.2; color: var(--ink); }
.jr-pill-v small { font-size: 11px; color: var(--muted); font-weight: 600; }
.jr-pill-v.editing input { width: 48px; border: 0; outline: 0; font: inherit; font-weight: 650; background: var(--people-soft); border-radius: 5px; padding: 0 3px; text-align: right; color: var(--ink); }
.jr-pill-cap { font-size: 11px; font-weight: 500; color: var(--ink-2); white-space: nowrap; line-height: 1.15; }
.jr-track { position: relative; display: block; width: 100%; height: 2px; margin-top: 4px; background: var(--hair); border-radius: 1px; }
.jr-track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--people-2); border-radius: 1px; transition: width 0.15s; }
.jr-track .goal { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.jr-pill.ok .jr-track .fill { background: var(--money); }
.jr-bolt, .jr-float { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 6px; pointer-events: none; }
.jr-bolt { font-size: 11px; font-weight: 700; background: var(--yellow-soft); color: #6b5500; padding: 1px 6px; }
.jr-float { z-index: 6; font-size: 12px; background: #fff; padding: 2px 8px; box-shadow: var(--shadow), 0 0 0 1px var(--hair); transition: opacity 0.9s; }
.jr-float.pos { color: var(--money); }
.jr-float.neg { color: var(--red); }
.jr-float.fading { opacity: 0; }
.jr-pop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 214px; display: grid; gap: 3px; background: #fff; border-radius: 10px; box-shadow: var(--shadow), 0 0 0 1px var(--hair); padding: 8px 10px; font-size: 12px; color: var(--ink-2); text-align: left; cursor: default; opacity: 0; visibility: hidden; transition: opacity 0.12s; pointer-events: none; z-index: 6; }
.jr-pop b { color: var(--ink); }
.jr-pop .muted { font-size: 11px; }
.jr-pill:hover .jr-pop, .jr-pill:focus-visible .jr-pop { opacity: 1; visibility: visible; }
@media (hover: none) { .jr-pop { display: none; } }
.jr-stepper { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--hair); padding: 5px; z-index: 7; cursor: default; }
.jr-stepper button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--rule); background: var(--bg); font-size: 18px; font-weight: 700; cursor: pointer; color: var(--ink); }
.jr-stepper b { min-width: 60px; text-align: center; }

/* Zahl-Chips: Text mit gepunkteter Linie, Klick = Eingabe */
.jr-num { display: inline-flex; align-items: baseline; gap: 2px; font: inherit; font-weight: 600; font-size: 13.5px; font-feature-settings: var(--tnum); color: var(--ink); background: transparent; border: 0; border-bottom: 1px dotted var(--rule-2); border-radius: 4px; padding: 1px 3px; cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s; }
.jr-num small { font-size: 11px; font-weight: 500; color: var(--muted); }
.jr-num:hover:not(.ro), .jr-num.editing { background: var(--bg); border-bottom-color: var(--people); }
.jr-num.ro { cursor: default; border-bottom-color: transparent; }
.jr-num.editing { cursor: text; }
.jr-num input { width: 56px; border: 0; outline: 0; font: inherit; background: transparent; padding: 0; color: var(--ink); }
.jr-num.sm { font-size: 12px; }
.jr-num.sm input { width: 40px; }

/* Stufen-Karten */
.jr-cols { align-items: stretch; }
.jr-col { background: #fff; border: 1px solid var(--rule); border-radius: var(--jr-r-lg); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; transition: box-shadow 0.15s; }
.jr-col.hot { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.jr-col.hl { animation: jrPulseCard 1.1s ease-out 2; }
@keyframes jrPulseCard { 0% { box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 0 0 rgba(255, 212, 0, 0.6); } 100% { box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 0 8px rgba(255, 212, 0, 0); } }
.jr-col-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; white-space: nowrap; min-width: 0; }
.jr-col-h .grow { overflow: hidden; text-overflow: ellipsis; }
.jr-col-num { display: none; }
.jr-ico { width: 28px; height: 28px; border-radius: var(--jr-r-sm); display: grid; place-items: center; background: #f6f6f4; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); flex: none; }
.jr-ico svg { width: 16px; height: 16px; }
.jr-col-b { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jr-conn { display: none; }
.jr-metrics { display: grid; gap: 3px; }
.jr-metrics > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.jr-metrics.tight { gap: 1px; }
.jr-note { font-size: 11px; color: var(--muted); line-height: 1.35; }
.jr-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 650; border: 1px solid var(--rule-2); background: #fff; border-radius: var(--jr-r-sm); padding: 6px 8px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.jr-btn:hover { border-color: var(--ink); }
.jr-btn svg { width: 14px; height: 14px; }

/* Seiten-Kacheln */
.jr-page { display: grid; gap: 4px; min-width: 0; }
.jr-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: var(--jr-r-sm); overflow: hidden; background: #fafaf9; padding: 0; cursor: pointer; }
.jr-thumb:hover { border-color: var(--ink); }
.jr-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.jr-thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); }
.jr-thumb-ph svg { width: 22px; height: 22px; }
.jr-type { position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, 0.92); border-radius: 5px; padding: 1px 5px; color: var(--ink-2); }
.jr-page-t { font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-page-m { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); }
.jr-page.compact .jr-thumb { aspect-ratio: 16 / 7; }
.jr-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; border-radius: 5px; padding: 1px 4px; }
.jr-x:hover { background: var(--bg); color: var(--red); }
.jr-empty { position: relative; aspect-ratio: 16 / 10; background: #fafaf9; border: 1px dashed rgba(21, 21, 26, 0.14); border-radius: var(--jr-r-sm); display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px; }
.jr-empty.open { aspect-ratio: auto; padding: 26px 8px 10px; }
.jr-empty.ro { color: var(--muted); font-size: 12px; text-align: center; }
.jr-empty.ro span { font-weight: 600; }
.jr-empty.ro small { display: block; font-size: 11px; color: var(--muted-2); }
.jr-create { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; background: #fff; border: 1px solid var(--rule-2); color: var(--ink); border-radius: var(--jr-r-sm); padding: 5px 8px; cursor: pointer; }
.jr-create:hover:not([disabled]) { border-color: var(--ink); }
.jr-empty.primary .jr-create { background: var(--yellow); border-color: var(--yellow); }
.jr-empty.primary .jr-create:hover:not([disabled]) { border-color: var(--ink); }
.jr-plus { font-size: 14px; font-weight: 700; line-height: 1; }
.jr-linkic { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; padding: 0; }
.jr-linkic:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.jr-linkic svg { width: 13px; height: 13px; }
.jr-choose { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.jr-choose button { font: inherit; font-size: 11px; font-weight: 600; border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.jr-choose button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.jr-optline { display: flex; align-items: center; gap: 2px; min-height: 24px; }
.jr-optline .jr-linkic { position: static; }
.jr-optbtn { font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 2px 0; cursor: pointer; white-space: nowrap; }
.jr-optbtn:hover:not([disabled]) { color: var(--ink); text-decoration: underline; }
.jr-optbtn .muted { font-weight: 400; }

/* Bump, Upsells, Nach dem Kauf */
.jr-sub { border-top: 1px solid var(--hair); padding-top: 8px; display: grid; gap: 3px; }
.jr-sub-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.jr-toggle { position: relative; flex: none; width: 26px; height: 16px; border-radius: 999px; border: 0; background: var(--cost-4); cursor: pointer; padding: 0; transition: background 0.15s; }
.jr-toggle::before { content: ""; position: absolute; inset: -8px; }
.jr-toggle i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s var(--ease); }
.jr-toggle.on { background: var(--money); }
.jr-toggle.on i { transform: translateX(10px); }
.jr-toggle:disabled { opacity: 0.5; cursor: default; }
.jr-offers { display: grid; gap: 6px; }
.jr-mix { display: flex; gap: 1px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-2); margin-bottom: 3px; }
.jr-mix i { display: block; height: 100%; }
.jr-offer { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.jr-offer b { align-self: flex-start; margin-top: 4px; width: 8px; height: 8px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(21, 21, 26, 0.06); }
.jr-offer-l { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.jr-offer-l > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.jr-offer-l em { font-style: normal; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.jr-offer strong { white-space: nowrap; }
.jr-chain { display: grid; gap: 1px; }
.jr-rung { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px; align-items: center; min-height: 28px; font-size: 11.5px; padding: 1px 4px; border-radius: 6px; cursor: pointer; }
.jr-rung:hover, .jr-rung:focus-visible { background: var(--bg); outline: none; }
.jr-rung:focus-visible { box-shadow: inset 0 0 0 1.5px var(--people); }
.jr-rung.off { opacity: 0.55; }
.jr-rung.sub { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--hair); border-radius: 0 6px 6px 0; }
.jr-rung-n { font-size: 10.5px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 5px; padding: 0 4px; min-width: 22px; text-align: center; }
.jr-rung.sub .jr-rung-n { border: 0; min-width: 0; padding: 0; color: var(--muted); }
.jr-rung .jr-num { justify-self: start; }
.jr-gain { color: var(--money); font-weight: 600; font-size: 11.5px; white-space: nowrap; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.jr-rung-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 1px 0 4px 2px; cursor: default; }
.jr-chain-sum { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 6px; }
.jr-chain-sum strong { color: var(--money); }
.jr-minipage { width: 24px; height: 18px; border-radius: 4px; border: 1px dashed var(--rule-2); background: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1; flex: none; }
.jr-minipage.on { border-style: solid; border-color: var(--rule); }
.jr-minipage img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.jr-minipage svg { width: 11px; height: 11px; }
.jr-minipage:hover:not([disabled]) { border-color: var(--ink); color: var(--ink); }
.jr-afters { display: grid; gap: 1px; }
.jr-after { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 3px 4px; border-radius: 6px; min-width: 0; }
.jr-after.off { opacity: 0.55; }
.jr-after-i { display: grid; place-items: center; color: var(--cost-2); flex: none; }
.jr-after-i svg { width: 14px; height: 14px; }
.jr-after-l { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; overflow: hidden; }
.jr-after-l > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.jr-after strong { font-weight: 650; color: var(--money); white-space: nowrap; font-size: 12px; }
.jr-after-l em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 10.5px; margin-left: 5px; }
.jr-after.off strong { color: var(--muted); }
.jr-after strong.neg { color: var(--red); }
.jr-go { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.jr-after[role="button"] { cursor: pointer; }
.jr-after[role="button"]:hover { background: var(--bg); }
.jr-after[role="button"]:hover .jr-go { background: var(--ink); color: #fff; }

/* Payback-Kurve */
.pb-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pb-chip.good { background: var(--money-soft); color: var(--money); }
.pb-chip.bad { background: var(--red-soft); color: var(--red); }
.pb-chip.sm { font-size: 11px; padding: 1px 8px; }
.pb-card .fx-card-h { margin-bottom: 8px; }
.pb { position: relative; height: 180px; margin: 22px 0 4px; touch-action: pan-y; }
.pb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.pb-later { fill: rgba(21, 21, 26, 0.03); }
.pb-area.pos { fill: var(--money-soft); }
.pb-area.neg { fill: var(--red-soft); }
.pb-zero { stroke: rgba(21, 21, 26, 0.35); stroke-width: 1; }
.pb-target { stroke: var(--money); stroke-width: 1; stroke-dasharray: 2 4; }
.pb-tail { fill: none; stroke: var(--cost-3); stroke-width: 1.5; stroke-dasharray: 4 5; }
.pb-prev { fill: none; stroke: var(--money); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.8; }
.pb-line { fill: none; stroke: var(--money); stroke-width: 2; stroke-linejoin: round; }
.pb-line.draw { animation: pbDraw 0.7s var(--ease) both; }
@keyframes pbDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pb-pbline { stroke: var(--money); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.pb-cross { stroke: rgba(21, 21, 26, 0.3); stroke-width: 1; }
.pb-lab, .pb-jump { position: absolute; font-size: 11px; color: var(--muted); white-space: nowrap; pointer-events: none; background: rgba(255, 255, 255, 0.85); border-radius: 4px; padding: 0 3px; line-height: 1.35; }
.pb-lab.zero { left: 0; transform: translateY(-120%); }
.pb-lab.target { transform: translateY(-120%); color: var(--money); }
.pb-lab.start { left: 0; transform: translateY(4px); color: var(--ink-2); }
.pb-lab.end { transform: translate(-100%, -130%); font-size: 12.5px; font-weight: 700; }
.pb-lab.end.pos { color: var(--money); }
.pb-lab.end.neg { color: var(--red); }
.pb-lab.pbd { transform: translate(-50%, 7px); color: var(--money); font-weight: 650; }
.pb-lab.later { bottom: 2px; right: 4px; font-size: 10.5px; background: transparent; }
.pb-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--money); box-shadow: 0 0 0 3px #fff; pointer-events: none; }
.pb-jump { transform: translate(calc(-100% - 4px), -125%); }
.pb-jump b { color: var(--money); font-weight: 650; }
.pb-jump.big { color: var(--ink-2); }
.pb-tip { position: absolute; top: 4px; transform: translateX(-50%); display: grid; gap: 1px; background: var(--ink); color: #fff; border-radius: 8px; padding: 5px 9px; font-size: 11.5px; pointer-events: none; z-index: 3; white-space: nowrap; box-shadow: var(--shadow); }
.pb-tip b { font-weight: 650; }
.pb-tip .pos { color: var(--money-2); }
.pb-tip .neg { color: #fca5a5; }
.pb-axis { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.pb-axis span { position: absolute; top: 0; white-space: nowrap; }
.pb-axis span.c { transform: translateX(-50%); }
.pb-axis span.r { transform: translateX(-100%); }
.pb-axis span.later { color: var(--muted-2); }
.pb-more { margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 10px; }
.pb-more summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pb-more[open] summary { margin-bottom: 14px; }

/* Wert-Leiter (in der Payback-Karte aufklappbar) */
.vl { display: grid; gap: 7px; }
.vl-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 92px; align-items: center; gap: 12px; }
.vl-l { display: grid; line-height: 1.2; }
.vl-l span { font-size: 13px; font-weight: 650; }
.vl-l small { font-size: 11px; color: var(--muted); }
.vl-track { position: relative; height: 20px; background: var(--bg); border-radius: 6px; }
.vl-track i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; min-width: 3px; transition: left 0.35s var(--ease), width 0.35s var(--ease); }
.vl-track em { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed var(--cost-2); }
.vl-track em b { position: absolute; top: -18px; left: 6px; white-space: nowrap; font-size: 11px; font-style: normal; font-weight: 700; color: var(--ink-2); }
.vl-v { text-align: right; font-size: 13px; color: var(--money); white-space: nowrap; }
.vl-v.neg { color: var(--red); }
.vl-row.total { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
.vl-row.total .vl-track { height: 26px; }
.vl-row.total .vl-track i { background: linear-gradient(90deg, var(--people), var(--people-2) 45%, var(--money-2)); top: 4px; bottom: 4px; }
.vl-row.total .vl-v { font-size: 16px; color: var(--ink); }

/* Schmal (Handy, schmales Fenster): Funnel senkrecht, Pillen in den Verbindern */
@container jr (max-width: 900px) {
  .jr-scroll { overflow: visible; }
  .jr-inner { min-width: 0; padding: 12px 12px 10px; }
  .jr-heads, .jr-band { display: none; }
  .jr-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .jr-col { margin: 8px 0 8px 24px; }
  .jr-col::after { content: ""; position: absolute; left: calc(-13px - var(--w) / 2); top: -9px; bottom: -9px; width: var(--w); border-radius: 99px; background: var(--people); opacity: 0.85; }
  .jr-col.money::after { background: var(--money); }
  .jr-col-h .grow { flex: 1 1 auto; }
  .jr-col-num { display: inline; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .jr-conn { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-left: 24px; padding: 6px 0; font-size: 12.5px; position: relative; border-radius: 10px; }
  .jr-conn::after { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; border-left: 2px dotted var(--people-2); }
  .jr-conn.hot { box-shadow: 0 0 0 2px var(--yellow); padding-left: 8px; padding-right: 8px; }
  .jr-conn.hot::after { left: -22px; }
  .jr-conn-v { font-size: 15px; }
  .jr-conn-cap { color: var(--muted); }
  .jr-conn-loss { color: var(--muted); font-size: 11.5px; }
  .jr-conn-step { display: inline-flex; gap: 4px; margin-left: auto; }
  .jr-conn-step button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--rule); background: #fff; font-size: 17px; font-weight: 700; cursor: pointer; color: var(--ink); }
  .jr-conn-goal { font-size: 11.5px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 6px; }
  .jr-conn-goal.ok { color: var(--money); background: var(--money-soft); }
  .jr-rung { font-size: 12.5px; gap: 8px; }
  .jr-empty { aspect-ratio: auto; min-height: 84px; }
  .jr-page .jr-thumb { aspect-ratio: 16 / 7; }
}
@media (max-width: 720px) {
  .fx-hero { padding: 12px 12px 10px; }
  .fx-hero-l { white-space: normal; flex-wrap: wrap; row-gap: 4px; }
  .fx-hero-sub { white-space: normal; flex-wrap: wrap; }
  .fx-kpis { display: grid; grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .fx-kpis > div { padding: 0 10px; }
  .fx-kpis > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fx-kpis > div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.08); }
  .fx-lever-cta { flex-wrap: wrap; row-gap: 4px; }
  .fx-lever-txt { white-space: normal; flex: 1 1 100%; }
  .fx-unit-h { flex-wrap: wrap; row-gap: 2px; }
  .fx-unit-legend { flex-wrap: wrap; row-gap: 3px; }
  .fx-live { font-size: 12.5px; gap: 10px; bottom: 10px; }
  .fx-live .opt, .fx-live .was, .fx-live .arr { display: none; }
  .fx-live .fx-status { flex: none; }
  .fx-card { padding: 14px; }
  .pb { height: 160px; }
  .pb-jump:not(.big) { display: none; }
  .pb-lab.later, .pb-axis span.later { display: none; }
  .vl-row { grid-template-columns: 110px minmax(0, 1fr) 70px; gap: 8px; }
  .fx-lever { grid-template-columns: minmax(0, 1fr); }
  .fx-lever .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .fx *, .jr *, .pb * { animation: none !important; transition: none !important; }
  .jr-pill.hl { box-shadow: 0 0 0 4px var(--yellow); }
  .jr-col.hl { box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 0 4px rgba(255, 212, 0, 0.5); }
}

/* ================================================================ Funnel-Liste */
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.fl-card { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; box-shadow: 0 1px 2px rgba(21, 21, 26, 0.04); }
.fl-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgba(21, 21, 26, 0.45); border-color: #d6d6ce; }
.fl-top { position: relative; padding: 16px 16px 10px; background: radial-gradient(120% 120% at 0% 0%, #20202a 0%, #15151a 60%); color: #fff; }
.fl-card.st-profitabel .fl-top { background: radial-gradient(110% 120% at 0% 0%, #10322a 0%, #15151a 62%); }
.fl-card.st-verlust .fl-top { background: radial-gradient(110% 120% at 0% 0%, #3a1616 0%, #15151a 62%); }
.fl-card.st-knapp .fl-top { background: radial-gradient(110% 120% at 0% 0%, #3a2e0e 0%, #15151a 62%); }
.fl-badges { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.fl-status { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: rgba(255, 255, 255, 0.12); }
.fl-status.green { background: #10b981; color: #04241a; }
.fl-status.yellow { background: #ffd400; color: #2a2300; }
.fl-status.red { background: #ef4444; color: #fff; }
.fl-chan { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 2px 8px; }
.fl-live { font-size: 11px; font-weight: 800; color: #34d399; margin-left: auto; }
.mf { display: block; width: 100%; height: 64px; }
.mf-empty { height: 64px; }
.fl-flowcap { display: flex; justify-content: space-between; font-size: 11px; font-weight: 650; color: rgba(255, 255, 255, 0.65); margin-top: 4px; }
.fl-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.fl-name { font-weight: 800; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.fl-prod { font-size: 12.5px; color: var(--muted); }
.fl-profit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.fl-profit-v { font-family: var(--display); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-card.st-profitabel .fl-profit-v { color: #0b8a5f; }
.fl-card.st-verlust .fl-profit-v { color: #c52a22; }
.fl-card.st-knapp .fl-profit-v { color: #b7791f; }
.fl-profit-l { font-size: 12px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.fl-profit .pb-chip { margin-left: auto; align-self: center; }
.fl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.fl-kpis div { display: grid; }
.fl-kpis strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.fl-kpis span { font-size: 11px; color: var(--muted); }
.fl-pages { display: flex; align-items: center; gap: 5px; }
.fl-thumb { width: 34px; height: 24px; border-radius: 6px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(21, 21, 26, 0.06); }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-thumb b { font-size: 9px; color: var(--muted); }
.fl-pages-l { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.fl-new { align-items: center; justify-content: center; gap: 6px; min-height: 300px; border: 2px dashed var(--rule-2); background: transparent; box-shadow: none; text-align: center; color: var(--muted); }
.fl-new strong { color: var(--ink); font-size: 16px; }
.fl-new span { font-size: 12.5px; }
.fl-new .fl-new-plus { width: 52px; height: 52px; border-radius: 16px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; margin-bottom: 6px; box-shadow: 0 10px 20px -10px rgba(200, 160, 0, 0.9); }
.fl-new:hover { border-color: var(--ink); background: #fff; }
.fl-empty { max-width: 560px; margin: 40px auto; text-align: center; background: radial-gradient(120% 120% at 0% 0%, #20202a 0%, #15151a 60%); color: #fff; border-radius: 26px; padding: 30px 30px 28px; box-shadow: 0 30px 60px -30px rgba(21, 21, 26, 0.6); }
.fl-empty h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 14px 0 8px; }
.fl-empty p { color: rgba(255, 255, 255, 0.72); margin: 0 0 18px; line-height: 1.5; }

/* ================================================================ E-Mail-/Brief-Folgen */
.flw { display: grid; gap: 16px; }
.flw-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.flw-head h3 { margin: 0 0 3px; font-size: 18px; }
.flw-empty { display: flex; align-items: center; gap: 16px; background: #fff; border: 1.5px dashed var(--rule-2); border-radius: 18px; padding: 20px; flex-wrap: wrap; }
.flw-empty > div:nth-child(2) { flex: 1; min-width: 240px; }
.flw-empty-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--yellow-soft); display: grid; place-items: center; font-size: 26px; }
.flw-group { display: grid; gap: 10px; }
.flw-group-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.flw-card { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(21, 21, 26, 0.04); }
.flw-card.paused { opacity: 0.6; }
.flw-card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.flw-name { font: inherit; font-size: 16px; font-weight: 800; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; background: transparent; min-width: 0; flex: 0 1 340px; }
.flw-name:hover:not(:disabled), .flw-name:focus { border-color: var(--rule-2); background: #fff; outline: none; }
.flw-count { font-size: 12px; color: var(--muted); font-weight: 650; }
.flw-card-h .select { width: auto; flex: none; max-width: 220px; }
.flw-steps { display: grid; gap: 0; }
.flw-step { display: grid; grid-template-columns: 118px 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; position: relative; }
.flw-when { display: flex; gap: 4px; justify-content: flex-end; padding-top: 2px; }
.flw-when b { font-size: 12.5px; }
.flw-day, .flw-hours { display: grid; background: var(--bg); border-radius: 8px; padding: 2px 6px; text-align: center; }
.flw-day small, .flw-hours small { font-size: 9.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.flw-day input, .flw-hours input { width: 34px; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 14px; text-align: center; padding: 0; }
.flw-hours input { width: 26px; }
.flw-dot { position: relative; height: 100%; display: flex; justify-content: center; }
.flw-dot::before { content: ""; position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--rule); }
.flw-step:first-child .flw-dot::before { top: 12px; }
.flw-step:last-of-type .flw-dot::before { bottom: calc(100% - 12px); }
.flw-dot i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); margin-top: 6px; }
.flw-step.has-page .flw-dot i { background: #10b981; border-color: #10b981; }
.flw-main { min-width: 0; display: grid; gap: 3px; }
.flw-title { font-weight: 750; font-size: 14px; }
.flw-subj { font-size: 12.5px; color: var(--ink-2); }
.flw-goal { font-size: 11.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flw-tpl { max-width: 380px; margin-top: 4px; height: 30px; padding-top: 0; padding-bottom: 0; line-height: 28px; font-size: 12px; background-color: var(--bg); border-color: transparent; color: var(--ink-2); }
.flw-tpl:hover, .flw-tpl:focus { border-color: var(--rule-2); background-color: #fff; }
.flw-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.flw-page { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: #fff; border-radius: 10px; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.flw-page img, .flw-page span { width: 42px; height: 30px; border-radius: 6px; object-fit: cover; background: var(--bg); display: grid; place-items: center; }
.flw-page em { font-style: normal; }
.flw-page:hover { border-color: var(--blue); }
.flw-tools { display: flex; gap: 2px; }
.flw-tools button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: var(--bg); cursor: pointer; font-size: 12px; color: var(--ink-2); }
.flw-tools button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.flw-tools button:disabled { opacity: 0.35; cursor: default; }
.flw-add { display: flex; gap: 6px; padding: 8px 0 0 150px; }
.flw-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 10px; }
.flw-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.flw-preset { border: 1px solid var(--rule); border-radius: 16px; padding: 14px; display: grid; gap: 7px; align-content: start; background: #fff; }
.flw-preset.rec { border-color: #10b981; box-shadow: 0 0 0 3px #dcf7ea; }
.flw-preset > .btn { justify-self: start; margin-top: 4px; }
.flw-trig { font-size: 11.5px; font-weight: 750; color: var(--muted); }
.flw-preset-t { font-weight: 800; font-size: 15px; }
.flw-preset-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.flw-chip { font: inherit; font-size: 11px; border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 2px 8px; cursor: pointer; color: var(--ink-2); }
.flw-chip b { margin-right: 4px; color: var(--blue); }
.flw-chip:hover { border-color: var(--blue); background: #fff; }
.flw-warn { color: #b45309; font-weight: 650; }
.fl-prev { border-radius: 14px; overflow: hidden; max-height: 70vh; overflow-y: auto; background: #eef0f3; }
@media (max-width: 720px) {
  .flw-step { grid-template-columns: 1fr; gap: 6px; }
  .flw-when { justify-content: flex-start; }
  .flw-dot { display: none; }
  .flw-add { padding-left: 0; }
}
.pf-own { display: grid; gap: 2px; margin-bottom: 8px; }
.pf-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.pf-nav .btn { justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; text-align: left; }
.pf-nav .btn:last-child { text-align: right; }
.pf-flow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; background: var(--bg); border-radius: 9px; margin-bottom: 4px; }
