/* HypnoCode Business OS – App-Oberflaeche. Marke: Light Hypnosis Academy (Marine / Gold, Playfair Display + Inter). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("../fonts/playfair-700.woff2") format("woff2"); }

:root {
  --bg: #f7f9fc; --surface: #ffffff; --surface-2: #f0f4fd;
  --border: #e2e7f2; --border-strong: #cbd3e6;
  --ink: #0d1b35; --ink-soft: #4c5a75; --ink-faint: #7d899f;
  --accent: #f5c842; --accent-strong: #e0b32e; --accent-ink: #0d2b5e; --accent-soft: rgba(245, 200, 66, 0.14);
  --navy-deep: #0a1c46; --navy-mid: #1a4a9b;
  --sidebar-bg: #0d1b35; --sidebar-ink: #ffffff; --sidebar-soft: rgba(255, 255, 255, 0.62);
  --sidebar-border: rgba(255, 255, 255, 0.08); --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active-bg: rgba(245, 200, 66, 0.15); --sidebar-active-ink: #f5c842;
  --positive: #1f7a4d; --positive-soft: #e3f4ea; --attention: #b8461f; --attention-soft: #fbece6;
  --shadow: 0 1px 2px rgba(13, 27, 53, 0.05), 0 6px 20px rgba(13, 27, 53, 0.07);
  --shadow-lg: 0 12px 36px rgba(10, 20, 40, 0.18);
  --font-display: "Playfair Display", Georgia, "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", Consolas, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e15; --surface: #11161f; --surface-2: #161c27; --border: #232b38; --border-strong: #2f3849;
    --ink: #eef1f7; --ink-soft: #99a3b8; --ink-faint: #7a859b; --accent-soft: rgba(245, 200, 66, 0.16);
    --positive: #5dc590; --positive-soft: #14281f; --attention: #ee8b66; --attention-soft: #2c1a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--navy-mid); }
a:hover { color: var(--navy-deep); }
@media (prefers-color-scheme: dark) { a { color: #8fb4ff; } a:hover { color: #c3d6ff; } }
svg { display: block; }
p { margin: 0 0 0.8rem; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--font-mono); }
.right { margin-left: auto; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex-shrink: 0; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; padding: 1.2rem 0.9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 0.65rem; padding: 0.3rem 0.5rem 1.4rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--sidebar-ink); line-height: 1.1; }
.brand-tag { font-size: 0.64rem; color: var(--sidebar-soft); font-weight: 700; letter-spacing: 0.08em; }
.nav-group { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sidebar-soft); padding: 1.1rem 0.6rem 0.4rem; }
.nav-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.6rem; border-radius: var(--r-sm); color: var(--sidebar-soft); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-ink); }
.nav-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-ink); }
.nav-item .badge { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; background: rgba(245, 200, 66, 0.2); color: var(--accent); padding: 0.08rem 0.45rem; border-radius: 999px; }
.nav-item .soon { margin-left: auto; font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--sidebar-border); border-radius: 999px; padding: 0.05rem 0.4rem; }
.sidebar-spacer { flex: 1; }
.sidebar-foot { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 0.5rem 0.2rem; border-top: 1px solid var(--sidebar-border); margin-top: 0.8rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(245, 200, 66, 0.18); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.sf-name { font-size: 0.82rem; font-weight: 700; color: var(--sidebar-ink); }
.sf-role { font-size: 0.72rem; color: var(--sidebar-soft); }
.logout { background: none; border: none; color: var(--sidebar-soft); font-size: 0.74rem; padding: 0; cursor: pointer; text-decoration: underline; }
.logout:hover { color: var(--sidebar-ink); }

.main-col { flex: 1; min-width: 0; }
.main { padding: 2rem 2.4rem 4rem; max-width: 80rem; margin: 0 auto; }
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 0.6rem; gap: 0.2rem; }
  .brand { padding: 0 0.8rem 0 0.2rem; }
  .brand-tag, .nav-group, .sidebar-spacer, .sidebar-foot { display: none; }
  .nav-item { white-space: nowrap; }
  .main { padding: 1.4rem 1rem 3rem; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.35rem; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.005em; }
.page-sub { color: var(--ink-soft); font-size: 0.9rem; margin: 0.3rem 0 0; max-width: 46rem; }

/* ---------- Meldungen ---------- */
.flashes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--r-sm); font-size: 0.9rem; border: 1px solid var(--border); background: var(--surface); }
.flash.ok { background: var(--positive-soft); border-color: transparent; color: var(--positive); }
.flash.error { background: var(--attention-soft); border-color: transparent; color: var(--attention); }
.flash.info { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .flash.info { color: var(--accent); } }

/* ---------- Karten, Raster ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1.1rem; }
.card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 0.9rem; }
.card-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.3rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1.15fr 0.85fr; }
.grid-even { grid-template-columns: 1fr 1fr; }
.grid .card + .card { margin-top: 0; }
@media (max-width: 1180px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .grid-even { grid-template-columns: 1fr; } }

/* ---------- Buttons, Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.62rem 1.1rem; border-radius: var(--r-sm); font-size: 0.88rem; font-weight: 700; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--attention); border-color: var(--attention); }
.btn-danger:hover { background: var(--attention-soft); color: var(--attention); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.inline-form { display: inline; margin: 0; }

.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.3rem; }
.hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.3rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="time"], input[type="search"], select, textarea {
  width: 100%; padding: 0.58rem 0.75rem; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--bg); line-height: 1.4; }
textarea { resize: vertical; min-height: 4.4rem; line-height: 1.5; }
input:disabled { opacity: 0.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.checkline { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; }
.checkline input { margin-top: 0.25rem; width: auto; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin: 1.6rem 0 0.8rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.section-label.first { margin-top: 0; padding-top: 0; border-top: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.chip.active, .radio-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent-strong); color: var(--accent-ink); }
.radio-chip { cursor: pointer; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip span { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.radio-chip input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

.tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag.positive { background: var(--positive-soft); color: var(--positive); }
.tag.attention { background: var(--attention-soft); color: var(--attention); }
@media (prefers-color-scheme: dark) { .tag.accent { color: var(--accent); } }

table.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; padding: 0.5rem 0.8rem 0.5rem 0; border-bottom: 1px solid var(--border); }
.table td { padding: 0.65rem 0.8rem 0.65rem 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

/* ---------- Schalter ---------- */
.toggle { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle-track { width: 42px; height: 24px; background: var(--border-strong); border-radius: 999px; position: relative; transition: background 0.15s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.toggle input:checked + .toggle-track { background: var(--accent-strong); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ---------- Start ---------- */
.greeting { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; }
.next-step { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%); color: #fff; border-radius: var(--r-lg); padding: 1.5rem 1.8rem; margin: 1.6rem 0 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.next-step .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; color: #fff; margin: 0; }
.next-step .title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-top: 0.25rem; }
.next-step .sub { opacity: 0.8; font-size: 0.88rem; margin: 0.2rem 0 0; }
.steps { margin-top: 0.4rem; }
.step { display: flex; gap: 1rem; align-items: center; padding: 0.95rem 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; background: var(--surface-2); color: var(--ink-faint); }
.step.done .step-dot { background: var(--positive); color: #fff; }
.step.current .step-dot { background: var(--accent-soft); color: var(--accent-ink); border: 2px solid var(--accent-strong); }
.step-main { flex: 1; min-width: 0; }
.step-title { font-weight: 700; font-size: 0.92rem; }
.step-text { color: var(--ink-soft); font-size: 0.82rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.4rem 0; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.15rem; }
.kpi .n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.kpi .l { font-size: 0.78rem; color: var(--ink-soft); }
.delta { font-size: 0.72rem; font-weight: 700; margin-left: 0.4rem; font-family: var(--font-body); }
.delta.up { color: var(--positive); }
.delta.down { color: var(--attention); }
.week-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.week-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; font-weight: 600; }
.week-list .count { margin-left: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); }
.dot-check { width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; }
.dot-check.done { background: var(--positive); border-color: var(--positive); }
.chart { width: 100%; height: 86px; }
.chart-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-faint); padding: 0 4px; margin-top: 0.3rem; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-top: 1.4rem; }
@media (max-width: 960px) { .quick { grid-template-columns: repeat(2, 1fr); } }
.quick a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.05rem 1.1rem; text-decoration: none; color: var(--ink); display: block; }
.quick a:hover { border-color: var(--accent-strong); box-shadow: var(--shadow); }
.quick .q-title { font-weight: 700; font-size: 0.9rem; }
.quick .q-sub { color: var(--ink-soft); font-size: 0.78rem; }
.linkbox { display: flex; gap: 0.5rem; align-items: center; background: var(--surface-2); border-radius: var(--r-sm); padding: 0.5rem 0.5rem 0.5rem 0.8rem; font-family: var(--font-mono); font-size: 0.78rem; word-break: break-all; }
.linkbox span { flex: 1; min-width: 0; }

/* ---------- Informationen / Fotos ---------- */
.photo-grid { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.photo { position: relative; width: 104px; }
.photo img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--border); display: block; }
.photo.primary img { border-color: var(--accent-strong); }
.photo .badge { position: absolute; top: 6px; left: 6px; background: var(--accent); color: var(--accent-ink); font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 4px; }
.photo-actions { display: flex; gap: 0.3rem; margin-top: 0.35rem; }
.photo-actions button { font-size: 0.72rem; padding: 0.2rem 0.4rem; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); cursor: pointer; }
.slugbox { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.slugbox span { padding: 0 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); white-space: nowrap; }
.slugbox input { border: none; border-left: 1px solid var(--border); border-radius: 0; }

/* ---------- Website-Editor ---------- */
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; }
.pick { cursor: pointer; display: block; }
.pick input { position: absolute; opacity: 0; }
.pick-card { display: block; border: 2px solid var(--border); border-radius: var(--r-md); padding: 0.8rem 0.9rem; background: var(--surface); height: 100%; }
.pick input:checked + .pick-card { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick input:focus-visible + .pick-card { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.pick-title { display: block; font-weight: 700; font-size: 0.88rem; }
.pick-text { display: block; font-size: 0.76rem; color: var(--ink-soft); }
.swatches { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); display: block; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; gap: 0.6rem; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 0.2rem; gap: 0.2rem; }
.seg a { padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.seg a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button { padding: 0.3rem 0.7rem; border: none; background: none; border-radius: 5px; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.browser { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); margin: 0 auto; transition: max-width 0.2s; max-width: 100%; }
.browser.mobile { max-width: 340px; }
.browser-bar { background: var(--surface-2); padding: 0.5rem 0.8rem; display: flex; gap: 0.35rem; align-items: center; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.browser-bar .url { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser iframe { width: 100%; height: 640px; border: 0; display: block; background: #fff; }
.status-line { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; margin: 1rem 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); }
.status-dot.live { background: var(--positive); }
.repeat { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.8rem; margin-bottom: 0.7rem; background: var(--bg); }

/* ---------- Interessenten ---------- */
.toolbar { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.3rem; }
.toolbar form { display: flex; gap: 0.5rem; }
.toolbar input[type="search"] { width: 240px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 0.9rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.col { min-height: 140px; border-radius: var(--r-md); padding: 0.2rem; }
.col.over { background: var(--accent-soft); }
.col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; padding: 0 0.2rem; }
.col-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700; }
.col-title i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink-faint); display: block; }
.col[data-status="gespraech"] .col-title i { background: var(--accent-strong); }
.col[data-status="termin"] .col-title i, .col[data-status="kunde"] .col-title i { background: var(--navy-mid); }
.col[data-status="nachfassen"] .col-title i { background: var(--attention); }
.col-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.lead { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.85rem 0.9rem; margin-bottom: 0.7rem; font-size: 0.84rem; cursor: pointer; }
.lead:hover { border-color: var(--accent-strong); box-shadow: var(--shadow); }
.lead.dragging { opacity: 0.45; }
.lead-name { font-weight: 700; }
.lead-topic { color: var(--ink-soft); font-size: 0.78rem; }
.lead-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint); }
.lead-task { margin-top: 0.4rem; font-size: 0.76rem; color: var(--accent-ink); background: var(--accent-soft); padding: 0.15rem 0.45rem; border-radius: 4px; display: inline-block; }
@media (prefers-color-scheme: dark) { .lead-task { color: var(--accent); } }
.drawer-scrim { position: fixed; inset: 0; background: rgba(10, 20, 40, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.18s; z-index: 40; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 94vw; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.2s ease; z-index: 41; overflow-y: auto; padding: 1.4rem; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.lead-head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; padding-right: 2.4rem; }
.lead-head .avatar { width: 46px; height: 46px; background: var(--accent-soft); color: var(--accent-ink); font-size: 1rem; }
.lead-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 0.6rem; font-size: 0.8rem; padding: 0.35rem 0; }
.timeline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); margin-top: 0.45rem; flex-shrink: 0; }
.timeline .when { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint); }
details.fold { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.6rem 0.8rem; margin: 0.8rem 0; }
details.fold summary { cursor: pointer; font-weight: 600; font-size: 0.86rem; }

/* ---------- Nachfass-Systeme ---------- */
.auto-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.auto-row:last-child { border-bottom: none; }
.auto-main { flex: 1; }
.auto-name { font-weight: 700; font-size: 0.92rem; }
.auto-desc { color: var(--ink-soft); font-size: 0.82rem; }
.week-grid { display: grid; grid-template-columns: 110px 1fr; gap: 0.6rem 0.8rem; align-items: center; }
.week-grid .day { font-weight: 600; font-size: 0.86rem; }
.windows { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.windows input[type="time"] { width: 105px; padding: 0.4rem 0.5rem; }
.windows .sep { color: var(--ink-faint); }
.mail-sub { max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- Kurs ---------- */
.progress { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.4rem; }
.progress .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.note-box { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--accent-soft); border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: 0.88rem; }
.course { display: grid; grid-template-columns: 330px 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 1180px) { .course { grid-template-columns: 1fr; } .modules { position: static; max-height: 360px; } }
.modules { padding: 0.9rem; max-height: 720px; overflow-y: auto; position: sticky; top: 1rem; }
.module-phase { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); padding: 0.9rem 0.6rem 0.4rem; }
.module-phase:first-child { padding-top: 0.2rem; }
.module-phase.current { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .module-phase.current { color: var(--accent); } }
.module { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.6rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.module:hover { background: var(--surface-2); color: var(--ink); }
.module.active { background: var(--accent-soft); }
.module.locked { color: var(--ink-faint); cursor: default; }
.module.locked:hover { background: none; color: var(--ink-faint); }
.module-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; background: var(--surface-2); color: var(--ink-faint); }
.module.done .module-dot { background: var(--positive); color: #fff; }
.module.active .module-dot { background: var(--accent); color: var(--accent-ink); }
.module-title { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.module-dur { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint); }
.video { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid)); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; color: #fff; text-align: center; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.video .empty { padding: 1rem; font-size: 0.86rem; opacity: 0.85; }
.lesson-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0.1rem 0 0.4rem; }
.lesson-body { color: var(--ink-soft); line-height: 1.65; }
.lesson-body h2, .lesson-body h3 { color: var(--ink); margin: 1.2rem 0 0.4rem; font-size: 1.05rem; }
.lesson-body a { word-break: break-word; }
.task { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.45rem 0; font-size: 0.9rem; }
.task input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: #1a4a9b; }
.deliverable { background: var(--surface-2); border-radius: var(--r-sm); padding: 0.8rem 1rem; margin: 1.1rem 0; }
.deliverable p { margin: 0.2rem 0 0; font-weight: 600; font-size: 0.9rem; }

/* ---------- Sonstiges ---------- */
.soon-card { max-width: 42rem; text-align: left; }
.soon-card ul { padding-left: 1.2rem; color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-faint); padding: 1.6rem 1rem; font-size: 0.88rem; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.danger-zone { border-color: var(--attention); }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid)); }
.auth-box { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-box .brand { padding: 0 0 1.2rem; }
.auth-box .brand-word { color: var(--ink); }
.auth-box .brand-tag { color: var(--ink-faint); }
.auth-box h1 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.3rem; }
.auth-box .btn { width: 100%; }

/* ---------- Kursdateien, Markdown-Editor ---------- */
.files { display: grid; gap: 0.5rem; margin-bottom: 0.4rem; }
.file { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: 0.9rem; font-weight: 600; background: var(--surface); }
.file:hover { border-color: var(--accent-strong); }
.file::before { content: "↓"; color: var(--accent-strong); font-weight: 700; margin-right: 0.2rem; }
.file span:first-child { flex: 1; word-break: break-word; }
.md-toolbar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.md-toolbar button { padding: 0.3rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); font-size: 0.8rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.md-toolbar button:hover { background: var(--surface-2); }
.md-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .md-split { grid-template-columns: 1fr; } }
.md-preview { border: 1px dashed var(--border-strong); border-radius: var(--r-sm); padding: 0.9rem 1.1rem; min-height: 14rem; background: var(--surface); }
.md-preview:empty::before { content: "Hier erscheint die Vorschau deines Textes."; color: var(--ink-faint); font-size: 0.86rem; }

/* Interessenten als Liste */
.chips-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chips-filter .chip { text-decoration: none; }
.chips-filter .chip span { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.7; margin-left: 0.2rem; }
.lead-table th { white-space: nowrap; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover, .sort-link.current { color: var(--ink); text-decoration: underline; }
.lead-row { cursor: pointer; }
.lead-row:hover td { background: var(--surface-2); }
.lead-link { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; min-width: 190px; }
.lead-link small { display: block; color: var(--ink-faint); font-size: 0.76rem; }
.status-select { width: auto; min-width: 9.5rem; padding: 0.3rem 0.6rem; font-size: 0.82rem; font-weight: 600; }
.status-select[data-status="kunde"] { border-color: var(--positive); }
.status-select[data-status="nachfassen"] { border-color: var(--attention); }
.nowrap { white-space: nowrap; }
