:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-2: #4b5563;
  --muted: #6b7280;
  --accent: #08183a;
  --brand: #445cfd;
  --brand-ink: #2f44c8;
  --accent-text: #ffffff;
  --success: #059669;
  --success-hover: #047857;
  --success-soft: #d1fae5;
  --success-ink: #065f46;
  --warn-soft: #fef3c7;
  --warn-ink: #92400e;
  --info-soft: #dbeafe;
  --info-ink: #1e40af;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --danger-ink: #991b1b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
  --sidebar: 236px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body { background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---- Buttons & Formular ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover:not(:disabled) { background: #1f2937; }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.success:hover:not(:disabled) { background: var(--success-hover); }
.btn.danger { color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 13px; }
.btn.icon { width: 32px; padding: 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 13px; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input { height: 38px; width: 100%; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(68, 92, 253, .15); }
.error-text { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--success-soft); color: var(--success-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.info { background: var(--info-soft); color: var(--info-ink); }
.badge.neutral { background: var(--surface-2); color: var(--text-2); }
.badge.danger { background: var(--danger-soft); color: var(--danger-ink); }

/* ---- Login ---- */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-logo { display: block; height: 24px; width: auto; }
.brand-sub { padding-left: 10px; border-left: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 13px; }
.login-card .brand-logo { height: 30px; }
.login h1 { font-size: 20px; margin: 22px 0 4px; letter-spacing: -.01em; }
.login p.sub { margin: 0 0 20px; color: var(--muted); }
.login .btn { width: 100%; height: 40px; }
.login .back { display: block; text-align: center; margin-top: 16px; color: var(--muted); text-decoration: none; font-size: 13px; }
.login .back:hover { color: var(--text); }

/* ---- Shell ---- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100%; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.sidebar-head { padding: 16px 16px 12px; }
.site-switch { margin-top: 14px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.site-switch .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.site-switch .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { padding: 8px; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nav a .count { margin-left: auto; }
.nav .section { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 14px 10px 4px; }
.sidebar-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); position: relative; }
.usercard { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; }
.usercard:hover { background: var(--surface-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.usercard .who { min-width: 0; }
.usercard .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usercard .who span { font-size: 12px; color: var(--muted); }
.menu { position: absolute; bottom: calc(100% - 4px); left: 10px; right: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 20; }
.menu button, .menu a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; text-decoration: none; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }

.mainwrap { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.main { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; }
.page { max-width: 1120px; margin: 0 auto; padding: 28px 32px 48px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -.015em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mobilebar { display: none; }

/* ---- Karten ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 14px; margin: 0; }
.card-body { padding: 16px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, #08183a, #14275f 55%, #2f44c8); color: #fff; border: 0; }
.hero h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.hero p { margin: 0; color: #d1d5db; max-width: 560px; }
.hero .btn { background: #fff; color: #111827; border-color: #fff; height: 38px; padding: 0 16px; }
.hero .btn:hover { background: #f3f4f6; }

.notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn-ink); margin-bottom: 20px; font-weight: 500; }
.notice .btn { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px; }
.stat .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.stat .sub { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.activity li:last-child { border-bottom: 0; }
.activity .avatar { width: 28px; height: 28px; font-size: 11px; }
.activity .msg { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.activity .meta { font-size: 12px; color: var(--muted); }

/* ---- Dateien ---- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13px; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.toolbar .search { margin-left: auto; width: 240px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.file { overflow: hidden; display: flex; flex-direction: column; }
.file .thumb { aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--border); }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file .thumb .ext { display: grid; place-items: center; gap: 4px; color: var(--text-2); font-weight: 700; font-size: 12px; }
.file .thumb .ext svg { width: 30px; height: 30px; stroke-width: 1.5; }
.file .thumb .play { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(17, 24, 39, .7); color: #fff; display: grid; place-items: center; }
.file .body { padding: 10px 12px 12px; display: grid; gap: 6px; flex: 1; }
.file .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .meta { font-size: 12px; color: var(--muted); }
.file .badges { display: flex; gap: 4px; flex-wrap: wrap; }
.file .acts { display: flex; gap: 2px; margin-top: auto; padding-top: 4px; }
.dropzone { position: fixed; inset: 0; z-index: 50; background: rgba(5, 150, 105, .08); border: 3px dashed var(--success); display: grid; place-items: center; pointer-events: none; }
.dropzone div { background: var(--surface); padding: 16px 24px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; }

/* ---- Tabelle ---- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .person { display: flex; align-items: center; gap: 10px; }
.table .person small { display: block; color: var(--muted); }
.table select.input { height: 32px; width: auto; }
.table .row-acts { display: flex; gap: 4px; justify-content: flex-end; }

/* ---- Dialog & Toast ---- */
dialog { border: 0; border-radius: 14px; padding: 0; width: 440px; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(17, 24, 39, .45); }
.dlg-head { padding: 18px 20px 0; }
.dlg-head h3 { margin: 0; font-size: 16px; }
.dlg-body { padding: 14px 20px; color: var(--text-2); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }
.secret { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.secret code { flex: 1; padding: 9px 11px; background: var(--surface-2); border-radius: 8px; font-size: 15px; letter-spacing: .03em; color: var(--text); user-select: all; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 360px; animation: toast-in .18s ease-out; }
.toast.err { background: var(--danger); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---- AI Editor ---- */
.editor { display: grid; grid-template-columns: 1fr 400px; height: 100%; min-height: 0; }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-2); }
.stagebar { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.stagebar .title { font-weight: 600; }
.stagebar .actions { margin-left: auto; display: flex; gap: 6px; }
.stagebar .badge .short { display: none; }
.stage iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.chat { --ai: linear-gradient(135deg, #08183a 0%, #2f44c8 50%, #445cfd 100%); --ai-solid: #445cfd;
  display: flex; flex-direction: column; min-height: 0; background: #fcfcfd; border-left: 1px solid var(--border); }

/* Kopf */
.chat-head { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); }
.ai-id { display: flex; align-items: center; gap: 10px; }
.ai-id b { display: block; font-size: 14px; line-height: 1.2; }
.ai-avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--ai); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 2px 8px rgba(68, 92, 253, .35); }
.ai-avatar svg { width: 16px; height: 16px; }
.ai-avatar.sm { width: 26px; height: 26px; border-radius: 8px; }
.ai-avatar.sm svg { width: 14px; height: 14px; }
.ai-avatar.lg { width: 48px; height: 48px; border-radius: 14px; }
.ai-avatar.lg svg { width: 24px; height: 24px; }
.ai-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); max-width: 250px; }
.ai-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-status i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex: none; }
.ai-status.busy i { background: var(--ai-solid); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(68, 92, 253, .5); } 50% { box-shadow: 0 0 0 5px rgba(68, 92, 253, 0); } }

/* Verlauf */
.log { flex: 1; overflow-y: auto; padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.bubble-user { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; animation: rise .2s ease-out; }
.bubble { background: #111827; color: #fff; padding: 10px 14px; border-radius: 18px 18px 4px 18px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msgfiles { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.msgfiles img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.msgfiles .fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.msgfiles .fchip svg { width: 14px; height: 14px; }

.turn { display: flex; gap: 10px; align-items: flex-start; animation: rise .2s ease-out; }
.turn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 3px; }
.md { font-size: 14px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.md p { margin: 0 0 8px; }
.md p:last-child, .md ul:last-child, .md ol:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; }
.md li { margin: 2px 0; }
.md li::marker { color: var(--muted); }
.md strong { font-weight: 650; }
.md code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.turn-error { padding: 9px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger-ink); font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Arbeitsschritte */
.steps { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 13px; }
.steps summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; color: var(--text-2); font-weight: 500; user-select: none; }
.steps summary::-webkit-details-marker { display: none; }
.steps-title { display: flex; align-items: center; gap: 6px; }
.steps-title svg { width: 14px; height: 14px; color: var(--success); }
.steps-title small { color: var(--muted); font-weight: 400; }
.steps .chev { margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.steps[open] .chev { transform: rotate(225deg) translateY(-1px); }
.steps ol { list-style: none; margin: 0; padding: 2px 12px 10px; display: grid; gap: 5px; border-top: 1px solid var(--border); padding-top: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.steps li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li.active { color: var(--text); }
.st-ico { width: 14px; height: 14px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.steps li.done .st-ico { background: var(--success-soft); }
.steps li.done .st-ico::after { content: ""; width: 5px; height: 3px; border-left: 1.5px solid var(--success); border-bottom: 1.5px solid var(--success); transform: rotate(-45deg) translate(0.5px, -0.5px); }
.steps li.active .st-ico, .spinner { border: 2px solid #e0e7ff; border-top-color: var(--ai-solid); animation: spin .7s linear infinite; }
.spinner { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Visuelle Prüfung */
.check { border: 1px solid #d1fae5; background: linear-gradient(180deg, #f0fdf4, #fff); border-radius: 12px; padding: 10px 12px; }
.check-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--success-ink); flex-wrap: wrap; }
.check-head svg { width: 14px; height: 14px; }
.check-head small { color: var(--muted); font-weight: 400; }
.check-shots { display: flex; gap: 10px; margin-top: 10px; align-items: flex-end; }
.check-shots figure { margin: 0; }
.check-shots img { display: block; width: 132px; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
.check-shots figure.m img { width: 58px; border-radius: 10px; }
.check-shots figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: center; }

.thinking { display: flex; gap: 4px; padding: 6px 0; }
.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-solid); opacity: .25; animation: blink 1.2s infinite; }
.thinking span:nth-child(2) { animation-delay: .2s; }
.thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; transform: scale(.85); } 40% { opacity: .9; transform: none; } }

.sys { align-self: center; font-size: 12px; color: var(--muted); }
.sys span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.sys.ok span { background: var(--success-soft); color: var(--success-ink); font-weight: 500; }
.sys svg { width: 13px; height: 13px; }

/* Willkommen */
.welcome { margin: auto 0; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.welcome h3 { margin: 8px 0 0; font-size: 17px; letter-spacing: -.01em; }
.welcome p { margin: 0 0 8px; color: var(--muted); font-size: 13px; max-width: 320px; }
.suggestions { display: grid; gap: 8px; width: 100%; }
.suggestion { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  cursor: pointer; font-size: 13px; color: var(--text-2); transition: border-color .15s, box-shadow .15s, transform .15s; }
.suggestion:hover { border-color: #c7d2fe; box-shadow: 0 2px 10px rgba(68, 92, 253, .12); color: var(--text); transform: translateY(-1px); }
.suggestion svg { color: var(--ai-solid); width: 16px; height: 16px; }

/* Eingabe */
.composer-wrap { padding: 8px 14px 14px; }
.composer-wrap.drag .composer { border-color: var(--success); box-shadow: 0 0 0 4px rgba(5, 150, 105, .15); background: #f0fdf4; }
.composer { border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 2px 12px rgba(16, 24, 40, .06); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(68, 92, 253, .12), 0 2px 12px rgba(16, 24, 40, .06); }
.composer textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 12px 14px 4px; font-size: 14px; line-height: 1.5; max-height: 200px; min-height: 46px; }
.composer.busy textarea { color: var(--muted); }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px; }
.composer-hint { font-size: 11px; color: var(--muted); margin-right: auto; }
.icon-btn { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.send-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #111827; color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .1s, background .15s, opacity .15s; }
.send-btn:hover:not(:disabled) { transform: scale(1.06); }
.send-btn:disabled { background: #e5e7eb; color: #9ca3af; cursor: default; }
.send-btn.stop { background: var(--ai); }
.send-btn svg { width: 15px; height: 15px; }
.stop-square { width: 10px; height: 10px; border-radius: 2px; background: #fff; }
.attachments { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 0; }
.attachments:empty { display: none; }
.att { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att .fi { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 9px; font-weight: 700; color: var(--text-2); }
.att .fi svg { width: 20px; height: 20px; }
.att.uploading img, .att.uploading .fi { opacity: .35; }
.att.failed { border-color: #f87171; }
.att .pct { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 9px; font-weight: 700; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.att .rm { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(17, 24, 39, .75); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.att .rm svg { width: 10px; height: 10px; stroke-width: 3; }

@media (prefers-reduced-motion: reduce) {
  .bubble-user, .turn { animation: none; }
  .log { scroll-behavior: auto; }
}
@media (max-width: 860px) {
  .composer-hint { display: none; }
  .log { padding: 14px 12px 6px; gap: 14px; }
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .editor { grid-template-columns: 1fr 340px; }
}
@media (max-width: 860px) {
  .shell { display: block; }
  .mainwrap { height: 100%; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .mobilebar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .page { padding: 20px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .editor { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42fr) minmax(0, 58fr); }
  .chat { border-left: 0; border-top: 1px solid var(--border); }
  .stagebar .actions .btn span { display: none; }
  .stagebar { gap: 8px; padding: 0 10px; }
  .stagebar .title { display: none; }
  .stagebar .badge .long { display: none; }
  .stagebar .badge .short { display: inline; }
  .table .hide-sm { display: none; }
}

/* ---- Versionen ---- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -22px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.tl-item.is-live .tl-dot { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.tl-card { padding: 14px 16px; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-head b { font-size: 15px; }
.tl-meta { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.tl-meta .avatar { width: 22px; height: 22px; font-size: 10px; }
.tl-changes { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 3px; }
.tl-changes li { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tl-changes .more { list-style: none; margin-left: -18px; color: var(--muted); font-size: 13px; }
.tl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tl-date { font-size: 12px; color: var(--muted); }
.version-view { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--surface-2); }
.vv-bar { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.vv-meta { color: var(--muted); font-size: 13px; }
.vv-acts { margin-left: auto; display: flex; gap: 8px; }
.version-view iframe { flex: 1; border: 0; width: 100%; background: #fff; }
@media (max-width: 860px) {
  .tl-meta { margin-left: 0; width: 100%; }
  .vv-meta { display: none; }
  .vv-acts .btn span { display: none; }
}

/* ---- Firmenprofil ---- */
.notice.info { background: var(--info-soft); color: var(--info-ink); }
.profile-page { padding-bottom: 96px; }
.profile-hero { margin-bottom: 16px; }
.profile-sections { display: grid; gap: 16px; }
.psec .card-body { display: grid; gap: 14px; }
.pfields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.pfields .field { margin-bottom: 4px; }
.pfields .field.wide { grid-column: 1 / -1; }
.psec textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.ptable-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.ptable-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.ptable-h { font-size: 12px; color: var(--muted); font-weight: 600; }
.prow { display: contents; }
.ptable-grid .input { height: 34px; }
.ptable-empty { color: var(--muted); font-size: 13px; padding: 4px 0 8px; }
.color-cell { display: flex; gap: 6px; align-items: center; }
.color-cell input[type=color] { width: 34px; height: 34px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); flex: none; cursor: pointer; }
.hours { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.hours-row span { font-weight: 500; }
.hours-row .input:disabled { background: var(--surface-2); }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.langs { display: flex; gap: 16px; flex-wrap: wrap; padding: 6px 0; }
.profile-meta { color: var(--muted); font-size: 12px; margin-top: 14px; }
.savebar { position: fixed; left: calc(var(--sidebar) + 24px); right: 24px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px; background: var(--accent); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .2s ease; max-width: 900px; margin: 0 auto; }
.savebar.show { transform: none; }
.savebar span { margin-right: auto; font-weight: 500; }
.savebar .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.savebar .btn.primary { background: #fff; color: var(--accent); border-color: #fff; }
.busy-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(17, 24, 39, .35); display: grid; place-items: center; padding: 16px; }
.busy-card { padding: 28px; max-width: 360px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.busy-card span:not(.ai-avatar):not(.spinner) { color: var(--muted); font-size: 13px; }
.busy-card .spinner { width: 22px; height: 22px; border-width: 3px; border-radius: 50%; border-style: solid; border-color: #e0e7ff; border-top-color: #445cfd; animation: spin .7s linear infinite; }
.busy-card .ai-avatar { --ai: linear-gradient(135deg, #08183a 0%, #2f44c8 50%, #445cfd 100%); }
@media (max-width: 860px) {
  .savebar { left: 12px; right: 12px; bottom: 12px; }
  .hours-row { grid-template-columns: 84px minmax(0, 1fr); }
  .hours-row .check-inline { grid-column: 2; }
  /* Auf dem Handy: jeder Eintrag als kleine Karte, Entfernen-Knopf oben rechts */
  .ptable-grid { grid-template-columns: 1fr; gap: 8px; }
  .ptable-grid .ptable-h { display: none; }
  .prow { display: grid; grid-template-columns: 1fr 32px; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
  .prow > :not(button) { grid-column: 1; }
  .prow > button { grid-column: 2; grid-row: 1; }
}

/* Meldungen über der Speicherleiste, damit sie deren Knöpfe nicht verdecken */
body:has(.savebar.show) #toasts { bottom: 84px; }

/* ---- Prüfbericht im Chat ---- */
.review { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px 12px; font-size: 13px; display: grid; gap: 8px; }
.review-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.review-head svg { width: 15px; height: 15px; color: var(--success); }
.review:has(.review-sec.bad) .review-head svg { color: var(--danger); }
.review-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 4px; }
.review-chips span { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 11px; }
.facts { display: grid; gap: 5px; }
.fact-row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: baseline; }
.fact-k { color: var(--muted); font-size: 12px; }
.fact-v { display: flex; flex-wrap: wrap; gap: 4px; }
.fact { padding: 1px 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.fact s { color: var(--muted); }
.fact b { font-weight: 650; }
.fact.more { color: var(--muted); }
.review-sec { display: flex; align-items: flex-start; gap: 6px; }
.review-sec svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.review-sec.ok { color: var(--success-ink); }
.review-sec.bad { display: block; color: var(--danger-ink); }
.review-sec ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.review-sec li small { display: block; color: var(--muted); }
.review-sec li.warn { color: var(--warn-ink); }
.review-note { color: var(--muted); font-size: 12px; }
.review-files summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.review-files ul { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); font-size: 12px; }
.review-files small { color: var(--muted); }
@media (max-width: 860px) { .fact-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Freigabe-Ansicht ---- */
.pr-overlay { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; background: var(--bg); }
.pr-bar { height: 58px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.pr-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pr-title b { font-size: 16px; }
.pr-title span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pr-acts { margin-left: auto; display: flex; gap: 8px; }
.pr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px 1fr; }
.pr-side { overflow-y: auto; padding: 14px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--border); }
.pr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.pr-card h3 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pr-card h3 svg { width: 15px; height: 15px; }
.pr-card p { margin: 0; color: var(--text-2); }
.pr-card.warn { border-color: #fcd34d; background: #fffbeb; }
.pr-card.warn h3 { color: var(--warn-ink); }
.pr-card.ok h3 { color: var(--success-ink); }
.pr-card.bad { border-color: #fca5a5; background: #fef2f2; }
.pr-card.bad h3 { color: var(--danger-ink); }
.pr-muted { color: var(--muted) !important; font-size: 12px; margin-top: 6px !important; }
.pr-issues { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--danger-ink); }
.pr-issues li.warn { color: var(--warn-ink); }
.pr-issues small { display: block; color: var(--muted); }
.pr-pages { display: grid; gap: 6px; }
.pr-page { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; }
.pr-page span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pr-page.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(17, 24, 39, .08); }
.pr-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr-tasks li { display: flex; gap: 8px; }
.pr-tasks .avatar { width: 24px; height: 24px; font-size: 10px; }
.pr-tasks small { display: block; color: var(--muted); }
.pr-view { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.pr-viewbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.active { background: var(--accent); color: #fff; }
.pr-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.pr-viewbar > .btn[data-pick] { margin-left: auto; }
.pr-removed { flex: none; padding: 8px 12px; background: #fef2f2; border-bottom: 1px solid #fecaca; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--danger-ink); }
.pr-frames { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.pr-frames[data-mode="split"] { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.pr-frames[data-mode="after"] [data-side="before"], .pr-frames[data-mode="before"] [data-side="after"] { display: none; }
.pr-frame { margin: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.pr-frame figcaption { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 5px 10px; background: var(--surface-2); }
.pr-frame iframe { flex: 1; border: 0; width: 100%; }
.pr-pickhint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: #2f44c8; color: #fff; padding: 8px 8px 8px 14px; border-radius: 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); font-size: 13px; }
.pr-pickhint .btn { background: rgba(255, 255, 255, .15); color: #fff; border-color: transparent; }
@media (max-width: 860px) {
  .pr-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .pr-side { border-right: 0; border-bottom: 1px solid var(--border); max-height: 42vh; }
  .pr-view { min-height: 60vh; }
  .pr-title span, .pr-acts .btn span, .pr-viewbar .btn span { display: none; }
  .seg .hide-sm { display: none; }
}

/* ---- Geschützte Bereiche ---- */
.settings-form .card-body { display: grid; gap: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.opt input { margin-top: 3px; }
.opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.page-list { display: grid; gap: 6px; padding: 4px 0 0 26px; }
.page-list.disabled { opacity: .5; }
.settings-save { margin-top: 16px; display: flex; justify-content: flex-end; }

/* ---- Abo & Kontingent ---- */
.quota { padding: 14px 16px; margin-bottom: 20px; }
.quota-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quota-plan { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.quota-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; }
.quota-bar span { display: block; height: 100%; border-radius: 999px; background: var(--success); transition: width .3s; }
.quota p { margin: 0; color: var(--muted); font-size: 13px; }
.quota-warn .quota-bar span { background: #f59e0b; }
.quota-warn p { color: var(--warn-ink); }
.quota-blocked { border-color: #fca5a5; background: #fef2f2; }
.quota-blocked .quota-bar span { background: var(--danger); }
.quota-blocked p { color: var(--danger-ink); font-weight: 500; }
.chat-head-acts { display: flex; align-items: center; gap: 6px; }
.quota-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-variant-numeric: tabular-nums; cursor: default; }
.quota-pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.quota-pill.blocked { background: var(--danger-soft); color: var(--danger-ink); }
.quota-banner { margin: 0 14px; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.quota-banner.warn { background: var(--warn-soft); color: var(--warn-ink); }
.quota-banner.blocked { background: var(--danger-soft); color: var(--danger-ink); font-weight: 500; }
.limit-note { font-size: 13px; }

/* ---- Zwei-Faktor ---- */
.mfa-input { font-size: 20px; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; height: 46px; }
.mfa-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 14px; }
.mfa-qr { margin: 10px 0 6px; }
.mfa-qr img { border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff; }
.mfa-secret { display: inline-block; margin-top: 6px; padding: 6px 10px; background: var(--surface-2); border-radius: 6px; letter-spacing: .08em; user-select: all; }
.mfa-confirm { display: flex; gap: 8px; margin-top: 8px; max-width: 320px; }
.mfa-confirm .input { flex: 1; }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 360px; }
.backup-codes code { padding: 6px 10px; background: var(--surface-2); border-radius: 6px; text-align: center; letter-spacing: .06em; font-size: 14px; }
.mfa-gate { margin-bottom: 16px; }

/* ---- Vertrauen & Daten ---- */
.trust-page { max-width: 1000px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.trust-sec h2 { font-size: 15px; }
.trust-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.trust-sec dl { margin: 0; display: grid; gap: 4px; }
.trust-sec dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.trust-sec dt:first-child { margin-top: 0; }
.trust-sec dd { margin: 0; color: var(--text-2); }
mark.open { background: var(--warn-soft); color: var(--warn-ink); padding: 0 5px; border-radius: 4px; font-weight: 500; }
.trust-foot { color: var(--muted); font-size: 13px; margin-top: 18px; }
.export-card .card-body { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* SEO-Karte auf der Übersicht */
.seo-card { margin-bottom: 20px; }
.seo-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.seo-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--success-ink); }
.seo-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.seo-status.warn { color: var(--warn-ink); }
.seo-status.warn i { background: #f59e0b; }
.seo-status.bad { color: var(--danger-ink); }
.seo-status.bad i { background: var(--danger); }
.seo-basics { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.seo-basics li { display: flex; align-items: flex-start; gap: 8px; }
.seo-basics li svg { margin-top: 2px; }
.seo-basics li.ok svg { color: var(--success); }
.seo-basics li.off { color: var(--text-2); }
.seo-basics li.off svg { color: var(--muted); }
.seo-basics small { color: var(--muted); }
.seo-card .pr-issues { margin-bottom: 12px; }
.seo-card .muted { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-actions:empty { display: none; }

.psec-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.speed { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 14px; margin-bottom: 12px; }
.speed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.speed-head b { display: flex; align-items: center; gap: 8px; }
.speed-head .btn { margin-left: auto; }
.speed .spinner { border-top-color: var(--brand); margin-right: 6px; vertical-align: -2px; }
.speed-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.speed-kpis > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.speed-kpis span { font-size: 12px; color: var(--muted); }
.speed-kpis b { font-size: 18px; }
.speed-kpis small { font-size: 12px; color: var(--muted); }
.speed .muted { margin: 0; }

/* Assistent «Website anlegen» (Plattform) */
dialog.wide { width: 720px; }
.wizard { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.wz-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.wz-head h2 { margin: 0; font-size: 17px; }
.wz-body { padding: 4px 20px 16px; overflow-y: auto; }
.wz-body section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.wz-body section:last-of-type { border-bottom: 0; }
.wz-body h3 { margin: 0 0 10px; font-size: 14px; }
.wz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.wz-grid .field { margin: 0; }
.wz-grid .field.wide { grid-column: 1 / -1; }
.wz-grid .field.short { max-width: 110px; }
.wz-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.wz-choice.small { margin: 12px 0 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(68, 92, 253, .12); }
.choice input { margin-top: 3px; accent-color: var(--brand); }
.choice small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.keyrow { display: flex; gap: 8px; align-items: flex-start; }
.keyrow .input { flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; word-break: break-all; }
.wz-test { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; align-items: flex-start; }
.test-ok, .test-bad { border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.test-ok { background: var(--success-soft); color: var(--success-ink); }
.test-bad { background: var(--danger-soft); color: var(--danger-ink); }
.wz-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.wizard .error-text b { display: block; }
.wizard .spinner { border-top-color: var(--brand); vertical-align: -2px; margin-right: 4px; }
@media (max-width: 640px) { .wz-grid, .wz-choice { grid-template-columns: 1fr; } .wz-grid .field.short { max-width: none; } }

/* Abo-Seite und Sperr-Hinweis */
/* Demo «Live ausprobieren» */
.demobar { display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: var(--info-soft); color: var(--text); font-size: 13px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.demobar span { flex: 1; min-width: 220px; }
.is-demo [data-act="publish"], .is-demo [data-publish], .is-demo [data-extract], .is-demo .card.quota, .is-demo [data-quota], .is-demo [data-quota-banner] { display: none !important; }
/* Eigene Domain */
.domain-form { display: flex; gap: 8px; flex-wrap: wrap; }
.domain-form .input { flex: 1; min-width: 220px; }
.dns-guide p { margin: 0 0 10px; }
.dns-table code { font-size: 13px; word-break: break-all; }
.dns-notes { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.lockbar { display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: var(--danger-soft); color: var(--danger-ink); font-size: 13px; border-bottom: 1px solid #fecaca; }
.lockbar span { flex: 1; }
.lockbar.inline { border: 1px solid #fecaca; border-radius: 10px; margin-bottom: 16px; padding: 10px 14px; }
.billing-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.billing-now .label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.billing-now .value { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.billing-now .value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.billing-now .muted, .page .muted { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.plan .card-body { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(68, 92, 253, .12); }
.plan .price { font-size: 22px; font-weight: 700; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; color: var(--text-2); font-size: 13px; flex: 1; }
@media (max-width: 760px) { .billing-now, .plan-grid { grid-template-columns: 1fr; } .lockbar { padding: 10px 16px; } }

/* Selbst-Anmeldung (/registrieren) */
.onb { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 40px; background: var(--bg); }
.onb-top { width: 100%; max-width: 760px; margin-bottom: 18px; }
.onb-top a { text-decoration: none; display: inline-block; }
.onb-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; justify-content: center; }
.onb-steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.onb-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 12px; }
.onb-steps li.active { color: var(--text); font-weight: 600; }
.onb-steps li.active span { background: var(--brand); color: #fff; }
.onb-steps li.done span { background: var(--success); color: #fff; }
.onb-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg); }
.onb-card.wide { max-width: 760px; }
.onb-card h1 { margin: 0 0 6px; font-size: 22px; }
.onb-card .sub { margin: 0 0 18px; color: var(--text-2); }
.onb-card .field { margin-bottom: 14px; }
.onb-card form > .btn.primary { width: 100%; margin-top: 6px; }
.onb-icon { font-size: 36px; margin-bottom: 6px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 4px 0 12px; }
.consent input { margin-top: 3px; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.onb-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.onb-foot a { color: var(--muted); }
.plan.pick { text-align: left; cursor: pointer; background: var(--surface); font: inherit; color: inherit; padding: 0; }
.plan.pick:hover { border-color: var(--brand); }
.notice.small { font-size: 13px; margin: 0 0 14px; }
.onb .spinner { border-top-color: var(--brand); vertical-align: -2px; }
