/* Page Builder – Oberfläche (bekara Brand Kit v1.0; Basis aus dem Go2Flow-Builder, Overrides am Ende) */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* bekara: Paper/Ink, Gelb für Aktionen, Violett/Grün als Akzente. Namen der Variablen bleiben aus dem Basis-Builder. */
  --paper: #f7f5f0;
  --yellow: #f2c21c;
  --yellow-hover: #e5b510;
  --violet: #9d85ce;
  --violet-ink: #6b55a3;
  --bk-green: #8fbc74;
  --sand: #cfc9ba;
  --petrol: #23201a;
  --green: #55503f;
  --ink: #23201a;
  --deep: #1a1815;
  --white: #fff;
  --tint: #f7f5f0;
  --border: #e3dfd5;
  --border-strong: #cfc9ba;
  --caption: #8a8474;
  --body: #55503f;
  --rating: #f2c21c;
  --success: #4f7a3a;
  --error: #b4443c;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-chip: 0 8px 8px 8px;
  --r-card: 18px;
  --r-panel: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
body.pb-editing { overflow: hidden; }
a { color: var(--petrol); }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- Typo */
.pb-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--petrol); }
.pb-title, .pb-h1 { margin: 6px 0 0; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.02; }
.pb-title { font-size: 44px; }
.pb-h1 { font-size: 42px; }
.pb-muted { color: var(--body); margin: 0; }
.pb-hint { color: var(--body); font-size: 13px; margin: 6px 0 0; line-height: 1.45; }
.pb-label { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pb-form-error { color: var(--error) !important; font-size: 13px; margin: 8px 0 0; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--white); color: var(--ink); }

/* ---------- Buttons */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, opacity .15s; }
.pb-btn:disabled, .pb-btn.busy { opacity: .55; cursor: progress; }
.pb-btn-primary { background: var(--ink); color: var(--white); padding-left: 7px; }
.pb-btn-primary:hover { background: #1b2420; }
.pb-btn-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--petrol); flex: none; position: relative; }
.pb-btn-dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--white); }
.pb-btn-arrow { margin-left: 2px; }
.pb-btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.pb-btn-secondary:hover { border-color: var(--petrol); color: var(--petrol); }
.pb-btn-ghost { background: transparent; color: var(--ink); }
.pb-btn-ghost:hover { background: var(--tint); }
.pb-btn-danger { background: var(--white); color: var(--error); border-color: #e5c4c1; }
.pb-btn-danger:hover { background: #fbf1f0; }
.pb-btn-danger-soft { color: var(--error); }
.pb-danger-text { color: var(--error); }
.pb-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 8px; }
.pb-btn-sm.pb-btn-primary { padding-left: 5px; }
.pb-btn-sm .pb-btn-dot { width: 22px; height: 22px; }
.pb-btn-sm .pb-btn-dot::after { inset: 8px; }
.pb-btn-block { width: 100%; justify-content: space-between; }
.pb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--white); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.pb-icon-btn:hover:not(:disabled) { border-color: var(--petrol); color: var(--petrol); }
.pb-icon-btn:disabled { opacity: .35; cursor: default; }
.pb-icon-sm { width: 28px; height: 28px; font-size: 15px; }
.pb-link-btn { background: none; border: 0; padding: 4px 0; color: var(--petrol); font: 600 13px var(--font); cursor: pointer; text-align: left; }
.pb-link-btn:hover { text-decoration: underline; }

/* ---------- Formulare */
.pb-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; font: 15px var(--font); color: var(--ink); background: var(--white); }
.pb-input:focus, .pb-code:focus, .pb-textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(242, 194, 28, .35); }
.pb-input-sm { height: 34px; font-size: 13px; padding: 0 10px; border-radius: 8px; }
.pb-textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.pb-input { appearance: auto; }
.pb-mono { font-family: var(--mono); font-size: 13px; }
.pb-code { display: block; width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: 10px; font: 12.5px/1.5 var(--mono); color: var(--ink); background: var(--tint); resize: vertical; tab-size: 2; white-space: pre; overflow: auto; }
.pb-code-sm { font-size: 11.5px; }
.pb-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; font-size: 14px; cursor: pointer; }
.pb-check input { margin: 3px 0 0; accent-color: var(--petrol); width: 16px; height: 16px; flex: none; }
.pb-check-sm { font-size: 12.5px; margin-top: 6px; }
.pb-check-sm input { width: 14px; height: 14px; }
.pb-color { width: 48px; height: 34px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--white); cursor: pointer; }
.pb-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-inline .pb-input { flex: 1; min-width: 160px; }
.pb-form { display: grid; gap: 14px; }
.pb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-slug-wrap { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--white); }
.pb-slug-wrap:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(242, 194, 28, .35); }
.pb-slug-prefix { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--caption); font-size: 13px; white-space: nowrap; background: var(--tint); border-right: 1px solid var(--border); }
.pb-slug-wrap .pb-input { border: 0; box-shadow: none !important; height: 40px; min-width: 0; }
.pb-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); background: var(--tint); color: var(--body); text-align: center; cursor: pointer; }
.pb-drop input[type=file] { max-width: 100%; }
.pb-drop.over { border-color: var(--petrol); background: #efebe0; }
.pb-drop strong { color: var(--ink); font-size: 15px; }
.pb-drop-big { padding: 34px; }
.pb-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint); border: 1px solid var(--border); justify-self: start; }
.pb-seg-btn { border: 0; background: transparent; height: 34px; padding: 0 16px; border-radius: 999px; font: 600 13px var(--font); color: var(--body); cursor: pointer; }
.pb-seg-btn.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 32, 26, .12); }
.pb-progress { color: var(--petrol); font-weight: 600; min-height: 1em; }
.pb-sep { border: 0; border-top: 1px solid var(--border); margin: 22px 0 14px; }
.pb-mt { margin-top: 18px; }

/* ---------- Chips */
.pb-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-chip); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pb-chip-live { background: #e5f2ec; color: var(--success); }
.pb-chip-changed { background: #fdf3dc; color: #8a6200; }
.pb-chip-draft { background: var(--tint); color: var(--body); border: 1px solid var(--border); }

/* ---------- Login */
.pb-login-body { display: grid; place-items: center; min-height: 100vh; background: var(--tint); padding: 16px; }
.pb-login { width: 100%; max-width: 420px; padding: 36px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: 0 20px 50px rgba(35, 32, 26, .06); }
.pb-login form { margin-top: 28px; display: grid; gap: 8px; }
.pb-login .pb-btn { margin-top: 12px; }

/* ---------- Dashboard */
.pb-top { display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 5; }
.pb-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.pb-brand-title { font-size: 17px; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
.pb-brand-site { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--petrol); }
.pb-nav { display: flex; gap: 22px; flex: 1; }
.pb-nav-link { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.pb-nav-link:hover { color: var(--petrol); }
.pb-nav-link.active { border-bottom-color: var(--petrol); color: var(--petrol); }
.pb-logout { color: var(--body); }
.pb-main { background: var(--white); }
.pb-container { max-width: 1120px; margin: 0 auto; padding: 40px 28px 80px; }
.pb-container-narrow { max-width: 820px; }
.pb-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.pb-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); }
.pb-list { display: grid; gap: 10px; }
.pb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px auto; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); }
.pb-row:hover { border-color: var(--border-strong); background: #ffffff; }
.pb-row-main { display: flex; flex-direction: column; min-width: 0; }
.pb-row-title { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-row-title:hover { color: var(--petrol); }
.pb-row-url { font-family: var(--mono); font-size: 12px; color: var(--caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-row-date { font-size: 13px; color: var(--body); }
.pb-row-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.pb-empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r-panel); background: var(--tint); display: grid; gap: 12px; justify-items: center; }
.pb-empty-title { margin: 0; font-size: 26px; font-weight: 600; font-style: italic; text-transform: uppercase; }
.pb-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pb-media-card { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.pb-media-thumb { display: block; aspect-ratio: 4 / 3; background: var(--tint); }
.pb-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-media-meta { display: grid; gap: 2px; padding: 10px 12px 4px; font-size: 12.5px; }
.pb-media-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-media-actions { display: flex; gap: 2px; padding: 4px 6px 8px; }
.pb-media-grid-pick { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 46vh; overflow: auto; padding: 2px; }
.pb-media-pick { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--tint); cursor: pointer; }
.pb-media-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-media-pick:hover { border-color: var(--petrol); }
.pb-loading { display: grid; place-items: center; height: 100vh; color: var(--body); }

/* ---------- Dialoge */
.pb-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(35, 32, 26, .42); animation: pb-fade .12s ease-out; }
.pb-modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-panel); box-shadow: 0 30px 80px rgba(35, 32, 26, .28); }
.pb-modal-wide { max-width: 860px; }
.pb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 8px; }
.pb-modal-title { margin: 0; font-size: 22px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
.pb-modal-body { padding: 8px 24px 20px; overflow: auto; }
.pb-modal-text { margin: 0 0 12px; color: var(--body); }
.pb-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--border); }
.pb-revs { display: grid; gap: 8px; }
.pb-rev { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
@keyframes pb-fade { from { opacity: 0; } }

/* ---------- Toasts */
.pb-toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.pb-toast { max-width: min(560px, calc(100vw - 32px)); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(35, 32, 26, .25); transition: opacity .3s, transform .3s; }
.pb-toast-error { background: var(--error); }
.pb-toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- Editor */
.pb-editor { position: fixed; inset: 0; display: grid; grid-template-rows: 60px minmax(0, 1fr); background: var(--white); }
.pb-etop { display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.pb-back { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--ink); text-decoration: none; font-size: 18px; flex: none; }
.pb-back:hover { border-color: var(--petrol); color: var(--petrol); }
.pb-etitle-wrap { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pb-etitle { border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -6px; font: 700 16px var(--font); color: var(--ink); background: transparent; min-width: 0; text-overflow: ellipsis; }
.pb-etitle:hover { border-color: var(--border); }
.pb-etitle:focus { outline: none; border-color: var(--petrol); }
.pb-eurl { font-family: var(--mono); font-size: 11.5px; color: var(--caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-devices { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); border: 1px solid var(--border); flex: none; }
.pb-dev { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 999px; font: 600 12.5px var(--font); color: var(--body); cursor: pointer; }
.pb-dev.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 32, 26, .12); }
.pb-etools { display: flex; align-items: center; gap: 8px; flex: none; }
.pb-save-state { font-size: 12.5px; color: var(--success); font-weight: 600; min-width: 92px; text-align: right; }
.pb-save-state.pending { color: var(--caption); }
.pb-ebody { display: grid; grid-template-columns: 290px minmax(0, 1fr) 330px; min-height: 0; }
.pb-side, .pb-insp { min-height: 0; overflow: auto; background: var(--white); }
.pb-side { border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.pb-insp { border-left: 1px solid var(--border); }
.pb-tabs { display: flex; padding: 10px 10px 0; gap: 4px; border-bottom: 1px solid var(--border); flex: none; }
.pb-tab { flex: 1; border: 0; background: transparent; height: 38px; font: 700 11.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--body); border-bottom: 2px solid transparent; cursor: pointer; }
.pb-tab.active { color: var(--petrol); border-bottom-color: var(--petrol); }
.pb-side-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 40px; }
.pb-pal > span:last-child, .pb-lib-add > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pb-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 8px; }
.pb-side-head-col { flex-direction: column; align-items: flex-start; gap: 4px; }
.pb-side-tools { display: flex; gap: 12px; }
.pb-pad { padding: 0 14px; }
.pb-tree { list-style: none; margin: 0; padding: 0; }
.pb-tree-row { display: flex; align-items: center; gap: 6px; height: 32px; padding-right: 10px; cursor: pointer; border-left: 3px solid transparent; font-size: 13px; user-select: none; }
.pb-tree-row:hover, .pb-tree-row.hover { background: var(--tint); }
.pb-tree-row.sel { background: #fbf0c8; border-left-color: var(--yellow); }
.pb-tree-row.dragging { opacity: .4; }
.pb-tree-row.drop-before { box-shadow: inset 0 2px 0 var(--petrol); }
.pb-tree-row.drop-after { box-shadow: inset 0 -2px 0 var(--petrol); }
.pb-tree-row.drop-inside { background: #fbf0c8; }
.pb-tree-toggle { width: 16px; height: 16px; border: 0; padding: 0; background: none; color: var(--body); font-size: 10px; cursor: pointer; flex: none; }
.pb-tree-toggle-empty { display: inline-block; }
.pb-tree-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 3px; border-radius: 5px; background: var(--tint); border: 1px solid var(--border); font: 700 10px var(--mono); color: var(--petrol); flex: none; }
.pb-tree-name { font-weight: 700; white-space: nowrap; flex: none; }
.pb-tree-text { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pb-tree-row.group .pb-tree-name { color: var(--deep); }
.pb-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px; }
.pb-pal { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font: 600 13px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.pb-pal:hover { border-color: var(--petrol); background: #f3f0e8; }
.pb-pal-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--tint); color: var(--petrol); font: 700 11px var(--mono); flex: none; }
.pb-lib { display: grid; gap: 6px; padding: 0 14px; }
.pb-lib-item { display: flex; align-items: center; gap: 6px; }
.pb-lib-add { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font: 600 13px var(--font); cursor: pointer; text-align: left; min-width: 0; overflow: hidden; }
.pb-lib-add:hover { border-color: var(--petrol); }
.pb-settings { padding: 6px 14px 20px; display: grid; gap: 4px; }
.pb-field { margin-top: 12px; }
.pb-og { display: flex; align-items: center; justify-content: center; min-height: 64px; border: 1px solid var(--border); border-radius: 10px; background: var(--tint); overflow: hidden; margin-bottom: 8px; }
.pb-og img { width: 100%; max-height: 150px; object-fit: cover; display: block; }
.pb-details { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pb-details summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.pb-details[open] summary { margin-bottom: 10px; }
.pb-details .pb-btn { margin-top: 10px; }
.pb-toolstack { display: grid; gap: 8px; padding: 0 0 10px; }
.pb-toolstack .pb-btn { justify-content: flex-start; }

.pb-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--tint); }
.pb-frame-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 18px; overflow: auto; }
.pb-frame { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 10px 34px rgba(35, 32, 26, .08); transition: width .2s ease; }
.pb-stage[data-device="tablet"] .pb-frame { width: 820px; flex: none; }
.pb-stage[data-device="mobile"] .pb-frame { width: 390px; flex: none; }
.pb-textbar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--ink); color: var(--white); flex-wrap: wrap; }
.pb-tb { height: 30px; min-width: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .08); color: var(--white); font: 600 13px var(--font); cursor: pointer; }
.pb-tb:hover { background: var(--petrol); }
.pb-tb-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .2); margin: 0 4px; }
.pb-tb-grow { flex: 1; }
.pb-tb-hint { font-size: 11.5px; color: var(--caption); margin-right: 8px; }

.pb-insp-empty { padding: 22px 18px; }
.pb-keys { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 13px; color: var(--body); }
.pb-insp-head { padding: 18px 18px 8px; }
.pb-insp-title { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 19px; font-weight: 700; }
.pb-insp-text { margin: 6px 0 0; color: var(--body); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pb-insp-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 18px; }
.pb-insp-actions-2 { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0; }
.pb-insp-section { margin: 10px 18px 0; padding: 14px 0 0; border-top: 1px solid var(--border); }
.pb-insp > .pb-details.pb-insp-section { border: 1px solid var(--border); padding: 10px 12px; margin-bottom: 30px; }
.pb-imglist, .pb-linklist { display: grid; gap: 10px; }
.pb-imgitem { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 10px; }
.pb-imgitem.focus { border-color: var(--rating); }
.pb-imgthumb { width: 74px; height: 56px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: var(--tint); cursor: pointer; }
.pb-imgthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-imgmeta { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pb-imgmeta .pb-input { width: 100%; }
.pb-linkitem { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; }
.pb-linktext { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1280px) {
  .pb-ebody { grid-template-columns: 250px minmax(0, 1fr) 290px; }
  .pb-tb-hint { display: none; }
}
@media (max-width: 980px) {
  .pb-ebody { grid-template-columns: 220px minmax(0, 1fr); }
  .pb-insp { position: fixed; right: 0; top: 60px; bottom: 0; width: 300px; box-shadow: -10px 0 30px rgba(35, 32, 26, .12); z-index: 20; }
  .pb-insp:has(.pb-insp-empty) { display: none; }
  .pb-devices, .pb-save-state { display: none; }
}
@media (max-width: 760px) {
  .pb-top { gap: 14px; padding: 0 16px; overflow-x: auto; }
  .pb-container { padding: 28px 16px 60px; }
  .pb-h1 { font-size: 32px; }
  .pb-row { grid-template-columns: 1fr; gap: 8px; }
  .pb-row-actions { justify-content: flex-start; }
  .pb-grid2 { grid-template-columns: 1fr; }
  .pb-login { padding: 26px 22px; }
  .pb-title { font-size: 36px; }
}

/* ------------------------------------------------------------------ KI */
.pb-tab { flex: 1 1 auto; padding: 0 4px; letter-spacing: .06em; }
.pb-modal-xl { max-width: 1180px; height: calc(100vh - 32px); }
.pb-modal-xl .pb-modal-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pb-ai-cmp { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.pb-ai-cmp > .pb-hint, .pb-ai-cmp > .pb-check { margin: 0; flex: none; }
.pb-ai-cmp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: none; }
.pb-ai-cmp-name { margin: 0; flex: 1; min-width: 220px; }
.pb-ai-cmp-wrap { flex: 1; min-height: 260px; display: flex; justify-content: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--tint); }
.pb-ai-cmp-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.pb-ai-cmp-wrap[data-device="mobile"] .pb-ai-cmp-frame { width: 390px; box-shadow: 0 0 0 1px var(--border); }
.pb-ai-steps { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 9px; }
.pb-ai-steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.pb-ai-steps li[data-state="done"] { color: var(--body); font-weight: 500; }
.pb-ai-step-dot, .pb-ai-spin { display: inline-block; flex: none; border-radius: 50%; border: 2px solid var(--petrol); border-top-color: transparent; animation: pb-spin .8s linear infinite; }
.pb-ai-step-dot { width: 14px; height: 14px; }
.pb-ai-spin { width: 12px; height: 12px; }
.pb-ai-steps li[data-state="done"] .pb-ai-step-dot { animation: none; border-color: var(--success); background: var(--success); }
.pb-ai-detail { min-height: 1.4em; margin: 0 0 6px; color: var(--petrol); font-weight: 600; }
@keyframes pb-spin { to { transform: rotate(360deg); } }
.pb-ai-busy { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--petrol); }
.pb-ai-block { display: grid; gap: 8px; }
.pb-ai-block .pb-hint { margin: 0; }
.pb-ai-go { gap: 12px; }
.pb-ai-sep { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pb-ai-sub { margin: 14px 0 6px; }
.pb-ai-cards { display: grid; gap: 12px; margin-top: 12px; }
.pb-ai-card { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); min-width: 0; }
.pb-ai-card.inserted { background: var(--tint); }
.pb-ai-card-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pb-ai-card-head strong { min-width: 0; overflow-wrap: anywhere; }
.pb-ai-card .pb-hint { margin: 6px 0 0; }
.pb-ai-card .pb-ai-where { font-size: 12px; color: var(--caption); }
.pb-ai-card .pb-ai-note { color: #8a6200; }
.pb-ai-prev { margin-top: 10px; height: 120px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.pb-ai-prev-frame { display: block; width: 620px; height: 200px; border: 0; transform-origin: 0 0; }
.pb-ai-card-actions { margin-top: 10px; gap: 8px; }
.pb-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pb-ai-chip { height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--tint); font: 600 12px var(--font); color: var(--ink); cursor: pointer; }
.pb-ai-chip:hover { border-color: var(--petrol); }
.pb-ai-instr { min-height: 72px; font-size: 13px; }
.pb-ai-usage { margin-top: 18px; font-size: 12px; color: var(--caption); }
.pb-ai-imgout { margin-top: 14px; }
.pb-ai-imgout img { display: block; max-width: 100%; max-height: 50vh; border-radius: 10px; border: 1px solid var(--border); }
.pb-pal-ai .pb-pal-icon { background: #efebe0; }

/* Verbund aller Websites (seit 2.0) */
.pb-top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.pb-site-switch .pb-select { height: 36px; padding: 0 10px; font-size: 13px; min-width: 160px; max-width: 240px; }
.pb-user { font-size: 12px; color: var(--caption); white-space: nowrap; }
.pb-row-site { display: inline-block; font: 600 11px/1.6 var(--font); letter-spacing: .04em; color: var(--petrol); background: var(--tint); border: 1px solid var(--border); border-radius: var(--r-chip); padding: 0 6px; margin-right: 4px; }
.pb-filter { height: 40px; min-width: 180px; }
@media (max-width: 900px) { .pb-user { display: none; } }
.pb-adlabel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 10px 8px; padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: var(--r-chip); background: var(--tint); font-size: 12.5px; color: var(--body); }

/* Analytics */
.pb-an-range { margin-right: 8px; }
.pb-an-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 18px; }
.pb-an-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pb-an-tile-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--caption); }
.pb-an-tile-value { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pb-an-tile-hint { font-size: 12.5px; color: var(--body); }
.pb-an-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; margin: 0 0 16px; overflow-x: auto; }
.pb-an-h2 { font-size: 15px; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
.pb-an-h1 { font-size: 34px; max-width: 760px; }
.pb-an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-an-grid > .pb-an-card { margin: 0 0 16px; }
.pb-an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pb-an-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--caption); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.pb-an-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--ink); }
.pb-an-table tr:last-child td { border-bottom: 0; }
.pb-an-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-an-click { cursor: pointer; }
.pb-an-click:hover td { background: var(--tint); }
.pb-an-title { font-weight: 700; color: var(--ink); text-decoration: none; display: block; }
.pb-an-sub { display: block; font-size: 12px; color: var(--caption); margin-top: 3px; }
.pb-an-src { font-size: 13px; color: var(--body); max-width: 260px; }
.pb-an-back { display: inline-block; margin: 0 0 10px; }
.pb-an-chart { position: relative; }
.pb-an-chart svg { display: block; width: 100%; height: 160px; }
.pb-an-chart .bar { fill: var(--petrol); }
.pb-an-chart .bar.on { fill: var(--deep); }
.pb-an-chart .base { stroke: var(--border-strong); stroke-width: 1; }
.pb-an-tip { position: absolute; top: -6px; width: 180px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; pointer-events: none; transform: translateY(-100%); }
.pb-an-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--caption); margin-top: 6px; }
.pb-an-bars { display: flex; flex-direction: column; gap: 8px; }
.pb-an-bar-row { display: grid; grid-template-columns: minmax(120px, 36%) 1fr 64px; align-items: center; gap: 12px; font-size: 13.5px; }
.pb-an-bar-label { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-an-bar-track { height: 10px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.pb-an-bar-fill { display: block; height: 100%; background: var(--petrol); border-radius: 999px; }
.pb-an-bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.pb-an-insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-an-ins { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.pb-an-ins-icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--caption); }
.pb-an-ins-warn .pb-an-ins-icon { background: #B26B00; }
.pb-an-ins-ok .pb-an-ins-icon { background: var(--success); }
.pb-an-ins-info .pb-an-ins-icon { background: var(--petrol); }
@media (max-width: 900px) { .pb-an-tiles { grid-template-columns: 1fr 1fr; } .pb-an-grid { grid-template-columns: 1fr; } }

.pb-fav { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-chip); background: var(--tint); }
.pb-fav img { display: block; border-radius: 4px; }

/* Website-Wechsel und Startseite */
.pb-sitemenu { position: relative; }
.pb-sitemenu-btn { list-style: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--white); cursor: pointer; font-size: 13px; white-space: nowrap; }
.pb-sitemenu-btn::-webkit-details-marker { display: none; }
.pb-sitemenu-btn:hover, .pb-sitemenu[open] .pb-sitemenu-btn { border-color: var(--petrol); }
.pb-sitemenu-client { font-weight: 700; color: var(--petrol); }
.pb-sitemenu-site { color: var(--ink); font-weight: 600; }
.pb-sitemenu-caret { color: var(--caption); }
.pb-sitemenu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 14px 40px rgba(10,15,13,.14); padding: 10px; z-index: 50; }
.pb-sitemenu-group + .pb-sitemenu-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.pb-sitemenu-head { margin: 4px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--caption); }
.pb-sitemenu-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); text-align: left; }
.pb-sitemenu-item:hover { background: var(--tint); }
.pb-sitemenu-item.current { background: var(--tint); font-weight: 700; }
.pb-sitemenu-domain { font-size: 12px; color: var(--caption); font-weight: 400; }
.pb-sitemenu-all { display: block; margin-top: 8px; padding: 10px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--petrol); text-decoration: none; }
.pb-hub-client { margin: 0 0 28px; }
.pb-hub-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.pb-hub-title { font-size: 20px; font-weight: 800; margin: 0; }
.pb-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pb-hub-site { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.pb-hub-site.current { border-color: var(--petrol); box-shadow: inset 0 0 0 1px var(--petrol); }
.pb-hub-site-top { display: flex; flex-direction: column; gap: 2px; }
.pb-hub-domain { font-size: 12.5px; color: var(--body); text-decoration: none; }
.pb-hub-domain:hover { color: var(--petrol); }
.pb-hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.pb-hub-stats dt { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--caption); }
.pb-hub-stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pb-hub-actions { display: flex; gap: 8px; }

.pb-hub-note { margin: 0 0 0 auto; }
.pb-top { overflow: visible; }
@media (max-width: 1250px) { .pb-brand-site { display: none; } .pb-user { display: none; } }
@media (max-width: 980px) { .pb-top { gap: 14px; padding: 0 16px; } .pb-nav { gap: 14px; } .pb-sitemenu-client { display: none; } }

/* Server (Admin) */
.pb-srv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pb-srv-head .pb-an-h2 { margin: 0; }
.pb-srv-ok { color: var(--success); font-weight: 600; font-size: 13px; }
.pb-srv-miss { color: var(--caption); font-size: 13px; }
.pb-srv-actions { white-space: nowrap; text-align: right; }
.pb-srv-actions .pb-btn { margin-left: 4px; }
.pb-srv-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 8px; }
.pb-srv-client { border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pb-srv-client-head { display: flex; flex-direction: column; }
.pb-srv-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.pb-srv-dl dt { color: var(--body); }
.pb-srv-dl dd { margin: 0; color: var(--ink); word-break: break-word; }
.pb-srv-users { display: flex; flex-direction: column; gap: 6px; }
.pb-srv-user { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.pb-srv-steps { margin: 0 0 6px; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.pb-srv-steps li { margin-bottom: 6px; }
.pb-srv-steps code { font-family: var(--mono); font-size: 12px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.pb-mt { margin-top: 12px; }

.pb-ai-notes { font-size: 13px; line-height: 1.45; min-height: 76px; resize: vertical; }


/* =====================================================================
   bekara Overrides (Brand Kit v1.0, wie bekara.tech)
   ===================================================================== */
body, .pb-main { background: var(--paper); }
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--ink); text-decoration-color: var(--sand); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

/* Typo: Space Grotesk, gerade, eng gesetzt; Labels in IBM Plex Mono */
.pb-title, .pb-h1 { font-style: normal; text-transform: none; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.pb-eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--caption); }
.pb-label { font-family: var(--mono); font-weight: 500; letter-spacing: .12em; color: var(--body); }
.pb-progress { color: var(--violet-ink); }

/* Buttons: Gelb mit asymmetrischer Ecke (primär), Outline mit gespiegelter Ecke (sekundär) */
.pb-btn { border-radius: 16px 0 16px 16px; font-weight: 600; }
.pb-btn-primary { background: var(--yellow); color: var(--ink); border-radius: 0 16px 16px 16px; padding-left: 18px; }
.pb-btn-primary:hover { background: var(--yellow-hover); }
.pb-btn-sm.pb-btn-primary { padding-left: 12px; }
.pb-btn-primary .pb-btn-dot { display: none; }
.pb-btn-secondary { background: var(--white); border-color: var(--sand); color: var(--ink); }
.pb-btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.pb-btn-ghost:hover { background: #efece4; }
.pb-btn-danger { border-color: #e5c4c1; }
.pb-icon-btn { border-color: var(--sand); }
.pb-icon-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.pb-link-btn { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.pb-link-btn:hover { text-decoration-color: var(--ink); }

/* Formulare */
.pb-input { border-radius: 0 12px 12px 12px; border-color: var(--border); }
.pb-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 194, 28, .35); outline: none; }
kbd { border-color: var(--sand); }

/* Login */
.pb-login-body { background: var(--paper); }
.pb-login { border-color: var(--border); box-shadow: 0 24px 60px rgba(35, 32, 26, .07); }
.pb-login .pb-brand { flex-direction: row; align-items: center; gap: 10px; margin: 0 0 26px; }
.pb-login .pb-brand-logo { width: 26px; height: 38px; object-fit: contain; }
.pb-login .pb-brand-word { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* Kopfzeile: wie bekara.tech (Paper, feine Linie, Logo + Wortmarke) */
.pb-top { background: rgba(247, 245, 240, .95); backdrop-filter: blur(8px); border-bottom-color: var(--border); }
.pb-brand-bar { flex-direction: row; align-items: center; gap: 10px; }
.pb-brand-bar .pb-brand-logo { width: 22px; height: 32px; object-fit: contain; flex: none; }
.pb-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pb-brand-title { font-style: normal; text-transform: none; font-weight: 700; letter-spacing: -.02em; }
.pb-brand-site { font-family: var(--mono); font-weight: 500; letter-spacing: .12em; color: var(--caption); }
.pb-nav-link { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--body); }
.pb-nav-link:hover { color: var(--ink); }
.pb-nav-link.active { color: var(--ink); border-bottom-color: var(--yellow); }

/* Flächen und Chips */
.pb-row:hover { background: var(--white); border-color: var(--sand); }
.pb-chip { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.pb-chip-live { background: #e8f1e1; color: var(--success); }
.pb-chip-changed { background: #fbf0c8; color: #7a5d00; }
.pb-chip-draft { background: var(--paper); border-color: var(--border); }

/* Titel ohne Go2Flow-Kursiv/Versalien; Kleinlabels in Mono wie bekara.tech */
.pb-modal-title, .pb-empty-title { font-style: normal; text-transform: none; font-weight: 700; letter-spacing: -.02em; }
.pb-tab, .pb-an-tile-label, .pb-an-table th, .pb-sitemenu-head, .pb-hub-stats dt { font-family: var(--mono); font-weight: 500; }
.pb-tab.active, .pb-tab[aria-selected="true"] { color: var(--ink); }
.pb-login .pb-title + .pb-muted, .pb-login .pb-title + form { margin-top: 14px; }
