@font-face {
  font-family: "Inter";
  src: url("/static/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #09090b; --rail: #0c0c0f; --surface: #111114; --surface-2: #17171b; --surface-3: #202026;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .2);
  --ink: #f4f4f5; --ink-2: #d4d4d9; --muted: #9b9ba4; --faint: #66666e;
  --accent: #c8ff4d; --on-accent: #0c1003; --accent-soft: rgba(200, 255, 77, .09); --accent-line: rgba(200, 255, 77, .3);
  --warn: #ffb224; --bad: #ff6369; --info: #8b9bff; --cyan: #45d9f5;
  --radius: 14px; --radius-sm: 10px;
  --side-w: 236px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 14px 34px -22px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 14px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "calt"; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* sanfter Lichtschein oben im Inhalt */
body::before {
  content: ""; position: fixed; z-index: -1; top: 0; right: 0; left: var(--side-w); height: 460px; pointer-events: none;
  background: radial-gradient(900px 320px at 65% -140px, rgba(200, 255, 77, .075), transparent 70%);
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
code { font: 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
h1 { font-size: 26px; font-weight: 680; letter-spacing: -.032em; line-height: 1.15; margin: 0; }
h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 620; letter-spacing: -.012em; line-height: 1.3; margin: 0 0 12px; }
h2 > .ic { color: var(--muted); }
h3 { font-size: 14px; font-weight: 620; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
kbd { font: 600 11px/1 ui-monospace, monospace; padding: 3px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .55; margin-left: 4px; }

/* ---------- Gerüst: Seitenleiste und Inhalt ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column;
  padding: 18px 12px 14px; background: var(--rail); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 24px; font-weight: 680; font-size: 16px; letter-spacing: -.025em; text-decoration: none; }
.brand i { flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 22px rgba(200, 255, 77, .55); transform: rotate(45deg) scale(.8); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .setlink {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  color: var(--muted); font-weight: 530; text-decoration: none; transition: color .15s, background .15s;
}
.nav a .ic, .setlink .ic { width: 18px; height: 18px; }
.nav a:hover, .setlink:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a.on, .setlink.on { color: var(--ink); background: rgba(255, 255, 255, .075); }
.nav a.on .ic, .setlink.on .ic { color: var(--accent); }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-decoration: none; transition: border-color .15s; }
.mode:hover { border-color: var(--line-2); }
.mode small { color: var(--faint); font-size: 12px; line-height: 1.35; }
.job { display: grid; gap: 8px; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255, 178, 36, .25); background: rgba(255, 178, 36, .06); color: var(--warn); font-size: 12.5px; font-weight: 520; }
.job-bar { height: 4px; border-radius: 4px; background: rgba(255, 178, 36, .16); overflow: hidden; }
.job-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--warn); transition: width .5s var(--ease); }
.job.unknown .job-bar i { width: 35% !important; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

.content { min-width: 0; width: 100%; max-width: 1480px; margin: 0 auto; padding: 30px 32px 96px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 32px 20px; }

/* ---------- Kopf jeder Seite ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.head .sub { margin-top: 6px; color: var(--muted); max-width: 780px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 13px; }
.back:hover { color: var(--ink); }
.eyebrow { font-size: 11.5px; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.section-title { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0; }
.section-title > .ic { color: var(--faint); }
.section-title .muted { font-weight: 450; color: var(--faint); }

/* ---------- Meldungen ---------- */
.toast {
  position: fixed; top: 18px; right: 18px; z-index: 60; display: flex; align-items: flex-start; gap: 10px;
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 10px 12px 14px; border-radius: 12px;
  background: rgba(23, 23, 27, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--accent-line); box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .95);
  animation: rise .35s var(--ease); transition: opacity .3s, transform .3s var(--ease);
}
.toast > .ic { margin-top: 2px; color: var(--accent); }
.toast > span { flex: 1; }
.toast.error { border-color: rgba(255, 99, 105, .45); }
.toast.error > .ic { color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast-x { min-height: 0 !important; padding: 2px !important; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--muted) !important; }
.toast-x:hover { color: var(--ink) !important; }
@keyframes rise { from { opacity: 0; transform: translateY(-10px); } }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 18px; border-radius: 12px; color: var(--ink); background: rgba(200, 255, 77, .06); border: 1px solid rgba(200, 255, 77, .22); text-decoration: none; }
.flash > .ic { margin-top: 2px; color: var(--accent); }
.flash.error { background: rgba(255, 99, 105, .07); border-color: rgba(255, 99, 105, .3); }
.flash.error > .ic { color: var(--bad); }
.flash.warn { background: rgba(255, 178, 36, .07); border-color: rgba(255, 178, 36, .28); }
.flash.warn > .ic { color: var(--warn); }
a.flash:hover { border-color: var(--warn); }

/* ---------- Pills, Zähler, Status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 520; letter-spacing: 0; color: var(--ink-2); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); text-decoration: none;
}
.pill .ic { width: 13px; height: 13px; }
.pill.ok { color: var(--accent); background: rgba(200, 255, 77, .08); border-color: rgba(200, 255, 77, .24); }
.pill.warn { color: var(--warn); background: rgba(255, 178, 36, .08); border-color: rgba(255, 178, 36, .26); }
.pill.bad { color: var(--bad); background: rgba(255, 99, 105, .08); border-color: rgba(255, 99, 105, .28); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 720; font-variant-numeric: tabular-nums; }
.count { font-variant-numeric: tabular-nums; color: var(--faint); font-size: 12.5px; font-weight: 520; letter-spacing: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Farbe je Pipeline-Status */
[data-stage] { --stage: var(--muted); }
[data-stage="review"] { --stage: var(--warn); }
[data-stage="approved"] { --stage: var(--info); }
[data-stage="pitched"] { --stage: var(--cyan); }
[data-stage="won"] { --stage: var(--accent); }
[data-stage="lost"] { --stage: var(--bad); }
[data-stage="skipped"] { --stage: var(--faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage); box-shadow: 0 0 10px var(--stage); flex: none; }
.pill.stage { color: var(--stage); border-color: color-mix(in srgb, var(--stage) 35%, transparent); background: color-mix(in srgb, var(--stage) 10%, transparent); }
.pill.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Qualitätsstufe A–X */
.tier { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 3px; border-radius: 999px; white-space: nowrap; flex: none;
  font-size: 12px; font-weight: 640; font-variant-numeric: tabular-nums; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.tier b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10.5px; font-weight: 800; background: var(--line-strong); color: var(--ink); }
.tier.t-A { color: var(--accent); border-color: rgba(200, 255, 77, .3); }
.tier.t-A b { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 10px rgba(200, 255, 77, .45); }
.tier.t-B { color: var(--cyan); border-color: rgba(69, 217, 245, .28); }
.tier.t-B b { background: var(--cyan); color: #04141a; }
.tier.t-C { color: var(--warn); border-color: rgba(255, 178, 36, .26); }
.tier.t-C b { background: var(--warn); color: #1a1100; }
.tier.t-X { color: var(--bad); border-color: rgba(255, 99, 105, .26); }
.tier.t-X b { background: var(--bad); color: #1a0405; }

/* Kontaktwege als Symbole */
.chs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ch { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none; color: var(--ink-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.ch .ic { width: 13px; height: 13px; }

/* Betriebs-Avatar: Foto oder Anfangsbuchstabe */
.av {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  font-size: 14px; font-weight: 700; color: var(--ink-2); background: linear-gradient(145deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line);
}
[data-stage] .av { color: var(--stage); background: color-mix(in srgb, var(--stage) 12%, var(--surface-2)); border-color: color-mix(in srgb, var(--stage) 24%, transparent); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }

/* ---------- Buttons ---------- */
button, .button {
  font: inherit; font-size: 13.5px; font-weight: 560; line-height: 1.25; min-height: 36px; padding: 7px 14px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer; text-decoration: none;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .12s;
}
button:hover, .button:hover { background: var(--surface-3); border-color: var(--line-strong); }
button:active, .button:active { transform: scale(.98); }
button.primary, .button.primary {
  color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 650;
  box-shadow: 0 0 0 1px rgba(200, 255, 77, .12), 0 8px 22px -10px rgba(200, 255, 77, .6);
}
button.primary:hover, .button.primary:hover { background: #d7ff78; border-color: #d7ff78; box-shadow: 0 0 0 1px rgba(200, 255, 77, .25), 0 10px 28px -8px rgba(200, 255, 77, .7); }
button.danger, .button.danger { color: var(--bad); }
button.danger:hover, .button.danger:hover { background: rgba(255, 99, 105, .1); border-color: rgba(255, 99, 105, .35); }
button.ghost, .button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
button.ghost:hover, .button.ghost:hover { color: var(--ink); background: rgba(255, 255, 255, .05); border-color: transparent; }
button.mini, .button.mini { min-height: 28px; padding: 4px 10px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.mini .ic { width: 14px; height: 14px; }
button.big { min-height: 46px; font-size: 15px; }
.wide { width: 100%; }
.icon-only { padding-left: 9px; padding-right: 9px; }
button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
button.loading::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
body.waiting { cursor: progress; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form, .stack form, .pair form { margin: 0; }
.stack { display: grid; gap: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair button { width: 100%; }

/* ---------- Flächen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel > :last-child, .panel form > :last-child { margin-bottom: 0; }
.panel h1 + p { margin-top: 12px; }
.legal-notice h2 { margin: 24px 0 6px; }
.legal-notice p { color: var(--ink-2); }
.panel.highlight { border-color: var(--accent-line); box-shadow: 0 0 40px -18px rgba(200, 255, 77, .45); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar h2 { margin: 0; }
details.panel > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
details.panel > summary::-webkit-details-marker { display: none; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 12.5px; font-weight: 560; color: var(--ink-2); margin: 16px 0 7px; }
label .muted { font-weight: 420; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], textarea, select {
  width: 100%; min-height: 38px; font: inherit; font-size: 14px; color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 255, 77, .14); }
textarea { resize: vertical; line-height: 1.6; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px;
}
select option { background: var(--surface-2); }
input[type=date] { color-scheme: dark; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; vertical-align: middle; flex: none; }
input[type=file] { font: inherit; color: var(--muted); flex: 1; min-width: 200px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 560; color: var(--ink); background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inline { width: auto !important; }
form p.actions { margin-top: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--line); }
legend { float: left; width: 100%; padding: 16px 0 6px; font-size: 11.5px; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
legend + * { clear: both; }
label.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: 13.5px; font-weight: 450; color: var(--ink); cursor: pointer; }
label.check input { margin-top: 2px; }
.options { margin-top: 18px; display: grid; gap: 2px; }
.hint { color: var(--faint); font-size: 12.5px; margin: 6px 0 0 !important; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint .pill { white-space: normal; border-radius: 9px; }
.search-field { position: relative; display: block; margin: 0; }
.search-field > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-field input { padding-left: 36px; }

/* ---------- Reiter ---------- */
.tabs { display: flex; gap: 2px; margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 10px 12px 12px;
  border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-size: 13.5px; font-weight: 560; text-decoration: none; white-space: nowrap;
}
.tab:hover { background: none; color: var(--ink); }
.tab:active { transform: none; }
.tab .ic { color: var(--faint); }
.tab[aria-selected="true"], .tab[aria-current] { color: var(--ink); }
.tab[aria-selected="true"] .ic, .tab[aria-current] .ic { color: var(--accent); }
.tab[aria-selected="true"]::after, .tab[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); box-shadow: 0 0 10px rgba(200, 255, 77, .55); }
.tab .count { padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 11.5px; line-height: 18px; }
.tab .dot { width: 7px; height: 7px; box-shadow: none; }
.tab-note { padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); font-size: 11px; font-weight: 500; line-height: 17px; }

/* ---------- Pipeline: Kennzahlen, Aufgaben, Spalten ---------- */
.kpis {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin-bottom: 26px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.kpi { min-width: 0; padding: 14px 18px 16px; background: var(--surface); text-decoration: none; }
a.kpi:hover { background: var(--surface-2); }
.kpi-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-label .ic { width: 14px; height: 14px; color: var(--faint); }
.kpi-value { margin-top: 6px; font-size: 26px; font-weight: 660; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-note { margin-top: 2px; color: var(--faint); font-size: 12px; }

.todo .section-title { margin-bottom: 12px; }
.tasks { list-style: none; margin: 0; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.task + .task { border-top: 1px solid var(--line); }
.task-ico {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent);
}
.task-ico .ic { width: 18px; height: 18px; }
.task-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.task-text strong { font-size: 14px; font-weight: 600; }
.task-text span { color: var(--muted); font-size: 12.5px; }
.task-go { flex: none; }
.task-go form { margin: 0; }

.board-bar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin: 32px 0 12px; }
.board-bar .search-field { width: 280px; margin-left: auto; }
.archive-links { display: flex; gap: 14px; font-size: 13px; }
.archive-links a { color: var(--muted); text-decoration: none; }
.archive-links a:hover { color: var(--ink); }
.board {
  display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; align-items: start; padding-bottom: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.col { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 180px; max-height: calc(100vh - 48px); overflow: hidden; background: rgba(255, 255, 255, .018); border: 1px solid var(--line); border-radius: 16px; }
.col-head { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px 14px 11px; font-size: 13.5px; font-weight: 620; }
.col-head .count { margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; text-align: center; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; }
.col-action {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 8px 8px; padding: 8px 10px; border-radius: 10px;
  font-size: 13px; font-weight: 560; text-decoration: none; color: var(--stage);
  background: color-mix(in srgb, var(--stage) 9%, transparent); border: 1px solid color-mix(in srgb, var(--stage) 28%, transparent); transition: background .15s;
}
.col-action:hover { background: color-mix(in srgb, var(--stage) 16%, transparent); }
.col-body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 0 8px 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.lead {
  flex: none; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  padding: 10px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, background .15s, transform .15s var(--ease), box-shadow .15s;
}
.lead:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .95); }
.lead .av { grid-row: 1 / span 2; }
.lead strong { grid-column: 2; font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lead .tier { grid-column: 3; grid-row: 1; height: 20px; }
.lead .meta { grid-column: 2 / 4; color: var(--muted); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; }
.lead .foot:empty { display: none; }
.empty { padding: 26px 8px; color: var(--faint); font-size: 12.5px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }
.more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px 4px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.more:hover { color: var(--ink); }
.nomatch { margin: 12px 0 0; }

/* ---------- Listen und Tabellen ---------- */
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
td, th { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tablewrap.flat { margin-top: 14px; background: rgba(0, 0, 0, .18); border-radius: 12px; box-shadow: none; }
table.list { min-width: 860px; }
table.list.compact { min-width: 600px; }
table.list th { padding: 10px 14px; font-size: 12px; font-weight: 560; color: var(--muted); white-space: nowrap; background: rgba(255, 255, 255, .02); }
table.list td { padding: 10px 14px; vertical-align: middle; }
table.list tbody tr { transition: background .12s; }
table.list tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.list tbody tr.picked { background: rgba(200, 255, 77, .045); }
table.list a { text-decoration: none; }
table.list a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.pick { width: 46px; padding-right: 0 !important; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.who strong { font-weight: 600; }
.who small, .cell-sub { display: block; color: var(--muted); font-size: 12px; }
.show-m { display: none !important; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters .search-field { flex: 1; min-width: 220px; max-width: 380px; }
.bulkbar {
  position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 10px 10px 10px 16px;
  border-radius: 14px; background: rgba(23, 23, 27, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .95); animation: rise .25s var(--ease);
}
.bulkbar .picked { margin-right: auto; font-size: 13px; color: var(--muted); }
.bulkbar .picked b { color: var(--ink); font-weight: 650; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12vh 20px; }
.empty-state h1 { margin-bottom: 10px; }
.empty-state h2 { justify-content: center; margin-bottom: 6px; }
.empty-state p { margin: 0; max-width: 460px; }
.empty-state .actions { justify-content: center; margin-top: 22px; }
.empty-state form { margin-top: 20px; }
.small-state { padding: 52px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .012); }
.empty-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.empty-ico .ic { width: 26px; height: 26px; }

/* ---------- Lead-Seite ---------- */
.lead-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.lead-id { flex: 1; min-width: 260px; }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.lead-meta a { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.lead-meta a:hover { color: var(--ink); }
.lead-meta a .ic { width: 13px; height: 13px; }
.lead-id .tags { margin-top: 10px; }
.progress { list-style: none; display: flex; margin: 0 0 22px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress li { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; font-weight: 520; white-space: nowrap; }
.progress li::after { content: ""; flex: 1; min-width: 12px; height: 1px; margin: 0 10px 0 2px; background: var(--line-2); }
.progress li:last-child { flex: none; }
.progress li:last-child::after { display: none; }
.progress span { overflow: hidden; text-overflow: ellipsis; }
.progress i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 650; color: var(--muted); border: 1px solid var(--line-strong); }
.progress i .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.progress .done { color: var(--muted); }
.progress .done i { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.progress .done::after { background: var(--accent-line); }
.progress .now { color: var(--ink); font-weight: 620; }
.progress .now i { color: var(--on-accent); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 255, 77, .13), 0 0 16px rgba(200, 255, 77, .45); }

.lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.lead-main { min-width: 0; }
.lead-side .panel { padding: 18px; }
.next { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(200, 255, 77, .075), rgba(200, 255, 77, 0) 70%), var(--surface); }
.next .eyebrow { color: var(--accent); opacity: .85; }
.next h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.next p { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.quality-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quality-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.score { font-size: 32px; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1; }
.score small { margin-left: 2px; font-size: 14px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.meter { height: 6px; margin: 14px 0 4px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--muted); }
.meter.t-A i { background: var(--accent); box-shadow: 0 0 12px rgba(200, 255, 77, .6); }
.meter.t-B i { background: var(--cyan); }
.meter.t-C i { background: var(--warn); }
.meter.t-X i { background: var(--bad); }
.why { list-style: none; display: grid; gap: 7px; margin: 14px 0 0; padding: 0; font-size: 13px; }
.why li { display: flex; gap: 9px; align-items: baseline; }
.why li::before { content: "+"; flex: none; width: 12px; color: var(--accent); font-weight: 700; }
.why li.neg { color: var(--muted); }
.why li.neg::before { content: "–"; color: var(--warn); }
.why li.block { color: var(--bad); }
.why li.block::before { content: "×"; color: var(--bad); }
.contact-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; }
.contact-list li > div { min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.contact-list small { color: var(--muted); font-size: 12px; }
.contact-list a, .contact-list span { overflow-wrap: anywhere; }
.contact-list .ch { width: 30px; height: 30px; border-radius: 9px; }
.contact-list .ch .ic { width: 15px; height: 15px; }
.contact-list .none .ch, .contact-list .warn-row .ch { color: var(--bad); border-color: rgba(255, 99, 105, .3); }
.response + .response { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.response p { margin: 6px 0 0; color: var(--muted); white-space: pre-wrap; }

.site-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.site-tools form { margin: 0; }
.site-tools select, .site-tools button { min-height: 34px; font-size: 13px; }
.site-tools select { padding-top: 6px; padding-bottom: 6px; max-width: 230px; }
.site-tools select[name=accent] { max-width: 180px; }
.site-style { display: flex; gap: 8px; flex-wrap: wrap; }
.site-note { margin: 10px 2px 0; }
.browser { overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser-bar > i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); }
.browser-bar > span { flex: 1; min-width: 0; margin-left: 8px; padding: 4px 12px; border-radius: 8px; background: var(--bg); color: var(--muted); font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.device .mini { min-height: 26px; padding: 3px 8px; border: 0; background: transparent; box-shadow: none; color: var(--muted); }
.device .mini.on { background: var(--surface-3); color: var(--ink); }
.open-ext { flex: none; }
.frame-wrap { position: relative; display: flex; justify-content: center; background: var(--surface-2); }
iframe.preview { display: block; width: 100%; height: calc(100vh - 290px); min-height: 540px; border: 0; background: #fff; transition: width .3s var(--ease); }
.frame-busy { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb .cover { position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.thumb .cover.ok { background: rgba(20, 28, 4, .75); }
.thumb figcaption { display: flex; gap: 6px; justify-content: space-between; padding: 8px; }
.thumb figcaption form { margin: 0; }
.thumb figcaption form:only-child { margin-left: auto; }
.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.upload > .ic { width: 18px; height: 18px; color: var(--muted); }
.chips-row { margin-top: 12px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 2; margin: 20px -20px -20px !important; padding: 14px 20px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(rgba(17, 17, 20, 0), var(--surface) 35%); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 99, 105, .22); background: rgba(255, 99, 105, .03); }
.danger-zone > div { display: flex; flex-direction: column; }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { position: relative; padding: 0 0 16px 22px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.timeline time { display: block; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.timeline strong { color: var(--ink); font-weight: 600; text-transform: capitalize; }

/* ---------- Prüfmodus ---------- */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.review iframe.preview { height: calc(100vh - 112px); min-height: 520px; }
.review-side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: thin; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.counter { color: var(--muted); font-size: 13px; }
.counter span { color: var(--accent); font-weight: 700; }
.pager { display: flex; gap: 6px; }
.pager .mini { padding: 4px 7px; }
.track { height: 3px; margin: 12px 0 16px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.track i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.review-side h1 { margin: 0 0 4px; font-size: 21px; }
.review-side .tags { margin-top: 12px; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.decide form { margin: 0; }
.decide button { width: 100%; }
.side-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.restyle .row { gap: 8px; }
.variant { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ed-entry { margin-bottom: 10px; }
.keys { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0 !important; line-height: 2; }
.keys > .ic { margin-top: 6px; }

/* ---------- Suche ---------- */
.result { border-color: var(--accent-line); }
.result-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.result-stats span { padding: 3px 11px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.result-stats b { color: var(--ink); font-weight: 650; }
.result-stats .hl { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.result-stats .hl b { color: var(--accent); }
.result-stats .bad { color: var(--bad); border-color: rgba(255, 99, 105, .25); }
.result-stats .bad b { color: var(--bad); }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.note .ic { margin-top: 2px; }
.search-main, .search-narrow { max-width: 820px; }
.packages { margin-top: 32px; }
.section-head { margin-bottom: 14px; }
.section-head p { margin: 6px 0 0; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.package { display: flex; flex-direction: column; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.package:first-child { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(200, 255, 77, .06), rgba(200, 255, 77, 0) 55%), var(--surface); }
.package-head { display: flex; align-items: center; gap: 10px; }
.package-head h3 { font-size: 15px; }
.rank { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; font-weight: 720; color: var(--muted); background: var(--surface-3); }
.package:first-child .rank { color: var(--on-accent); background: var(--accent); }
.package > p { flex: 1; margin: 10px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { min-height: 0; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; box-shadow: none; color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.package-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Versand ---------- */
.group-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.group-head > div:not(.actions) { flex: 1; min-width: 240px; }
.group-head h2 { margin: 0 0 2px; }
.group-head p { margin: 0; }
.group-head .actions { margin-left: auto; }

/* ---------- Einstellungen ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: 28px; align-items: start; }
.subnav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.subnav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 530; white-space: nowrap; transition: color .15s, background .15s; }
.subnav a span { flex: 1; }
.subnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.subnav a.on { color: var(--ink); background: rgba(255, 255, 255, .07); }
.subnav a.on .ic { color: var(--accent); }
.state { flex: none; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.state.ok { background: var(--accent); box-shadow: 0 0 10px rgba(200, 255, 77, .7); }
.state.warn { background: var(--warn); box-shadow: 0 0 10px rgba(255, 178, 36, .6); }
.sections .panel { padding: 24px; }
.sections .panel:target { border-color: var(--line-strong); }
.sections h2 { font-size: 17px; margin-bottom: 8px; }
label.switch { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: inherit; font-weight: 400; color: var(--ink); cursor: pointer; transition: border-color .15s; }
label.switch:hover { border-color: var(--line-2); }
label.switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 38px; height: 22px; margin-top: 1px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); cursor: pointer; transition: background .2s, border-color .2s; }
label.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
label.switch input:checked { background: var(--accent); border-color: var(--accent); }
label.switch input[name=live]:checked { background: var(--bad); border-color: var(--bad); }
label.switch input:checked::after { transform: translateX(16px); background: #fff; }
.inlineform { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.inlineform input[type=text] { flex: 1; min-width: 200px; width: auto; }
details.sub { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
details.sub summary { cursor: pointer; color: var(--muted); font-weight: 530; }
details.sub summary:hover { color: var(--ink); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0 0; font-size: 13px; }
dl.kv dd { margin: 0; color: var(--muted); }
dl.status { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; align-items: baseline; }
dl.status dt { color: var(--muted); }
dl.status dd { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.mail { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.mail pre { margin: 12px 0 0; font: inherit; white-space: pre-wrap; color: var(--muted); overflow-wrap: anywhere; }
table.plain { margin-top: 14px; }
table.plain td { vertical-align: middle; overflow-wrap: anywhere; }
table.plain form { margin: 0; }

/* ---------- Konten: Anmeldung, Konto, Einrichtung, Admin ---------- */
.auth-body::before { left: 0; }
.auth { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 9vh 16px 40px; }
.auth-brand { padding: 0 0 22px; font-size: 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 28px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card > p.muted { margin-bottom: 4px; }
.auth-card .flash { margin-bottom: 16px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.acc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.acc:hover, .acc.on { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.acc .av { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.acc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.acc-text strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-text small { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.plan-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.plan-head strong { font-size: 22px; letter-spacing: -.02em; }
.plan-head span { color: var(--muted); font-size: 13px; }
.usage-title { margin: 18px 0 10px; font-size: 13px; color: var(--muted); }
.usage { list-style: none; display: grid; gap: 14px; margin: 0 0 14px; padding: 0; }
.usage-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.usage .meter { margin: 6px 0 4px; }
.usage .meter i { background: var(--accent); }
.usage .meter.warn i { background: var(--warn); }
.usage small { color: var(--faint); font-size: 12px; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.plan-card.on { border-color: var(--accent-line); }
.plan-card strong { font-size: 15px; }
.plan-price { font-size: 22px; font-weight: 680; letter-spacing: -.02em; }
.plan-price small { font-size: 12px; font-weight: 450; color: var(--muted); letter-spacing: 0; }
.plan-card ul { margin: 2px 0 8px; padding-left: 16px; color: var(--ink-2); font-size: 12.5px; }
.onboard { max-width: 820px; }
.onboard-step { display: flex; gap: 18px; }
.onboard-step > div:last-child { flex: 1; min-width: 0; }
.step-no { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(200, 255, 77, .13); }

/* ---------- Zahlungen ---------- */
input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.pay-facts { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; }
.pay-facts div { display: flex; justify-content: space-between; gap: 10px; }
.pay-facts dt { color: var(--muted); }
.pay-facts dd { margin: 0; text-align: right; }
.pay-link { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.pay-link code { flex: 1; min-width: 0; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-qr { display: flex; justify-content: center; margin-bottom: 12px; }
.pay-qr svg { width: 168px; height: 168px; border-radius: 10px; }

.stripe-conn { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.stripe-conn.off { border-color: var(--line-2); background: var(--surface-2); }
.stripe-conn > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stripe-conn small { color: var(--muted); font-size: 12.5px; }
.stripe-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }

/* ---------- Website-Editor ---------- */
.ed-body { overflow: hidden; }
.ed-body::before { display: none; }
.ed { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.ed-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--rail); border-bottom: 1px solid var(--line); }
.ed-back { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line-2); text-decoration: none; }
.ed-back:hover { color: var(--ink); border-color: var(--line-strong); }
.ed-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.3; }
.ed-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-status { font-size: 12px; color: var(--faint); }
.ed-status.warn { color: var(--warn); }
.ed-actions { display: flex; align-items: center; gap: 8px; }
.ed-panel { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-right: 1px solid var(--line); }
.ed-tabs { flex: none; margin: 0; padding: 0 10px; }
.ed-tabs .tab { padding: 12px 9px 13px; font-size: 13px; }
.ed-pane { flex: 1; overflow-y: auto; padding: 16px 16px 80px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.ed-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; padding: 16px 16px 10px; background: #18181c; }
.ed-frames { position: relative; flex: 1; width: 100%; max-width: 100%; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px rgba(255, 255, 255, .06); transition: width .3s var(--ease); }
.ed-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.ed-frame.back { visibility: hidden; }
.ed-loading { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink); background: rgba(12, 12, 15, .86); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ed-loading.on { opacity: 1; transition-delay: .3s; }
.ed-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }
.ed-group { margin: 0 -8px 14px; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 8px; transition: background .5s; }
.ed-group:last-child { border-bottom: 0; }
.ed-group.flash { background: rgba(200, 255, 77, .08); }
.ed-group h3 { margin: 0 0 4px; font-size: 13.5px; }
.ed-group > label:first-of-type { margin-top: 10px; }
.ed-note { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.ed-cards, .ed-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-card, .ed-font { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; min-height: 0; padding: 10px 12px; white-space: normal; text-align: left; }
.ed-card span, .ed-font > span:last-child { font-size: 11.5px; font-weight: 450; color: var(--muted); }
.ed-aa { display: flex; align-items: center; height: 36px; font-size: 32px; line-height: 1; color: var(--ink); }
.ed-aa .ic { width: 24px; height: 24px; color: var(--muted); }
.ed-card.on, .ed-font.on, .ed-chip.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-chip { min-height: 30px; padding: 5px 12px; font-size: 12.5px; border-radius: 999px; }
.ed-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-swatch { position: relative; width: 34px; height: 34px; min-height: 0; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; box-shadow: none; cursor: pointer; }
.ed-swatch:hover { background: none; border-color: var(--line-strong); }
.ed-swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ed-swatch[title="Aus dem Titelfoto"] i { background: linear-gradient(135deg, #8a6a2f, #c98a2e 45%, #3f7d8c); }
.ed-swatch.on { border-color: var(--ink); }
.ed-swatch.custom { display: grid; place-items: center; margin: 0; background: conic-gradient(#ff5c8a, #ffd23f, #7ee0b5, #45d9f5, #8b9bff, #ff5c8a); }
.ed-swatch.custom input { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: 0; }
.ed-swatch.custom.on input { opacity: 1; }
.ed-swatch.custom input::-webkit-color-swatch-wrapper { padding: 0; }
.ed-swatch.custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.ed-swatch.custom input::-moz-color-swatch { border: 0; border-radius: 50%; }
.ed-swatch-name { margin: 10px 0 0; }
.ed-secs { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.ed-sec { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ed-sec.fixed { background: transparent; border-style: dashed; }
.ed-sec.off .ed-sec-text strong { color: var(--faint); }
.ed-move { display: flex; flex-direction: column; width: 24px; flex: none; }
.ed-move button, .ed-item-tools button, .ed-photo figcaption button { min-height: 0; padding: 2px; border: 0; background: none; box-shadow: none; color: var(--muted); }
.ed-move button:hover, .ed-item-tools button:hover, .ed-photo figcaption button:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.ed-move .ic { width: 15px; height: 15px; }
.ed-sec-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ed-sec-text strong { font-size: 13.5px; font-weight: 580; }
.ed-sec-text small { font-size: 11.5px; color: var(--faint); }
.ed-icon { min-height: 30px; padding: 5px 7px; }
.ed-switch { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.ed-switch .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ed-switch input { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); cursor: pointer; transition: background .2s, border-color .2s; }
.ed-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.ed-switch input:checked { background: var(--accent); border-color: var(--accent); }
.ed-switch input:checked::after { transform: translateX(16px); background: #fff; }
.ed-item { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ed-item-fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ed-item-fields input, .ed-item-fields textarea { min-height: 34px; padding: 6px 10px; font-size: 13.5px; }
.ed-item-tools { display: flex; flex-direction: column; gap: 2px; }
.ed-item-tools .ic { width: 15px; height: 15px; }
.ed-iconpick { flex: none; width: 38px; height: 38px; min-height: 0; padding: 0; }
.ed-iconpick .ic { width: 19px; height: 19px; }
.ed-add { width: 100%; margin-top: 8px; border-style: dashed; color: var(--muted); }
.ed-add:hover { color: var(--ink); }
.ed-quote { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.ed-quote span { flex: 1; }
.ed-quote small { color: var(--muted); }
.ed-quote button { min-height: 0; padding: 3px; }
.ed-count { float: right; font-weight: 450; color: var(--faint); }
.ed-icons { position: fixed; z-index: 80; width: 300px; max-height: 340px; overflow-y: auto; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -10px #000; }
.ed-icons-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.ed-icons-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ed-icons-grid button { min-height: 34px; padding: 0; }
.ed-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-photo { position: relative; margin: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.ed-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ed-photo .pill { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .62); }
.ed-photo figcaption { display: flex; justify-content: flex-end; gap: 2px; padding: 4px; }
.ed-photo figcaption .ic { width: 15px; height: 15px; }
.ed-upload { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 8px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13.5px; font-weight: 560; color: var(--ink-2); cursor: pointer; }
.ed-upload:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 1100px) {
  .ed { grid-template-columns: 340px minmax(0, 1fr); }
  .ed-open span, .ed-hint { display: none; }
}
@media (max-width: 760px) {
  .ed-body { overflow: auto; }
  .ed { grid-template-columns: 1fr; grid-template-rows: auto 52vh auto; height: auto; }
  .ed-top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .ed-device { display: none; }
  .ed-actions { width: 100%; }
  .ed-actions #ed-save { margin-left: auto; }
  .ed-stage { grid-row: 2; position: sticky; top: 0; z-index: 3; padding: 8px; }
  .ed-panel { grid-row: 3; border-right: 0; }
  .ed-pane { overflow: visible; }
}

/* ---------- Schmaler: Seitenleiste nur mit Symbolen ---------- */
@media (max-width: 1280px) {
  :root { --side-w: 72px; }
  .side { align-items: center; padding: 16px 10px 14px; }
  .brand { padding: 4px 0 22px; }
  .brand span, .nav a span, .setlink span, .mode small, .job-label, .acc-text { display: none; }
  .acc { padding: 6px; border: 0; background: none; }
  .nav a, .setlink { justify-content: center; padding: 11px; }
  .nav a.on::before { left: -10px; }
  .nav .badge { position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; }
  .side-foot { align-items: center; }
  .mode { padding: 0; border: 0; background: none; }
  .mode .pill { width: 28px; height: 28px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .job { width: 48px; padding: 9px 8px; }
  .content { padding: 26px 28px 96px; }
}
@media (max-width: 1180px) {
  /* Lead-Seite: Nächster Schritt über die Reiter, die übrigen Karten darunter */
  .lead-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .lead-main { order: 0; width: 100%; margin-bottom: 16px; }
  .lead-side { display: contents; }
  .lead-side > * { order: 1; }
  .lead-side > .highlight { order: -2; }
  .lead-side > .next { order: -1; }
  .package-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 1020px) {
  .review { grid-template-columns: 1fr; }
  .review-side { position: static; max-height: none; order: -1; }
  .review iframe.preview { height: 72vh; }
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .subnav { top: 0; z-index: 6; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -28px; padding: 10px 28px; background: rgba(9, 9, 11, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .subnav .state { display: none; }
  html { scroll-padding-top: 72px; }
}

/* ---------- Handy: Kopfleiste oben, Navigation unten ---------- */
@media (max-width: 760px) {
  :root { --side-w: 0px; }
  .app { display: block; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: none; border: 0; }
  .side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 12, 15, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .brand { margin-right: auto; padding: 0; }
  .brand span { display: inline; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; flex-direction: row; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(12, 12, 15, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .nav a { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; font-weight: 580; }
  .nav a span { display: block; }
  .nav a.on { background: none; }
  .nav a.on::before { left: 32%; right: 32%; top: -6px; bottom: auto; width: auto; height: 2px; border-radius: 0 0 2px 2px; }
  .nav .badge { top: 1px; left: calc(50% + 5px); right: auto; }
  .side-foot { flex-direction: row; margin: 0; gap: 6px; }
  .setlink { padding: 8px; }
  .mode .pill { width: auto; height: auto; min-height: 24px; padding: 1px 9px; font-size: 12px; gap: 5px; }
  .job { width: auto; padding: 4px 10px; }
  .job-label { display: block; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .job-bar { display: none; }
  .content { padding: 20px 16px calc(100px + env(safe-area-inset-bottom)); }
  .toast { top: auto; bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
  .bulkbar { bottom: calc(78px + env(safe-area-inset-bottom)); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  h1 { font-size: 23px; }
  .head { align-items: stretch; flex-direction: column; margin-bottom: 18px; }
  .head .actions, .head .actions .button { width: 100%; }
  .kpis { grid-auto-flow: row; grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
  .kpi { padding: 12px 14px 14px; }
  .kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .kpi-value { font-size: 22px; }
  .task { flex-wrap: wrap; padding: 14px; }
  .task-go { width: 100%; padding-left: 52px; }
  .task-go .button, .task-go button { width: 100%; white-space: normal; }
  .board-bar .search-field { width: 100%; order: 3; margin: 0; }
  .board { grid-template-columns: repeat(5, 84vw); margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
  .col { max-height: 72vh; }
  .row { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .sticky-actions { margin: 20px -16px -16px !important; padding: 12px 16px; }
  .progress { padding: 12px 14px; }
  .progress li:not(.now) span { display: none; }
  .progress li::after { margin: 0 6px; min-width: 8px; }
  .progress li.now { flex: none; }
  .progress li.now span { overflow: visible; }
  .lead-head { gap: 14px; }
  .lead-head .av.lg { width: 52px; height: 52px; font-size: 21px; }
  .lead-head .actions { width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .onboard-step { flex-direction: column; gap: 10px; }
  iframe.preview { height: 64vh; min-height: 0; }
  .review iframe.preview { height: 64vh; min-height: 0; }
  .filters .search-field { flex-basis: 100%; max-width: none; }
  .hide-m { display: none; }
  .show-m { display: inline-flex !important; align-self: flex-start; margin-top: 4px; }
  table.list:not(.compact) { min-width: 0; }
  table.list td, table.list th { padding-left: 10px; padding-right: 10px; }
  .package-grid { grid-template-columns: 1fr; }
  .subnav { margin: 0 -16px; padding: 10px 16px; top: 52px; }
  html { scroll-padding-top: 120px; }
}
/* ohne Tastatur keine Tastenkürzel anzeigen */
@media (hover: none) { kbd, .keys { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
