/* Overlay Builder (Flow Builder, Vollbild) – Figma NB© Control Center "06 — Overlay Builder".
   Masse aus den Frames 314:837 (Canvas), 319:795 / 319:817 / 319:842 (Block Inspector), 339:832 (Action Picker). */
.nb-ovb { position: fixed; inset: 0; z-index: 200; overflow: auto; background: var(--af-workspace, #fafaf9); color: var(--af-charcoal, #292928);
  --ovb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font: 400 12px/16px var(--ovb-font); }
.nb-ovb *, .nb-ovb *::before, .nb-ovb *::after { box-sizing: border-box; }
.nb-ovb button, .nb-ovb input, .nb-ovb textarea { font-family: var(--ovb-font); }
.nb-ovb button { cursor: pointer; }
.nb-ovb :focus-visible { outline: 2px solid var(--af-charcoal, #292928); outline-offset: 2px; }
.ovb-frame { min-width: 1040px; height: 100%; min-height: 640px; padding: 24px 24px 44px; display: flex; flex-direction: column; }
.ovb-top { flex: none; height: 72px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--af-light, #ededeb); margin-bottom: 24px; }
.ovb-top h1 { margin: 12px 0 0; font: 500 24px/24px var(--ovb-font); color: var(--af-charcoal, #292928); }
.ovb-meta { font: 500 12px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 224px minmax(360px, 1fr) 344px; gap: 24px; }
.ovb-panel { min-height: 0; background: #fff; border: 1px solid var(--af-light, #ededeb); border-radius: 8px; padding: 23px; overflow-x: hidden; overflow-y: auto; }
.ovb-lib, .ovb-props { box-shadow: 0 6px 20px rgba(41, 41, 40, 0.06); }

/* Buttons */
.ovb-btn { height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--af-light, #ededeb); background: #fff; color: var(--af-charcoal, #292928); font: 500 12px/16px var(--ovb-font); white-space: nowrap; }
.ovb-btn:hover { background: var(--af-workspace, #fafaf9); }
.ovb-btn.muted { color: var(--af-mid, #737371); }
.ovb-btn.small { height: 32px; min-width: 76px; flex: none; }
.ovb-btn.primary { background: var(--af-charcoal, #292928); border-color: var(--af-charcoal, #292928); color: #fff; }
.ovb-btn.primary:hover { background: #000; }
.ovb-btn.wide { width: 100%; margin-top: 16px; }
.ovb-btn:disabled { opacity: 0.6; cursor: default; }
.ovb-save { width: 144px; flex: none; }

/* Bibliothek + Overlay-Einstellungen */
.ovb-help { margin-top: 12px; font: 400 12px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-lib-items { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ovb-lib-item { height: 48px; padding: 0 11px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--af-light, #ededeb); border-radius: 6px;
  font: 500 12px/16px var(--ovb-font); color: var(--af-charcoal, #292928); text-align: left; }
.ovb-lib-item:hover { border-color: #cfcfcc; }
.ovb-plus { width: 24px; height: 24px; flex: none; border-radius: 4px; background: var(--af-workspace, #fafaf9); display: flex; align-items: center; justify-content: center; }
.ovb-divider { height: 1px; margin: 32px 0; background: var(--af-light, #ededeb); }
.ovb-bg, .ovb-opacity { margin-top: 16px; display: flex; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; }
.ovb-bg { height: 40px; padding: 0 11px; align-items: center; gap: 8px; position: relative; cursor: pointer; }
.ovb-bg b, .ovb-opacity b { font: 500 12px/16px var(--ovb-font); }
.ovb-bg b { flex: 1 1 auto; }
.ovb-bg-hex { font: 400 10px/16px var(--ovb-font); color: var(--af-mid, #737371); font-variant-numeric: tabular-nums; }
.ovb-bg input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ovb-opacity { margin-top: 8px; height: 56px; padding: 7px 11px 0; flex-direction: column; gap: 8px; }
.ovb-opacity > div { display: flex; justify-content: space-between; font: 500 12px/16px var(--ovb-font); font-variant-numeric: tabular-nums; }
.ovb-opacity input[type=range] { width: 100%; height: 16px; margin: 0; accent-color: var(--af-charcoal, #292928); }
.ovb-style-label { margin-top: 16px; font: 500 12px/16px var(--ovb-font); }
.ovb-style { margin-top: 8px; }
.ovb-seg.ovb-style { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovb-style + .ovb-bg { margin-top: 8px; }
.ovb-bg.off, .ovb-opacity.off { opacity: 0.45; cursor: default; }
.ovb-bg.off input, .ovb-opacity.off input { cursor: default; }
.ovb-screen.glass { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ovb-select { margin-top: 8px; width: 100%; height: 40px; padding: 0 8px; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; color: var(--af-charcoal, #292928); font: 500 12px/16px var(--ovb-font); }
.ovb-note { margin-top: 8px; font: 400 10px/14px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-lib-foot { margin-top: 32px; }
.ovb-swatch { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1px solid var(--af-light, #ededeb); }

/* Canvas: Mobile-Viewport 288 × 624 mit scrollbarem Overlay */
.ovb-canvas { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 15px; }
.ovb-device { flex: 0 1 624px; min-height: 240px; width: 288px; margin: 24px auto 0; padding: 15px; background: var(--af-charcoal, #292928); border: 1px solid var(--af-light, #ededeb); border-radius: 12px; display: flex; }
.ovb-screen { flex: 1 1 auto; min-height: 0; border-radius: 8px; background: #fff; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.ovb-list { padding: 16px; display: flex; flex-direction: column; min-height: 100%; }
.ovb-scrollhint { flex: none; margin-top: 16px; text-align: center; font: 500 12px/16px var(--ovb-font); color: var(--af-mid, #737371); white-space: pre; }
.ovb-card { position: relative; flex: none; background: #fff; border: 1px solid var(--af-light, #ededeb); border-radius: 8px; overflow: hidden; cursor: pointer; }
.ovb-card:hover { border-color: #cfcfcc; }
.ovb-card.selected { border-color: var(--af-charcoal, #292928); }
.ovb-card.full { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
.ovb-card.drop-before { box-shadow: 0 -3px 0 0 var(--af-charcoal, #292928); }
.ovb-card.drop-after { box-shadow: 0 3px 0 0 var(--af-charcoal, #292928); }
.ovb-handle { position: absolute; top: 11px; right: 11px; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: grab; }
.ovb-handle img { display: block; pointer-events: none; }
.ovb-c-text { min-height: 70px; padding: 15px 52px 15px 15px; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; color: var(--af-mid, #737371); }
.ovb-c-eyebrow { font: 500 10px/16px var(--ovb-font); letter-spacing: 0.08em; }
.ovb-c-headline { font: 500 18px/24px var(--ovb-font); color: var(--af-charcoal, #292928); }
.ovb-c-text[style*="color"] .ovb-c-headline { color: inherit; }
.ovb-c-body { font: 400 12px/16px var(--ovb-font); white-space: pre-wrap; }
.ovb-c-body.bold { font-weight: 700; } .ovb-c-body.italic { font-style: italic; }
.ovb-c-empty { font: 400 12px/16px var(--ovb-font); color: #b0b0ad; }
.ovb-c-media { position: relative; width: 100%; background: var(--af-light, #ededeb); }
.ovb-c-media img, .ovb-c-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ovb-c-media-label { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 500 10px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-c-media-label.on-media { top: auto; bottom: 8px; left: 8px; right: auto; transform: none; padding: 0 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.ovb-c-cta { min-height: 46px; padding: 3px 44px 3px 3px; display: flex; justify-content: flex-start; }
.ovb-c-cta.center { justify-content: center; padding-left: 44px; }
.ovb-c-cta-btn { height: 40px; min-width: 40px; max-width: 100%; padding: 0 16px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 500 12px/16px var(--ovb-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovb-c-cta.full .ovb-c-cta-btn { flex: 1 1 0; }
.ovb-insert { position: relative; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; }
.ovb-insert-btn { width: 32px; height: 20px; padding: 0; border: 1px solid var(--af-light, #ededeb); border-radius: 10px; background: #fff; color: var(--af-mid, #737371); font: 500 12px/16px var(--ovb-font); }
.ovb-insert-btn:hover { border-color: #cfcfcc; color: var(--af-charcoal, #292928); }
.ovb-insert-menu { position: absolute; z-index: 5; top: 24px; left: 50%; transform: translateX(-50%); width: 160px; padding: 6px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--af-light, #ededeb); border-radius: 8px;
  box-shadow: 0 2px 6px rgba(41, 41, 40, 0.04), 0 8px 24px rgba(41, 41, 40, 0.08); }
.ovb-insert-menu button { height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; text-align: left; font: 500 12px/16px var(--ovb-font); color: var(--af-charcoal, #292928); }
.ovb-insert-menu button:hover { background: var(--af-workspace, #fafaf9); }
.ovb-empty { margin: auto 0; padding: 24px 8px; display: flex; flex-direction: column; gap: 4px; text-align: center; color: var(--af-mid, #737371); }
.ovb-empty b { font: 500 12px/16px var(--ovb-font); color: var(--af-charcoal, #292928); }

/* Eigenschaften */
.ovb-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-top: -4px; }
.ovb-meta-row .ovb-meta { white-space: nowrap; }
.ovb-title { margin: 12px 0 8px; font: 500 18px/24px var(--ovb-font); color: var(--af-charcoal, #292928); }
.ovb-status { height: 24px; flex: 0 1 auto; min-width: 0; overflow: hidden; padding: 0 10px; display: flex; align-items: center; gap: 8px; border-radius: 12px; background: var(--af-workspace, #fafaf9); font: 400 10px/14px var(--ovb-font); color: var(--af-mid, #737371); white-space: nowrap; }
.ovb-status span { overflow: hidden; text-overflow: ellipsis; }
.ovb-status i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--af-mid, #737371); }
.ovb-status[data-state="saving"] i, .ovb-status[data-state="dirty"] i { background: #c98a1b; }
.ovb-status[data-state="error"] { color: #b3261e; } .ovb-status[data-state="error"] i { background: #b3261e; }
.ovb-field { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.ovb-label { font: 500 12px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-input { width: 100%; height: 40px; margin: 0; padding: 11px; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; color: var(--af-charcoal, #292928); font: 400 12px/16px var(--ovb-font); resize: none; }
.ovb-input::placeholder, .ovb-link-url::placeholder, .ovb-color-text::placeholder { color: var(--af-mid, #737371); opacity: 0.8; }
.ovb-input:focus, .ovb-link:focus-within, .ovb-color:focus-within { border-color: var(--af-charcoal, #292928); outline: none; }
.ovb-h64 { height: 64px; } .ovb-h72 { height: 72px; } .ovb-h144 { height: 144px; padding-bottom: 28px; line-height: 18px; }
.ovb-url { margin-top: 8px; }
.ovb-textwrap { position: relative; display: flex; }
.ovb-counter { position: absolute; right: 12px; bottom: 9px; font: 400 10px/14px var(--ovb-font); color: var(--af-mid, #737371); pointer-events: none; font-variant-numeric: tabular-nums; }
.ovb-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ovb-seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ovb-seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ovb-seg button { height: 32px; padding: 0 4px; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; color: var(--af-charcoal, #292928); font: 500 12px/16px var(--ovb-font); white-space: nowrap; }
.ovb-seg.big button { height: 40px; }
.ovb-seg button.is-bold { font-weight: 700; } .ovb-seg button.is-italic { font-style: italic; font-weight: 400; }
.ovb-seg button.on { background: var(--af-charcoal, #292928); color: #fff; }
.ovb-color, .ovb-link { height: 40px; display: flex; align-items: center; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; }
.ovb-color { padding: 0 0 0 11px; gap: 12px; }
.ovb-color-text, .ovb-link-url { flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; outline: none; color: var(--af-charcoal, #292928); font: 400 12px/16px var(--ovb-font); }
.nb-ovb .ovb-color-text:focus-visible, .nb-ovb .ovb-link-url:focus-visible { outline: none; }
.ovb-color-pick { position: relative; width: 44px; height: 100%; flex: none; display: flex; align-items: center; justify-content: center; font: 500 14px/16px var(--ovb-font); color: var(--af-mid, #737371); cursor: pointer; }
.ovb-color-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ovb-link { padding: 0 0 0 11px; }
.ovb-link-go { width: 40px; height: 100%; flex: none; padding: 0; border: 0; background: none; color: var(--af-charcoal, #292928); font: 500 14px/16px var(--ovb-font); }
.ovb-hint { margin-top: 6px; font: 400 11px/16px var(--ovb-font); color: #b3261e; }
.ovb-hint:empty { display: none; }
.ovb-media { height: 56px; padding: 0 11px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; }
.ovb-thumb { width: 40px; height: 32px; flex: none; border-radius: 4px; background: var(--af-workspace, #fafaf9); overflow: hidden; }
.ovb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ovb-media-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ovb-media-info b { font: 400 12px/16px var(--ovb-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovb-media-info span { font: 400 10px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-outcome-field, .ovb-outcome { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; text-align: left; color: var(--af-charcoal, #292928); }
.ovb-outcome-field { height: 64px; padding: 0 14px 0 11px; }
.ovb-outcome { height: 56px; padding: 0 14px 0 15px; margin-top: 8px; }
.ovb-outcome-field:hover, .ovb-outcome:not(:disabled):hover, .ovb-pick:hover { border-color: #cfcfcc; }
.ovb-outcome-field > span, .ovb-outcome > span, .ovb-pick > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ovb-outcome-field b, .ovb-outcome b, .ovb-pick b { font: 500 12px/16px var(--ovb-font); }
.ovb-outcome-field span span, .ovb-outcome span span, .ovb-pick span span { font: 400 12px/16px var(--ovb-font); color: var(--af-mid, #737371); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovb-outcome-field i, .ovb-outcome i { font: 400 18px/24px var(--ovb-font); font-style: normal; }
.ovb-outcome.current { border-color: var(--af-charcoal, #292928); }
.ovb-outcome.soon { opacity: 0.55; cursor: default; }
.ovb-outcome em { margin-left: 6px; padding: 0 5px; border-radius: 8px; background: var(--af-workspace, #fafaf9); font: 500 9px/14px var(--ovb-font); font-style: normal; color: var(--af-mid, #737371); text-transform: uppercase; }
.ovb-group { margin-top: 24px; }
.ovb-rule { margin-top: 24px; font: 500 10px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ovb-back { height: 24px; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: 6px; font: 500 12px/16px var(--ovb-font); color: var(--af-mid, #737371); }
.ovb-back span:first-child { font-size: 18px; line-height: 16px; color: var(--af-charcoal, #292928); }
.ovb-picker { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ovb-props > .ovb-input[type=search] { margin-top: 24px; }
.ovb-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--af-light, #ededeb); border-radius: 6px; background: #fff; text-align: left; color: var(--af-charcoal, #292928); }
.ovb-pick.current { border-color: var(--af-charcoal, #292928); }
.ovb-pick-num { width: 28px; flex: none; font: 500 12px/16px var(--ovb-font); color: var(--af-mid, #737371); font-variant-numeric: tabular-nums; }
.ovb-check { margin-top: 24px; display: flex; align-items: flex-start; gap: 8px; font: 400 12px/16px var(--ovb-font); cursor: pointer; }
.ovb-check input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--af-charcoal, #292928); }
