/* turbopost — Grundlayout. Farben und Schriften kommen pro Kunde aus /theme.css (generiert aus themes/<slug>/tenant.json):
   --brand, --brand-dark, --ink, --bg, --surface, --card, --muted, --line, --beige, --grey, --strong, --focus, --highlight,
   --topbar*, --hero*, --btn*, --status-<status>, --font, --font-head. Hier keine Kundenfarben fest eintragen. */
:root { --radius: 4px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.2; }
h1 { font-size: 32px; margin: 0 0 16px; }
h2 { font-size: 22px; margin: 24px 0 12px; }

.topbar { background: var(--topbar); color: var(--topbar-text); border-bottom: 4px solid var(--topbar-accent); display: flex; align-items: center; gap: 24px; padding: 0 24px; min-height: 64px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: flex-end; gap: 6px; text-decoration: none; color: var(--topbar-text); }
.brand img { height: var(--logo-ui-height, 40px); display: block; }
.brand span { font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1; color: var(--topbar-accent); letter-spacing: .5px; }
#nav { display: flex; align-items: center; gap: 20px; flex: 1; }
#nav a, #nav .link { color: var(--topbar-text); text-decoration: none; font-size: 15px; padding: 20px 0 18px; border-bottom: 3px solid transparent; }
#nav a.active { border-bottom-color: var(--topbar-accent); }
#nav a:hover, #nav .link:hover { color: var(--topbar-accent); }
.nav-user { margin-left: auto; color: var(--topbar-text); opacity: .75; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--topbar-text); font-size: 26px; cursor: pointer; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }

.banner { background: var(--beige); color: var(--ink); text-align: center; padding: 6px 12px; font-size: 14px; }
main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-text); font-weight: 700; padding: 9px 18px; border-radius: var(--radius); font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--surface); }
.btn.danger { background: #fff; color: #b3261e; border-color: #b3261e; }
.btn.ok { background: var(--btn-ok); border-color: var(--btn-ok); color: var(--btn-ok-text); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border-top: 4px solid var(--status-color, var(--muted)); }
.post-card:hover { box-shadow: 0 4px 14px rgba(3, 28, 38, .12); }
.post-card .thumb { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--beige); border-radius: 2px; }
.post-card h3 { margin: 0; font-size: 18px; }
.post-card p { margin: 0; color: var(--grey); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--muted); font-size: 13px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: #fff; background: var(--chip, var(--muted)); white-space: nowrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--strong); }
.filters button.active { background: var(--strong); color: #fff; border-color: var(--strong); }
.filters .count { color: var(--muted); margin-left: 4px; }
/* Übersicht: Ansicht umschalten, Spalten pro Workflow-Status */
main:has(.board) { max-width: 1440px; }
.viewswitch { display: inline-flex; margin: -8px 0 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.viewswitch button { border: 0; background: #fff; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--strong); }
.viewswitch button.active { background: var(--strong); color: #fff; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board-col { background: rgba(0, 0, 0, .03); border-top: 4px solid var(--status-color, var(--muted)); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.board-col h2 { margin: 0; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.board-col h2 .count { color: var(--muted); font-weight: 400; }
.mini-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 10px; }
.mini-card:hover { box-shadow: 0 4px 14px rgba(3, 28, 38, .12); }
.mini-card .thumb { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--beige); border-radius: 2px; }
.mini-card h3 { margin: 0; font-size: 15px; }
.search { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; min-width: 220px; }

label { display: block; font-size: 14px; color: var(--strong); margin: 14px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], textarea, select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
textarea { min-height: 220px; resize: vertical; }
.counter { text-align: right; font-size: 12px; color: var(--muted); }
.counter.over { color: #b3261e; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.img-item { background: var(--bg); border-radius: var(--radius); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.img-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.img-item input { font-size: 12px; padding: 5px 7px; }
.img-item .row { gap: 4px; }
.img-item button { font-size: 12px; padding: 3px 8px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--focus); color: var(--focus); }

/* Post-Vorschau */
.li-preview { background: #fff; border: 1px solid #e0dfdc; border-radius: 8px; overflow: hidden; font-family: -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; color: rgba(0,0,0,.9); }
.li-head { display: flex; gap: 8px; padding: 12px 12px 0; align-items: center; }
.li-logo { width: 48px; height: 48px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.li-logo img { width: 48px; }
.li-name { font-weight: 600; }
.li-sub { color: rgba(0,0,0,.6); font-size: 12px; }
.li-text { padding: 8px 12px 12px; white-space: pre-wrap; word-wrap: break-word; }
.li-text .tag { color: var(--accent); font-weight: 600; }
.li-media { display: grid; gap: 2px; }
.li-media.n1 { grid-template-columns: 1fr; }
.li-media.n2 { grid-template-columns: 1fr 1fr; }
.li-media.n3 { grid-template-columns: 1fr 1fr; }
.li-media.n3 img:first-child { grid-column: span 2; }
.li-media.n4 { grid-template-columns: 1fr 1fr; }
.li-media img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 420px; }
.li-media.many { position: relative; }
.li-foot { border-top: 1px solid #e0dfdc; display: flex; justify-content: space-around; color: rgba(0,0,0,.6); padding: 8px; font-size: 13px; }

.workflow h3 { margin: 0 0 8px; font-size: 18px; }
.steps { display: flex; gap: 4px; margin: 0 0 14px; }
.steps span { flex: 1; height: 6px; background: var(--line); border-radius: 3px; }
.steps span.done { background: var(--focus); }
.history { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.history li { padding: 8px 0; border-bottom: 1px solid var(--bg); }
.history .who { color: var(--strong); }
.history .c { white-space: pre-wrap; background: var(--bg); padding: 6px 8px; border-radius: 2px; margin-top: 4px; }
.notice { padding: 10px 12px; border-radius: var(--radius); font-size: 14px; background: var(--highlight); color: var(--focus); }
.notice.err { background: #fdecea; color: #b3261e; }
.notice.warn { background: #fff4e5; color: #8a4b00; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bg); font-size: 14px; vertical-align: top; }
th { color: var(--strong); font-weight: 400; background: #fafaf8; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(3,28,38,.08); }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-hero { background: var(--hero); color: var(--hero-text); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero img { width: 180px; }
/* Akzentstrich: linke Kante des Titels, bündig mit Logo und Fusszeile, so hoch wie der Text */
.login-hero h1 { color: var(--hero-text); font-size: 44px; max-width: 460px; margin: 32px 0; padding-left: 20px; border-left: 8px solid var(--hero-rule); }
.login-hero p { color: var(--line); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-form form { width: 100%; max-width: 360px; }
.dialog-back { position: fixed; inset: 0; background: rgba(3, 28, 38, .5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialog { background: #fff; border-radius: var(--radius); padding: 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.checks label { display: flex; gap: 8px; align-items: center; margin: 6px 0; color: var(--ink); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius); z-index: 60; max-width: 90vw; }
.toast.err { background: #b3261e; }

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .side { position: static; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { padding: 28px; min-height: 220px; }
  .login-hero h1 { font-size: 26px; padding-left: 14px; border-left-width: 6px; margin: 20px 0; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; flex-wrap: wrap; }
  .menu-btn { display: block; }
  #nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 12px; }
  #nav.open { display: flex; }
  #nav a, #nav .link { padding: 8px 0; }
  .nav-user { margin-left: 0; }
  main { padding: 20px 14px 48px; }
  h1 { font-size: 26px; }
  .search { min-width: 0; width: 100%; }
}
textarea.short { min-height: 70px; }
.workflow .row { margin-top: 12px; }
.logo-opts { margin: 4px 0 10px; }
.logo-opts label { margin: 4px 0; }
.logo-opts .sub { display: block; padding-left: 24px; font-size: 13px; }
.logo-opts .off { opacity: .5; }
.badge { font-size: 11px; color: var(--focus); background: var(--highlight); border-radius: 999px; padding: 1px 8px; align-self: flex-start; }
.burn-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.burn-list figure { margin: 0; }
.burn-list img { width: 100%; display: block; border: 1px solid var(--line); }
.burn-list figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dialog:has(.burn-list) { max-width: 900px; }
.li-confirm { margin: 12px 0; max-width: 420px; }
.crop-dialog { max-width: 760px; }
.crop-dialog h2 { margin: 0; }
.crop-formats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.crop-formats button { border: 1px solid var(--line); background: #fff; color: var(--strong); border-radius: var(--radius); padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.crop-formats button small { color: var(--muted); font-size: 11px; }
.crop-formats button.active { border-color: var(--focus); background: var(--highlight); color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.crop-stage-wrap { display: flex; justify-content: center; background: repeating-conic-gradient(#ecece8 0 25%, #f7f7f4 0 50%) 0 0 / 16px 16px; padding: 10px; border-radius: var(--radius); }
.crop-stage { display: block; touch-action: none; cursor: grab; outline: 1px solid rgba(3,28,38,.25); max-width: 100%; }
.crop-stage.is-dragging { cursor: grabbing; }
.crop-stage:focus-visible { outline: 2px solid var(--focus); }
.crop-tools { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.crop-zoom { flex: 1; display: flex; gap: 10px; align-items: center; margin: 0; }
.crop-zoom input { flex: 1; accent-color: var(--focus); }
.crop-hint { margin: 6px 0 0; }
.img-item [data-edit-img] { font-size: 12px; padding: 3px 8px; }
@media (max-width: 760px) {
  .crop-dialog { padding: 14px; }
  .crop-formats button { flex: 1 1 calc(50% - 6px); }
  .dialog-back { padding: 6px; }
}

/* Projektfelder, Kanäle */
.fields { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts { font-size: 13px; color: var(--muted); }
.chs { display: flex; gap: 6px; flex-wrap: wrap; }
.ch { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.chstatus { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.chstatus li { padding: 3px 0; }
.chstatus li.err { color: #b3261e; }
.problems { margin: 0; padding-left: 18px; color: #8a4b00; font-size: 14px; }
.chip { color: #fff; }
.login-hero img { width: 160px; height: auto; }
select.search { width: auto; }
.login-hero p { color: var(--hero-text); opacity: .8; }

/* Einrichtungs-Sperre (Konfiguration im Entwurf) */
body.setup-lock main { max-width: 560px; padding-top: 12vh; }
.lock-card { text-align: center; padding: 36px 28px; }
.lock-card h1 { margin: 16px 0 8px; }
.lock-card .row { justify-content: center; }
.lock-logo { max-height: 56px; max-width: 220px; background: var(--topbar); padding: 10px 14px; border-radius: var(--radius); }
.banner a { color: inherit; font-weight: 700; }

/* Setup-Assistent */
.wz-head h1 { margin-bottom: 2px; }
.wz-head .meta { margin: 0; }
.wz-status { font-size: 13px; padding: 4px 12px; }
.wz-status.is-draft { background: #8a4b00; }
.wz-status.is-active { background: #1b7f3b; }
.wz-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 16px 0 6px; }
.wz-progress span { display: block; height: 100%; background: var(--focus); transition: width .2s; }
.wz-count { margin: 0 0 16px; }
.wz-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.wz-steps { position: sticky; top: 88px; }
.wz-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wz-steps button { width: 100%; display: flex; gap: 10px; align-items: center; background: none; border: 0; border-radius: var(--radius); padding: 7px 8px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.wz-steps button:hover:not(:disabled) { background: rgba(0, 0, 0, .04); }
.wz-steps button:disabled { color: var(--muted); cursor: default; }
.wz-steps .n { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #fff; }
.wz-steps li.done .n { border-color: var(--focus); color: var(--focus); }
.wz-steps li.current button { background: var(--highlight); font-weight: 700; }
.wz-steps li.current .n { border-color: var(--focus); background: var(--focus); color: #fff; }
.wz-body h2 { margin-top: 0; }
.wz-sub { font-size: 16px; margin: 20px 0 8px; }
.wz-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.wz-foot-r { display: flex; gap: 10px; flex-wrap: wrap; }
.wz-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.wz-sticky { position: sticky; top: 88px; }
.wz-invalid input, input.wz-invalid, select.wz-invalid, .wz-invalid select, .wz-invalid .wz-tiles { border-color: #b3261e !important; outline: 1px solid #b3261e; }
.wz-logo.wz-invalid, .wz-cards.wz-invalid, .checks.wz-invalid, .wz-list.wz-invalid { outline: 2px solid #b3261e; outline-offset: 4px; border-radius: var(--radius); }
.wz-ferr { color: #b3261e; font-size: 13px; margin: 4px 0 0; }
.wz-plist { margin: 6px 0 0; padding-left: 18px; }
.wz-plist .link { color: inherit; text-decoration: underline; padding: 0; font-size: 13px; }
/* Live-Vorschau (public/js/live-preview.js): Variablen nur auf .lv-screen, Miniatur per zoom */
main:has(.wz-layout.has-live) { max-width: 1520px; }
.wz-layout.has-live { grid-template-columns: 170px minmax(0, 1fr) 420px; gap: 20px; }
.wz-live { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; }
.wz-form { max-width: 720px; }
.lv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.lv-toggle { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 0 8px; font: inherit; font-weight: 700; color: var(--ink); cursor: default; text-align: left; }
.lv-caret { margin-left: auto; display: none; }
.lv-dirty { font-size: 11px; font-weight: 400; color: #8a4b00; border: 1px solid #8a4b00; border-radius: 999px; padding: 0 8px; }
.lv-warncount { font-size: 12px; color: #8a4b00; font-weight: 700; }
.lv-tools { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lv-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lv-seg button { border: 0; background: #fff; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; color: #333; }
.lv-seg button[aria-pressed="true"] { background: #222; color: #fff; }
.lv-stage { background: #eceae6; border-radius: var(--radius); padding: 10px; display: flex; justify-content: center; }
.lv-stage.dark { background: #16181b; }
.lv-note { margin: 8px 0 0; }
.lv-warn { margin-top: 6px; font-size: 13px; }
.lv-warn summary { cursor: pointer; color: #8a4b00; font-weight: 700; }
.lv-warn ul { margin: 6px 0 0; padding-left: 18px; color: #5c3200; }
.lv-warn .meta { margin: 0; }
.lv-screen { width: 600px; zoom: .63; flex: 0 0 auto; background: var(--surface); color: var(--ink); font-family: var(--font); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); pointer-events: none; user-select: none; }
.lv-screen h4 { font-family: var(--font-head); margin: 0; color: var(--ink); }
.lv-screen .btn { font-size: 14px; padding: 7px 14px; }
.lv-login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px; }
.lv-hero { background: var(--hero); color: var(--hero-text); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.lv-hero img { width: 150px; max-height: 70px; object-fit: contain; object-position: left; }
.lv-hero h4 { color: var(--hero-text); font-size: 26px; line-height: 1.2; border-left: 6px solid var(--hero-rule); padding-left: 14px; margin: 22px 0; }
.lv-hero p { margin: 0; opacity: .8; font-size: 13px; }
.lv-form { background: var(--surface); padding: 30px 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.lv-form h4 { font-size: 22px; margin-bottom: 8px; }
.lv-form label { margin: 6px 0 2px; font-size: 13px; color: var(--strong); }
.lv-input { display: block; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lv-form .btn { margin-top: 14px; justify-content: center; }
.lv-top { background: var(--topbar); color: var(--topbar-text); border-bottom: 4px solid var(--topbar-accent); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 56px; }
.lv-brand { display: flex; align-items: flex-end; gap: 6px; }
.lv-brand img { height: var(--logo-ui-height, 40px); max-width: 220px; object-fit: contain; }
.lv-brand span { font-family: var(--font-head); font-weight: 900; font-size: 20px; line-height: 1; color: var(--topbar-accent); }
.lv-nav { display: flex; gap: 16px; font-size: 14px; }
.lv-nav b { border-bottom: 3px solid var(--topbar-accent); padding-bottom: 2px; }
.lv-page { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lv-head { display: flex; justify-content: space-between; align-items: center; }
.lv-head h4 { font-size: 26px; }
.lv-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-filters span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--strong); }
.lv-filters span.active { background: var(--strong); border-color: var(--strong); color: #fff; }
.lv-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.lv-col { background: rgba(0, 0, 0, .03); border-top: 4px solid var(--status-color, var(--muted)); border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.lv-colh { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.lv-colh .chip { overflow: hidden; text-overflow: ellipsis; }
.lv-card { background: var(--card); border-radius: 4px; padding: 8px; border-top: 3px solid var(--status-color, var(--muted)); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.lv-card b { font-family: var(--font-head); color: var(--ink); }
.lv-card p { margin: 0; }
.lv-tag { color: var(--accent); font-weight: 600; }
.lv-card .meta { font-size: 11px; }
.lv-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
/* Kontrast-Hinweise an Feldern */
.wz-cwarn { color: #8a4b00; font-size: 12px; margin: 4px 0 0; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }
.wz-cok { color: #1b7f3b; }
@media (min-width: 1181px) {
  .lv-body { display: block !important; }
}
@media (max-width: 1180px) {
  .wz-layout.has-live { grid-template-columns: 170px minmax(0, 1fr); }
  .wz-layout.has-live .wz-steps { grid-row: 1 / span 2; }
  .wz-live { grid-column: 2; grid-row: 1; position: static; max-height: none; }
  .wz-layout.has-live .wz-body { grid-column: 2; grid-row: 2; }
  .lv-toggle { cursor: pointer; padding: 2px 0; }
  .lv-caret { display: inline; }
  .lv.open .lv-caret { transform: rotate(180deg); }
  .lv:not(.open) .lv-body { display: none; }
  .lv.open .lv-toggle { padding-bottom: 8px; }
}
/* Logos */
.wz-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wz-logo { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; }
.wz-logo .meta { margin: 6px 0; }
.wz-logo code, .wz-body td code { word-break: break-all; }
.wz-logo .row { margin: 0; }
.wz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; border-radius: var(--radius); }
.wz-tile { height: 84px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: 8px; border: 1px solid var(--line); }
.wz-tile.light { background: #fff; }
.wz-tile.dark { background: #1f2933; }
.wz-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wz-warn { display: block; color: #8a4b00; }
/* Farben */
.wz-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
.wz-color label { margin-top: 10px; }
.wz-color .row { gap: 6px; flex-wrap: nowrap; }
.wz-color input[type=color] { width: 42px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; flex: 0 0 auto; cursor: pointer; }
.wz-color .hex { font-family: ui-monospace, Menlo, Consolas, monospace; }
.wz-more { margin-top: 18px; }
.wz-more summary { cursor: pointer; color: var(--strong); font-size: 14px; }
/* Schriften */
.wz-stack { margin-top: 6px; }
.wz-fontup { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; align-items: end; }
.wz-fontup > div:last-child { grid-column: 1 / -1; margin-top: 10px; }
.wz-fontpv { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; margin-bottom: 14px; }
.wz-fontpv h3 { margin: 0 0 6px; font-size: 22px; }
.wz-fontpv h3 { font-family: var(--font-head); }
.wz-fontpv p { margin: 0; font-family: var(--font); }
/* Auswahl-Karten */
.wz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.wz-cards.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wz-pick { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0; cursor: pointer; background: #fff; color: var(--ink); }
.wz-pick:has(input:checked) { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); background: var(--highlight); }
.wz-pick input { margin-top: 4px; accent-color: var(--focus); }
.wz-pick > span { display: flex; flex-direction: column; gap: 4px; }
.wz-roles { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--grey); }
.wz-cards.compact .wz-pick { padding: 8px 10px; }
/* Ablauf */
.wz-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 10px; }
.wz-node { display: inline-block; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--status-color, var(--muted)); font-size: 14px; font-weight: 700; }
.wz-arrow { color: var(--muted); font-size: 18px; }
.wz-trans td, .wz-trans th { font-size: 13px; }
/* Felder */
.wz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.wz-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.wz-list li { display: flex; gap: 6px; align-items: center; }
.wz-list .btn { padding: 6px 10px; }
.wz-addrow { flex-wrap: nowrap; }
.wz-addrow input { flex: 1; }
.off { opacity: .45; }
.wz-burn .burn-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* Zusammenfassung */
.wz-sum th { width: 170px; }
.wz-sum td:last-child { text-align: right; width: 120px; }
.wz-sw { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); margin-right: 4px; vertical-align: middle; }
.wz-sum-logo { height: 28px; max-width: 160px; background: #1f2933; padding: 4px 8px; border-radius: var(--radius); }
#wzCheck .notice, #wzAct { margin-top: 14px; }
.wz-stepchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-stepchips a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; text-decoration: none; color: var(--strong); }
.wz-stepchips a:hover { border-color: var(--focus); color: var(--focus); }
.wz-versions tr.current td { background: var(--highlight); }
#channelSections .settings-section, #configCard .settings-section { margin-bottom: 16px; }

@media (max-width: 900px) {
  .wz-layout { grid-template-columns: 1fr; gap: 12px; }
  .wz-steps { position: static; overflow-x: auto; }
  .wz-steps ol { flex-direction: row; gap: 4px; padding-bottom: 4px; }
  .wz-steps button { flex-direction: column; gap: 2px; padding: 4px; min-width: 62px; font-size: 11px; text-align: center; }
  .wz-steps .t { white-space: nowrap; }
  .wz-split { grid-template-columns: 1fr; }
  .wz-sticky { position: static; }
  .wz-layout.has-live { grid-template-columns: 1fr; }
  .wz-layout.has-live .wz-steps, .wz-live, .wz-layout.has-live .wz-body { grid-column: 1; grid-row: auto; }
  .wz-layout.has-live .wz-steps { order: 0; }
  .wz-live { order: 1; }
  .wz-layout.has-live .wz-body { order: 2; }
}
@media (max-width: 760px) {
  .wz-steps .t { display: none; }
  .wz-steps button { min-width: 34px; }
  .wz-steps li.current .t { display: inline; }
  .wz-fontup { grid-template-columns: 1fr 1fr; }
  .wz-pair { grid-template-columns: 1fr; }
  .wz-foot .btn { flex: 1 1 auto; justify-content: center; }
  .wz-foot-r { flex: 1 1 100%; }
  .wz-sum th { width: auto; }
  .wz-body { padding: 14px; }
  .lv-stage { padding: 8px; }
  .lv-screen { zoom: .5; }
}

/* PR D: neue Einstellungen nach Update, Export/Import */
.banner-new { background: #fff4e5; color: #8a4b00; }
.wz-opennote { margin: 0 0 12px; }
.wz-opennote .link, .wz-newkey .link { font-weight: 700; color: inherit; text-decoration: underline; padding: 0; }
.wz-newkey { margin-bottom: 12px; }
.wz-newbadge, .wz-newdot { display: inline-block; background: #b45309; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; text-transform: uppercase; letter-spacing: .03em; }
.wz-newdot { margin-left: auto; }
.wz-isnew { outline: 2px dashed #b45309; outline-offset: 3px; border-radius: 4px; }
.wz-xfer { flex-wrap: wrap; gap: 8px; }
.imp-preview { margin-top: 12px; border: 1px solid var(--line); }
.imp-preview h4 { margin: 0 0 4px; }
.imp-preview .notice { margin: 8px 0; }
.imp-diff { width: 100%; font-size: 13px; }
.imp-diff td { vertical-align: top; word-break: break-word; }
.imp-diff code { font-size: 12px; }
.imp-diff tr.k-add td:last-child { background: #ecfdf3; }
.imp-diff tr.k-del td:nth-child(3) { background: #fdecea; }
.imp-diff tr.k-chg td:last-child { background: #fffbea; }
.imp-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .25); margin-right: 5px; vertical-align: -1px; background: var(--sw, transparent); }
.imp-err { margin-top: 12px; }
.cfg-opennote { margin: 12px 0 4px; }
