/* VAF OS · Designsystem
   Hell: Packpapier, blaue Tinte, orange Akzente. Dunkel: Schwarz, orange Akzente.
   Scribble-Look über eine leicht verwackelte Kontur (SVG-Filter #rough) auf Rahmen, nie auf Text. */

:root {
  --paper: #f2e8d5;
  --paper-2: #e9dcc3;
  --card: #fbf6ec;
  --side: #e4d4b5;
  --ink: #1c3aa9;
  --ink-strong: #0f2470;
  --ink-soft: #5468a8;
  --line: #1c3aa9;
  --line-soft: rgba(28, 58, 169, .18);
  --orange: #ff6b00;
  --orange-soft: rgba(255, 107, 0, .14);
  --ok: #2f8f4e;
  --warn: #c98a00;
  --bad: #d23b2a;
  --shadow: 3px 4px 0 rgba(15, 36, 112, .16);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .16 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --font: 'Archivo', system-ui, sans-serif;
  --marker: 'Permanent Marker', 'Archivo', cursive;
  --hand: 'Caveat', cursive;
  --r: 14px 17px 13px 18px / 17px 13px 18px 14px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --paper: #0b0a09;
  --paper-2: #141210;
  --card: #171513;
  --side: #000;
  --ink: #f3ece0;
  --ink-strong: #fff;
  --ink-soft: #a59d90;
  --line: #f3ece0;
  --line-soft: rgba(243, 236, 224, .14);
  --orange-soft: rgba(255, 107, 0, .18);
  --shadow: 3px 4px 0 rgba(255, 107, 0, .22);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink-strong); margin: 0; }
.marker { font-family: var(--marker); font-weight: 400; letter-spacing: .01em; }
.hand { font-family: var(--hand); font-size: 1.25em; color: var(--orange); }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }

/* Pinselstrich unter Überschriften */
.brush { position: relative; display: inline-block; z-index: 0; }
.brush::after {
  content: ''; position: absolute; left: -4%; right: -6%; bottom: -.08em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C60 6 120 14 180 8 S270 10 298 7' stroke='%23ff6b00' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3Cpath d='M10 16 C80 12 160 17 240 13' stroke='%23ff6b00' stroke-width='3' fill='none' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Scribble-Kontur: Rahmen liegt auf einem Pseudo-Element mit Wackel-Filter */
.sketch { position: relative; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.sketch::before {
  content: ''; position: absolute; inset: 0; border: 2px solid var(--line); border-radius: inherit;
  filter: url(#rough); pointer-events: none; opacity: .85;
}

/* ── App-Rahmen (GHL-Aufbau) ─────────────────────────────── */
.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side {
  background: var(--side) var(--grain); border-right: 2px solid var(--line-soft);
  display: flex; flex-direction: column; overflow: hidden;
}
:root[data-theme='dark'] .side { border-right-color: rgba(255, 107, 0, .35); }
.logo { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; text-decoration: none; }
.logo svg { width: 34px; height: 24px; flex: none; }
.logo span { font-family: var(--marker); font-size: 21px; color: var(--ink-strong); white-space: nowrap; }
.logo b { color: var(--orange); font-weight: 400; }

.switcher { margin: 4px 12px 8px; padding: 9px 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; width: calc(100% - 24px); text-align: left; border: 0; }
.switcher .av { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #000; display: grid; place-items: center; font-family: var(--marker); font-size: 13px; flex: none; }
.switcher .t { min-width: 0; flex: 1; display: block; }
.switcher > svg { width: 16px; height: 16px; flex: none; color: var(--orange); }
.switcher .t small { display: block; }
.switcher .t b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher .t small { color: var(--ink-soft); font-size: 12px; }
.search { margin: 0 12px 8px; position: relative; }
.search input { width: 100%; padding: 7px 10px 7px 32px; border-radius: 10px; border: 1.5px solid var(--line-soft); background: var(--card); }
.search > svg { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 4px 10px; margin: 1px 0; border-radius: 10px; font-size: 14.5px;
  text-decoration: none; font-weight: 500; color: var(--ink); position: relative;
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a > span:not(.chip) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav a:hover { background: var(--orange-soft); }
.nav a.active { background: var(--card); font-weight: 700; box-shadow: var(--shadow); }
.nav a.active::after {
  content: ''; position: absolute; left: 40px; right: 18px; bottom: 3px; height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 C30 1 60 5 99 2' stroke='%23ff6b00' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat / 100% 100%;
}
.nav hr { border: 0; border-top: 2px dashed var(--line-soft); margin: 6px 8px; }
.chip { white-space: nowrap; margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--orange-soft); color: var(--orange); text-transform: uppercase; letter-spacing: .03em; }
.nav-bottom { flex: none; overflow: visible; padding: 8px; border-top: 2px dashed var(--line-soft); }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 22px; min-height: 58px; }
.topbar .spacer { flex: 1; }
.round {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line);
  background: var(--card); cursor: pointer; position: relative;
}
.round svg { width: 18px; height: 18px; }
.round.orange { background: var(--orange); border-color: var(--orange); color: #000; }
.round .dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--orange); color: #000; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 13px; cursor: pointer; border: 0; }

.page-head { padding: 4px 22px 0; display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; border-bottom: 2px solid var(--line-soft); }
.page-head h1 { font-family: var(--marker); font-size: 30px; font-weight: 400; padding-bottom: 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 10px 12px; text-decoration: none; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--ink-strong); border-bottom-color: var(--orange); }
.content { flex: 1; overflow: auto; padding: 20px 22px 60px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }

/* ── Bausteine ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px 12px 9px 13px;
  border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; text-decoration: none;
  box-shadow: 2px 3px 0 var(--line-soft); transition: transform .08s;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #000; box-shadow: 2px 3px 0 rgba(0, 0, 0, .25); }
.btn-ghost { border-color: transparent; box-shadow: none; background: transparent; }
.btn-small { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.input, select.input, textarea.input {
  padding: 8px 11px; border-radius: 10px; border: 2px solid var(--line-soft); background: var(--card); min-width: 0;
}
.input:focus, .search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
label.field { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
label.field .input { font-weight: 400; font-size: 15px; }

.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 18px 20px; }
.card h3 { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.card .sub { color: var(--ink-soft); font-size: 12.5px; margin-bottom: 12px; }
.kpi { font-family: var(--marker); font-size: 44px; line-height: 1; color: var(--ink-strong); }
.kpi small { font-family: var(--font); font-size: 14px; color: var(--ink-soft); margin-left: 6px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: rgba(47, 143, 78, .14); color: var(--ok); }
.pill.warn { background: rgba(201, 138, 0, .16); color: var(--warn); }
.pill.bad { background: rgba(210, 59, 42, .14); color: var(--bad); }
.pill.info { background: var(--orange-soft); color: var(--orange); }
.pill.plain { background: var(--line-soft); color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1.5px dashed var(--ink-soft); border-radius: 8px; font-size: 12.5px; margin: 2px 3px 2px 0; }
.tag button { border: 0; background: none; cursor: pointer; padding: 0; line-height: 1; color: var(--ink-soft); }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1.5px dashed var(--line-soft); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--orange-soft); }

/* Platform-Badges */
.pf { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; margin-right: -6px; border: 2px solid var(--card); }
.pf.instagram { background: linear-gradient(45deg, #f9a43a, #e1306c, #8a3ab9); }
.pf.tiktok { background: #111; }
.pf.youtube { background: #e62117; }
.pf.linkedin { background: #0a66c2; }
.pf.facebook { background: #1877f2; }
.pf.threads { background: #333; }
.pf-row { display: inline-flex; padding-right: 6px; }

/* Kanban */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; min-height: 60vh; }
.col { flex: 0 0 280px; padding: 12px; background: var(--paper-2); border-radius: var(--r); border: 2px dashed var(--line-soft); }
.col.drop { border-color: var(--orange); background: var(--orange-soft); }
.col-head { padding: 4px 4px 10px; }
.col-head b { display: block; font-size: 14.5px; }
.col-head small { color: var(--ink-soft); }
.opp { padding: 11px 13px; margin-bottom: 10px; cursor: grab; }
.opp b { display: block; font-size: 14px; }
.opp .meta { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 12.5px; margin-top: 4px; }
.opp.dragging { opacity: .4; }

/* Kalender */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dayname { font-weight: 800; font-size: 12.5px; text-transform: uppercase; color: var(--ink-soft); padding: 0 4px; }
.day { min-height: 128px; padding: 8px; background: var(--card); border-radius: 12px; border: 1.5px solid var(--line-soft); }
.day.today { border: 2px solid var(--orange); }
.day.off { opacity: .45; }
.day .n { font-family: var(--marker); font-size: 17px; }
.day.drop { background: var(--orange-soft); }
.cal-post { display: block; font-size: 12px; padding: 4px 6px; margin-top: 5px; border-radius: 7px; background: var(--paper-2); border-left: 4px solid var(--ink); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-post.fail { border-left-color: var(--bad); }
.cal-post.done { border-left-color: var(--ok); }
.cal-post.wait { border-left-color: var(--orange); }

/* Modal, Popover, Toast */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 10, .45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: 24px 26px; }
.modal h2 { font-family: var(--marker); font-weight: 400; font-size: 26px; margin-bottom: 14px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.popover { position: absolute; z-index: 40; min-width: 260px; padding: 10px; }
.popover button.item { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; }
.popover button.item:hover { background: var(--orange-soft); }
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; }
.toast { padding: 12px 16px; max-width: 360px; font-weight: 600; animation: pop .2s ease-out; }
.toast.bad { color: var(--bad); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty .marker { font-size: 26px; color: var(--ink-strong); display: block; margin-bottom: 6px; }
.doodle { position: absolute; pointer-events: none; color: var(--orange); }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 14px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px dashed var(--line-soft); position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.timeline small { color: var(--ink-soft); display: block; }
.bar { height: 10px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 6px; }
.stage-row { display: grid; grid-template-columns: 1fr 60px 80px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--paper-2); padding: 12px; border-radius: 10px; white-space: pre-wrap; word-break: break-all; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line-soft); background: var(--card); display: flex; gap: 10px; align-items: center; }
.steps li .num { font-family: var(--marker); color: var(--orange); font-size: 20px; width: 22px; }
.trigger-box { border-color: var(--orange) !important; }
.platform-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-pick label { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 2px solid var(--line-soft); border-radius: 99px; cursor: pointer; font-weight: 600; }
.platform-pick input { accent-color: var(--orange); }
.platform-pick label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; border: 2px solid var(--line-soft); background: var(--paper-2); }
.notes { position: absolute; top: 56px; right: 70px; width: 360px; max-height: 70vh; overflow: auto; padding: 14px; z-index: 45; }
.notes li { list-style: none; padding: 9px 4px; border-bottom: 1.5px dashed var(--line-soft); font-size: 14px; }
.notes ul { padding: 0; margin: 0; }

/* Platzhalter-Seiten (Stufe 2/3) */
.soon { max-width: 760px; margin: 30px auto; padding: 36px 40px; text-align: left; }
.soon h2 { font-family: var(--marker); font-weight: 400; font-size: 34px; margin-bottom: 8px; }
.soon ul { padding-left: 20px; }
.soon li { margin: 6px 0; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login { width: min(460px, 100%); padding: 34px 36px; }
.login h1 { font-family: var(--marker); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 10px 0 6px; }
.login form { display: grid; gap: 12px; margin-top: 18px; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.or { text-align: center; color: var(--ink-soft); margin: 16px 0 0; font-size: 13px; }

/* Öffentliches Formular */
.public-form { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.paper-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.form-card { width: min(520px, 100%); padding: 30px 32px; }
.form-card form { display: grid; gap: 12px; margin-top: 16px; }
.form-card label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.form-card input, .form-card textarea { padding: 9px 11px; border-radius: 10px; border: 2px solid var(--line-soft); background: var(--paper); font-size: 15px; }
.form-logo { height: 34px; }
.big { font-size: 28px; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 1100px) { .cols-3 { grid-template-columns: 1fr 1fr; } .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   Design „GoHighLevel“ (Standard). Nachgebaut nach Antons GHL-Screens.
   Gleiches Markup, nur Optik. VAF-eigene Elemente werden ausgeblendet.
   ══════════════════════════════════════════════════════════════════════ */
.ghl-only { display: none !important; }
:root[data-skin='ghl'] .ghl-only { display: revert !important; }
:root[data-skin='ghl'] .vaf-only { display: none !important; }

:root[data-skin='ghl'] {
  --paper: #f2f4f7;
  --paper-2: #f9fafb;
  --card: #fff;
  --side: #2b3542;
  --ink: #101828;
  --ink-strong: #101828;
  --ink-soft: #667085;
  --line: #d0d5dd;
  --line-soft: #e4e7ec;
  --orange: #155eef;          /* GHL nutzt Blau als Akzent */
  --orange-soft: #eff4ff;
  --ok: #067647;
  --warn: #b54708;
  --bad: #d92d20;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --grain: none;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --marker: 'Inter', system-ui, sans-serif;
  --r: 8px;
  color-scheme: light;
}
:root[data-skin='ghl'] body { font-size: 14px; background: var(--paper); }
:root[data-skin='ghl'] .sketch::before { display: none; }
:root[data-skin='ghl'] .sketch { border: 1px solid var(--line-soft); box-shadow: var(--shadow); border-radius: 12px; }
:root[data-skin='ghl'] .brush::after { display: none; }
:root[data-skin='ghl'] .marker { font-weight: 600; letter-spacing: 0; }
:root[data-skin='ghl'] .kpi { font-family: var(--font); font-weight: 600; font-size: 34px; }

/* Seitenleiste */
:root[data-skin='ghl'] .side { background: var(--side); border-right: 0; color: #f2f4f7; }
:root[data-skin='ghl'] .logo { padding: 16px 18px 10px; }
:root[data-skin='ghl'] .logo span { color: #f26b1d; font-family: 'Permanent Marker', cursive; font-size: 20px; }
:root[data-skin='ghl'] .logo b { color: #f26b1d; }
:root[data-skin='ghl'] .switcher { background: #3d4756; border: 0; box-shadow: none; border-radius: 8px; padding: 9px 10px; color: #fff; margin: 4px 8px 10px; width: calc(100% - 16px); }
:root[data-skin='ghl'] .switcher .av { background: #555f6d; color: #fff; font-family: var(--font); font-size: 12px; width: 28px; height: 28px; }
:root[data-skin='ghl'] .switcher .t b { font-size: 12px; font-weight: 700; }
:root[data-skin='ghl'] .switcher .t small { color: #c5cad3; font-size: 12px; }
:root[data-skin='ghl'] .switcher > svg { color: #c5cad3; }
:root[data-skin='ghl'] .search { display: flex; gap: 6px; margin: 0 8px 12px; }
:root[data-skin='ghl'] .search input { background: #3d4756; border: 0; color: #fff; border-radius: 8px; padding: 8px 46px 8px 32px; }
:root[data-skin='ghl'] .search input::placeholder { color: #c5cad3; }
:root[data-skin='ghl'] .search > svg { color: #c5cad3; }
.kbd { position: absolute; right: 50px; top: 8px; font-size: 11px; font-weight: 600; background: #5b6573; color: #e4e7ec; border-radius: 4px; padding: 1px 5px; }
.bolt { flex: none; width: 34px; border-radius: 8px; background: #3d4756; border: 0; display: grid; place-items: center; color: #47cd89; cursor: pointer; }
.bolt svg { width: 16px; height: 16px; }
:root[data-skin='ghl'] .nav { padding: 0 0 8px; }
:root[data-skin='ghl'] .nav a { color: #e4e7ec; font-weight: 500; font-size: 14.5px; padding: 7px 16px; margin: 1px 0; border-radius: 0; }
:root[data-skin='ghl'] .nav a svg { color: #e4e7ec; width: 18px; height: 18px; }
:root[data-skin='ghl'] .nav a:hover { background: #333d4b; }
:root[data-skin='ghl'] .nav a.active { background: #1f2733; box-shadow: none; font-weight: 600; color: #fff; }
:root[data-skin='ghl'] .nav a.active::after { display: none; }
:root[data-skin='ghl'] .nav hr { border-top: 1.5px solid #4f5966; margin: 10px 16px; }
:root[data-skin='ghl'] .nav-bottom { border-top: 0; padding: 0 0 10px; }
.chip.beta { background: #fef0c7; color: #93370d; text-transform: none; font-size: 11px; border-radius: 6px; }

/* Kopfzeile */
:root[data-skin='ghl'] .main { background: var(--paper); }
:root[data-skin='ghl'] .topbar { background: #fff; min-height: 52px; padding: 8px 20px; border-bottom: 0; }
:root[data-skin='ghl'] .round { border: 0; width: 34px; height: 34px; }
:root[data-skin='ghl'] .round svg { width: 16px; height: 16px; color: #fff; }
.round.green { background: #2c9d5b; }
.round.purple { background: #3b1fa3; }
:root[data-skin='ghl'] .round.orange { background: #f26b1d; }
:root[data-skin='ghl'] .round .dot { background: #f79009; color: transparent; min-width: 9px; height: 9px; padding: 0; top: 0; right: 0; border: 2px solid #fff; }
:root[data-skin='ghl'] .avatar { width: 34px; height: 34px; background: #8a93c9; color: #fff; font-size: 12.5px; font-weight: 600; }
.whatsnew { text-decoration: none; display: flex; align-items: center; gap: 10px; background: #eff4ff; border-radius: 99px; padding: 4px 4px 4px 14px; font-size: 13px; color: #155eef; font-weight: 500; }
.whatsnew b { background: #155eef; color: #fff; border-radius: 99px; padding: 3px 10px; font-weight: 500; }

/* Seitenkopf und Reiter */
:root[data-skin='ghl'] .page-head { background: #fff; padding: 0 20px; gap: 28px; border-bottom: 1px solid var(--line-soft); align-items: center; }
:root[data-skin='ghl'] .page-head h1 { font-family: var(--font); font-size: 18px; font-weight: 600; padding: 14px 0; }
:root[data-skin='ghl'] .tabs a { color: #344054; font-weight: 500; font-size: 14px; padding: 14px 10px 12px; border-bottom-width: 2px; margin-bottom: -1px; }
:root[data-skin='ghl'] .tabs a.active { color: #155eef; border-bottom-color: #155eef; }
.subhead { display: flex; align-items: center; gap: 16px; background: #fff; padding: 0 20px; border-bottom: 1px solid var(--line-soft); min-height: 52px; }
.subhead .tabs a { padding: 15px 4px 13px; }
:root[data-skin='ghl'] .content { padding: 20px; }

/* Bausteine */
:root[data-skin='ghl'] .btn { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); font-weight: 600; padding: 8px 14px; font-size: 14px; color: #344054; background: #fff; }
:root[data-skin='ghl'] .btn:hover { transform: none; background: #f9fafb; }
:root[data-skin='ghl'] .btn-primary { background: #155eef; border-color: #155eef; color: #fff; }
:root[data-skin='ghl'] .btn-primary:hover { background: #004eeb; }
:root[data-skin='ghl'] .btn-ghost { border-color: transparent; box-shadow: none; background: transparent; }
:root[data-skin='ghl'] .input, :root[data-skin='ghl'] select.input { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: #fff; padding: 8px 12px; }
:root[data-skin='ghl'] .input:focus { border-color: #84adff; box-shadow: 0 0 0 4px #d1e0ff; }
:root[data-skin='ghl'] .pill { font-weight: 500; border-radius: 6px; padding: 2px 8px; }
:root[data-skin='ghl'] .pill.ok { background: #ecfdf3; color: #067647; }
:root[data-skin='ghl'] .pill.info { background: #eff4ff; color: #155eef; }
:root[data-skin='ghl'] .pill.plain { background: #f2f4f7; color: #344054; }
:root[data-skin='ghl'] .pill.warn { background: #fffaeb; color: #b54708; }
:root[data-skin='ghl'] .pill.bad { background: #fef3f2; color: #b42318; }
:root[data-skin='ghl'] .tag { border: 0; background: #f2f4f7; border-radius: 6px; color: #344054; font-weight: 500; }
:root[data-skin='ghl'] table.tbl { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
:root[data-skin='ghl'] .tbl th { background: #f9fafb; color: #101828; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
:root[data-skin='ghl'] .tbl td { border-bottom: 1px solid var(--line-soft); font-size: 14px; }
:root[data-skin='ghl'] .tbl tr.click:hover td { background: #f9fafb; }
:root[data-skin='ghl'] .card h3 { font-size: 16px; font-weight: 600; }
:root[data-skin='ghl'] .card .sub { font-size: 13px; color: #475467; }
:root[data-skin='ghl'] .col { background: transparent; border: 0; padding: 0; flex-basis: 300px; }
:root[data-skin='ghl'] .col-head { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
:root[data-skin='ghl'] .col-head small b { color: #101828; }
:root[data-skin='ghl'] .col.drop .col-head { border-color: #155eef; }
:root[data-skin='ghl'] .opp { border-radius: 8px; }
:root[data-skin='ghl'] .day { border: 1px solid var(--line-soft); border-radius: 8px; }
:root[data-skin='ghl'] .day .n { font-family: var(--font); font-weight: 600; font-size: 14px; }
:root[data-skin='ghl'] .day.today { border-color: #155eef; }
:root[data-skin='ghl'] .cal-post { background: #eff4ff; border-left-color: #155eef; }
:root[data-skin='ghl'] .modal h2 { font-family: var(--font); font-weight: 600; font-size: 20px; }
:root[data-skin='ghl'] .soon h2 { font-family: var(--font); font-weight: 600; }
:root[data-skin='ghl'] .steps li .num { font-family: var(--font); color: #155eef; font-size: 15px; }
:root[data-skin='ghl'] .timeline li::before { background: #155eef; }
:root[data-skin='ghl'] .platform-pick input { accent-color: #155eef; }
:root[data-skin='ghl'] .bar i { background: #155eef; }
:root[data-skin='ghl'] .login h1 { font-family: var(--font); font-weight: 700; }

/* GHL-Bausteine, die es so nur dort gibt */
.ghl-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow); }
.ghl-card .hd { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.ghl-card .hd h3 { font-size: 16px; font-weight: 600; margin: 0; }
.ghl-card .hd small { color: #475467; font-size: 13px; }
.ghl-card .bd { padding: 16px 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.seg > * { border: 0; border-right: 1px solid var(--line); background: #fff; padding: 8px 14px; font-weight: 600; color: #344054; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; text-decoration: none; }
.seg > *:last-child { border-right: 0; }
.seg > .on { background: #eff4ff; color: #155eef; }
.seg svg { width: 16px; height: 16px; }
.count { display: inline-flex; align-items: center; background: #eff4ff; color: #155eef; font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.ini { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 600; margin-right: 8px; vertical-align: middle; }
.cell-ic { display: inline-flex; gap: 6px; align-items: center; }
.cell-ic svg { width: 15px; height: 15px; color: #475467; }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; }
.pager .spacer { flex: 1; }
.pager .cur { border: 1px solid #155eef; color: #155eef; border-radius: 8px; padding: 6px 12px; font-weight: 600; }
.chart-legend { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #344054; }
.chart-legend i { width: 22px; height: 12px; border-radius: 3px; background: #6ea8fe; display: inline-block; }
.flow-canvas { background: #f9fafb radial-gradient(#e4e7ec 1px, transparent 1px) 0 0 / 18px 18px; border: 1px solid var(--line-soft); border-radius: 12px; min-height: 70vh; padding: 30px 20px 60px; display: flex; flex-direction: column; align-items: center; }
.flow-node { width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.flow-node .ico { width: 32px; height: 32px; border-radius: 8px; background: #eff4ff; color: #155eef; display: grid; place-items: center; flex: none; }
.flow-node .ico svg { width: 17px; height: 17px; }
.flow-node.trigger { width: 260px; flex-direction: column; align-items: stretch; padding: 0; }
.flow-node.trigger .top { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.flow-node.trigger .cond { padding: 10px 14px; color: #344054; font-size: 13px; }
.flow-link { width: 2px; height: 26px; background: #98a2b3; position: relative; }
.flow-plus { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #98a2b3; background: #fff; display: grid; place-items: center; color: #475467; font-size: 15px; line-height: 1; }
.flow-end { margin-top: 6px; font-size: 12px; font-weight: 600; color: #475467; background: #f2f4f7; border-radius: 99px; padding: 4px 12px; }
.wf-head { display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--line-soft); padding: 10px 20px; }
.wf-head h2 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; margin: 0; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 99px; background: #d0d5dd; display: inline-block; vertical-align: middle; cursor: pointer; border: 0; }
.switch.on { background: #155eef; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on::after { left: 18px; }
:root[data-skin='vaf'] .switch.on { background: var(--orange); }
.skin-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skin-pick button { text-align: left; border: 2px solid var(--line-soft); border-radius: 12px; padding: 0; overflow: hidden; background: #fff; cursor: pointer; }
.skin-pick button.on { border-color: #155eef; box-shadow: 0 0 0 4px #d1e0ff; }
:root[data-skin='vaf'] .skin-pick button.on { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.skin-pick .prev { height: 120px; display: grid; grid-template-columns: 34% 1fr; }
.skin-pick .lbl { padding: 10px 14px; font-weight: 600; color: #101828; }
.api-route { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.api-route code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.method { font: 700 11.5px ui-monospace, Menlo, monospace; border-radius: 6px; padding: 3px 0; text-align: center; height: fit-content; }
.method.GET { background: #ecfdf3; color: #067647; } .method.POST { background: #eff4ff; color: #155eef; }
.method.PATCH, .method.PUT { background: #fffaeb; color: #b54708; } .method.DELETE { background: #fef3f2; color: #b42318; }

/* GHL-Bausteine im VAF-Design */
:root[data-skin='ghl'] .hand { display: none; }
:root[data-skin='vaf'] .ghl-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
:root[data-skin='vaf'] .ghl-card .hd { border-bottom: 1.5px dashed var(--line-soft); }
:root[data-skin='vaf'] .ghl-card .hd h3 { font-family: var(--marker); font-weight: 400; font-size: 19px; }
:root[data-skin='vaf'] .ghl-card .hd small { color: var(--ink-soft); }
:root[data-skin='vaf'] .seg, :root[data-skin='vaf'] .seg > * { background: var(--card); border-color: var(--line); color: var(--ink); }
:root[data-skin='vaf'] .seg > .on { background: var(--orange); color: #000; }
:root[data-skin='vaf'] .count { background: var(--orange-soft); color: var(--orange); }
:root[data-skin='vaf'] .subhead { background: transparent; border-bottom: 2px dashed var(--line-soft); }
:root[data-skin='vaf'] .pager .cur { border-color: var(--orange); color: var(--orange); }
:root[data-skin='vaf'] .flow-canvas { background: var(--paper-2) radial-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 18px 18px; border: 2px dashed var(--line-soft); }
:root[data-skin='vaf'] .flow-node { background: var(--card); border: 2px solid var(--line); }
:root[data-skin='vaf'] .flow-node .ico { background: var(--orange-soft); color: var(--orange); }
:root[data-skin='vaf'] .wf-head { background: transparent; border-bottom: 2px dashed var(--line-soft); }
:root[data-skin='vaf'] .whatsnew { display: none; }
:root[data-skin='vaf'] .skin-pick button { background: var(--card); }
:root[data-skin='vaf'] .skin-pick .lbl { color: var(--ink); }
:root[data-skin='vaf'] .api-route { border-bottom: 1.5px dashed var(--line-soft); }

.whatsnew svg { flex: none; }
.bolt { position: relative; }
:root[data-skin='ghl'] .search { position: relative; }
.tbl td.nowrap, .tbl td .cell-ic { white-space: nowrap; }
.tbl td.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
