/* ========== Heimwert – Design-Tokens ========== */
:root {
  --ink: #14213d;
  --ink-2: #3d4a66;
  --muted: #6b7489;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-warm: #fbf7f2;
  --brand: #1f5f5b;
  --brand-2: #164744;
  --brand-soft: #e6f0ef;
  --accent: #e8913a;
  --accent-2: #d17a22;
  --ok: #1e8a52;
  --ok-soft: #e4f4ea;
  --warn: #b7791f;
  --warn-soft: #fdf3e1;
  --err: #c0392b;
  --err-soft: #fbe9e7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 24px rgba(20, 33, 61, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }

/* ========== Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1b1206; }
.btn-primary:hover { background: var(--accent-2); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--err-soft); color: var(--err); }
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }

/* ========== Forms ========== */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-suffix input { padding-right: 46px; }

/* ========== Alerts / Badges ========== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert-success { background: var(--ok-soft); color: #145c37; }
.alert-error { background: var(--err-soft); color: #8e2a1f; }
.alert-info { background: var(--brand-soft); color: var(--brand-2); }
.alert ul { margin: 0; padding-left: 18px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.badge-neu { background: #fde8d4; color: #9a4f0c; }
.badge-pruefung, .badge-kontakt { background: #e6eefc; color: #2948a3; }
.badge-termin, .badge-vertrag { background: #efe7fb; color: #5b33a6; }
.badge-vermarktung, .badge-reserviert { background: var(--brand-soft); color: var(--brand-2); }
.badge-verkauft { background: var(--ok-soft); color: #145c37; }
.badge-verloren { background: #eceef2; color: #646b7a; }
.dot { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--err); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }

/* ========== Public header / footer ========== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.site-nav { display: flex; gap: 22px; margin-left: 16px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer { background: var(--ink); color: #c9cfdb; padding: 48px 0 30px; margin-top: 80px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; color: #8d96a8; }

/* ========== Home ========== */
.hero { background: linear-gradient(180deg, var(--bg-warm), #fff); padding: 64px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 14px; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 560px; }
.hero-start { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--line); }
.hero-start h3 { margin-bottom: 16px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.type-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; background: #fff; cursor: pointer; font: 600 1rem var(--font); color: var(--ink);
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .15s, background .15s, transform .1s; }
.type-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.type-card.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand) inset; }
.type-card svg { width: 38px; height: 38px; color: var(--brand); }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-2); font-size: .92rem; }
.trust-row span { display: inline-flex; gap: 6px; align-items: center; }
.trust-row svg { width: 18px; height: 18px; color: var(--ok); }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-shadow { box-shadow: var(--shadow); border-color: transparent; }
.icon-bubble { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon-bubble svg { width: 24px; height: 24px; }
.step-num { font-size: .8rem; font-weight: 800; color: var(--accent-2); letter-spacing: .08em; margin-bottom: 8px; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--ink); color: #fff; font-size: .92rem; }
.compare td:first-child { font-weight: 600; width: 28%; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--muted); }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band strong { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); }
.quote { font-size: 1.02rem; }
.quote footer { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 12px 0 0; color: var(--ink-2); }
.cta-band { background: var(--brand); color: #fff; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d3e6e4; }

/* ========== Wizard ========== */
.wizard-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.wizard-top { background: #fff; border-bottom: 1px solid var(--line); }
.wizard-top .container { display: flex; align-items: center; height: 64px; gap: 16px; }
.progress { height: 4px; background: var(--line); }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .35s ease; }
.wizard-main { flex: 1; padding: 40px 0 60px; }
.wizard-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 36px; max-width: 720px; margin: 0 auto; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-count { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.wizard-step h2 { font-size: 1.6rem; margin-bottom: 6px; }
.wizard-step .sub { color: var(--muted); margin-bottom: 24px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.options.cols-4 { grid-template-columns: repeat(4, 1fr); }
.option { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; font-weight: 600; background: #fff; text-align: left; font-family: inherit; font-size: 1rem; color: var(--ink); transition: all .15s; }
.option:hover { border-color: var(--brand); }
.option.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.option small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; font: 500 .95rem var(--font); background: #fff; color: var(--ink); }
.chip.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.thumbs .thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(20,33,61,.75); color: #fff; cursor: pointer; line-height: 1; }
.result-box { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 18px; padding: 30px; text-align: center; margin-bottom: 24px; }
.result-box .range { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 800; margin: 6px 0; letter-spacing: -.02em; }
.result-box .meta { color: #cfe3e1; font-size: .92rem; }
.scale { height: 10px; border-radius: 5px; background: rgba(255,255,255,.2); position: relative; margin: 20px auto 6px; max-width: 420px; }
.scale > div { position: absolute; left: 20%; right: 20%; top: 0; bottom: 0; background: var(--accent); border-radius: 5px; }
.agent-preview { display: flex; gap: 14px; align-items: center; background: var(--bg-warm); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }

/* ========== Avatars ========== */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .75rem; }

/* ========== Customer portal ========== */
.portal-head { background: var(--bg-warm); padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 28px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.timeline li.done .tl-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline li.done::before { background: var(--brand); }
.timeline li.current .tl-dot { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 5px #fbe6cf; }
.timeline li strong { display: block; }
.timeline li.todo strong { color: var(--muted); font-weight: 600; }
.timeline li .small { color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.kv div span { display: block; font-size: .8rem; color: var(--muted); }
.kv div strong { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gallery a, .gallery .ph { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--bg-soft); position: relative; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery form { position: absolute; top: 6px; right: 6px; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 460px; overflow-y: auto; padding: 4px 2px 12px; }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: var(--bg-soft); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble .meta { font-size: .75rem; opacity: .75; margin-top: 6px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.chat-form textarea { min-height: 48px; height: 48px; }
.prop-list { display: grid; gap: 16px; }
.prop-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; text-decoration: none; color: inherit; }
.prop-item .cover { aspect-ratio: 4/3; border-radius: 10px; background: var(--brand-soft); overflow: hidden; display: grid; place-items: center; color: var(--brand); }
.prop-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; max-width: 280px; }
.mini-progress > div { height: 100%; background: var(--brand); }

/* ========== Intern (Backoffice) ========== */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-soft); }
.sidebar { background: var(--ink); color: #c9cfdb; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { color: #fff; padding: 4px 10px 20px; }
.sidebar .logo-mark { background: var(--accent); }
.sidebar .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #7f8aa3; padding: 16px 12px 6px; }
.sidebar a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #c9cfdb; text-decoration: none; font-weight: 500; font-size: .95rem; }
.sidebar a.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.nav.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar a.nav svg { width: 18px; height: 18px; opacity: .85; }
.sidebar .me { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.sidebar .me .linklike { color: #aab3c5; font-size: .82rem; }
.app-main { padding: 28px 32px 60px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.app-head h1 { font-size: 1.6rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); text-decoration: none; color: inherit; display: block; }
.kpi span { font-size: .85rem; color: var(--muted); }
.kpi strong { display: block; font-size: 1.9rem; font-weight: 800; margin-top: 2px; }
.kpi.alert-kpi strong { color: var(--err); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 1rem; }
.panel-body { padding: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #fafbfc; }
.table-wrap { overflow-x: auto; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { width: auto; padding: 9px 12px; font-size: .92rem; }
.filters input[type=search] { min-width: 240px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.overdue { color: var(--err); font-weight: 700; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); flex-shrink: 0; font-size: .9rem; }
.feed .ic.call { background: #e6eefc; } .feed .ic.email { background: #fdf3e1; } .feed .ic.status { background: var(--brand-soft); }
.feed .ic.meeting { background: #efe7fb; } .feed .ic.assign { background: #fde8d4; }
.feed .body { white-space: pre-wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs label { margin: 0; }
.tabs input { display: none; }
.tabs span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; font-size: .88rem; }
.tabs input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-card { display: flex; gap: 14px; align-items: center; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* Pipeline / Kanban */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.column { background: #eaedf2; border-radius: var(--radius); padding: 12px; min-height: 300px; display: flex; flex-direction: column; gap: 10px; }
.column.drop { background: var(--brand-soft); outline: 2px dashed var(--brand); }
.column-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; padding: 2px 4px 6px; }
.kcard { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(20,33,61,.08); cursor: grab; text-decoration: none; color: inherit; display: block; font-size: .9rem; border: 1px solid transparent; }
.kcard:hover { border-color: var(--brand); }
.kcard.dragging { opacity: .5; }
.kcard strong { display: block; margin-bottom: 2px; }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: .8rem; }

/* Statistik */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; font-size: .82rem; color: var(--muted); }
.bars .bar div { width: 100%; max-width: 54px; background: var(--brand); border-radius: 6px 6px 0 0; min-height: 3px; }
.bars .bar b { color: var(--ink); }
.funnel-row { display: grid; grid-template-columns: 190px 1fr 60px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.funnel-row .track { height: 22px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
.funnel-row .track div { height: 100%; background: linear-gradient(90deg, var(--brand), #3b8c86); border-radius: 6px; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; }
.demo-box { margin-top: 18px; font-size: .84rem; background: var(--bg-warm); padding: 14px; border-radius: var(--radius-sm); }
.demo-box code { font-size: .8rem; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero .container, .portal-grid, .detail-grid, .two-col { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .stats-band, .kpis { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .sidebar .logo { padding: 4px 10px; }
  .sidebar .group { display: none; }
  .sidebar .me { margin: 0 0 0 auto; border: 0; padding: 6px; }
  .app-main { padding: 20px 16px 40px; }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .cards-3, .cards-4, .stats-band, .grid-2, .grid-3, .options.cols-4 { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .wizard-card { padding: 22px 18px; border-radius: 16px; }
  .wizard-main { padding: 16px 0 40px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  .prop-item { grid-template-columns: 90px 1fr; }
  .prop-item > :last-child { grid-column: 1 / -1; }
  .header-phone { display: none; }
  .funnel-row { grid-template-columns: 110px 1fr 40px; font-size: .8rem; }
  .compare td:first-child { width: auto; }
  .filters input[type=search] { min-width: 0; width: 100%; }
}

/* Chips mit echter Checkbox */
.chip-label { margin: 0; font-weight: 400; }
.chip-label input:checked + .chip { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip-label input:focus-visible + .chip { box-shadow: 0 0 0 3px var(--brand-soft); }
.chip { display: inline-block; user-select: none; }

/* Zahlenfelder ohne Spinner (überlagern sonst das m²-Suffix) */
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Exposé-Editor */
.expose-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.expose-photo { border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; opacity: .6; transition: opacity .15s, border-color .15s; }
.expose-photo.on { opacity: 1; border-color: var(--brand); }
.expose-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 981px) { .expose-side { position: sticky; top: 16px; } }
