:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ee;
  --blue: #1d4ed8;
  --navy: #0b3b8c;
  --sky: #e8f3fe;
  --cta: #f97316;
  --cta-dark: #ea580c;
  --wa: #25d366;
  --wa-ink: #04220f;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 59, 140, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", "Leelawadee UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; }
body:lang(th) { line-height: 1.7; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
h3[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--navy); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand img { width: 38px; height: 38px; aspect-ratio: 1 / 1; flex: none; object-fit: contain; border-radius: 9px; }
.top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.voice-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: 1.5px solid #bfdbfe; border-radius: 999px; background: var(--sky); color: var(--navy);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.voice-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.voice-btn.is-playing { background: var(--blue); border-color: var(--blue); color: #fff; }
.langs { display: flex; gap: 2px; justify-content: flex-end; }
.langs a { padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.langs a:hover { background: var(--sky); }
.langs a[aria-current="true"] { color: var(--navy); background: var(--sky); }

/* Hero mit Foto */
.hero { position: relative; overflow: hidden; color: #fff; background: #0b2a5b; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 61, 0.78) 0%, rgba(7, 26, 61, 0.55) 45%, rgba(7, 26, 61, 0.82) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; padding-bottom: 40px; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(30px, 7vw, 50px); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(7, 26, 61, 0.45); }
.lead { font-size: clamp(16px, 2.4vw, 19px); max-width: 560px; opacity: 0.96; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.points svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); fill: var(--blue); }

/* Formular-Karte mit Schritt-Slider */
.card { scroll-margin-top: 80px; background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 21px; margin-bottom: 10px; }
.condo-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 8px 12px;
  border-radius: 10px; background: var(--sky); color: var(--navy); font-size: 13px; font-weight: 700;
}
.condo-chip[hidden] { display: none; }
.condo-chip button { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.form-top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 2px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.back svg { width: 18px; height: 18px; fill: currentColor; }
.back[hidden] { display: none; }
.step-label { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress { height: 6px; margin: 6px 0 16px; border-radius: 999px; background: #e7eef8; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, var(--blue)); transition: width 0.35s ease; }
.slider { width: 100%; overflow: hidden; transition: height 0.35s ease; }
.slides { display: flex; align-items: flex-start; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.slide { flex: 0 0 100%; min-width: 0; display: grid; gap: 12px; padding: 2px; }
.slide h3 { font-size: 19px; margin: 0 0 4px; }
.options { display: grid; gap: 10px; }
.options-grid { grid-template-columns: 1fr 1fr; }
.option {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.option:hover { border-color: #93c5fd; background: #f5f9ff; }
.option:active { transform: scale(0.98); }
.option[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.option-muted { color: var(--muted); font-weight: 600; }
.option-big { justify-content: flex-start; min-height: 76px; padding: 14px 16px; text-align: left; }
.option-big svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--sky); fill: var(--blue); }
.option-big strong { display: block; font-size: 18px; }
.option-big small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.lead-form:not([data-intent="buy"]) .budget-buy, .lead-form[data-intent="buy"] .budget-rent { display: none; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
input[type="text"], input[type="tel"], input:not([type]), select {
  width: 100%; height: 52px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #c5d0de; border-radius: 12px; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); }
.phone { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.phone select { padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 600; }
.note { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.thanks { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 10px 0; }
.thanks[hidden], form[hidden] { display: none; }
.thanks-icon svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #dcfce7; fill: #15803d; }
.thanks p { color: var(--muted); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: linear-gradient(180deg, #fb923c, var(--cta)); color: #fff; box-shadow: 0 10px 24px -10px var(--cta-dark); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-big { width: 100%; min-height: 56px; font-size: 17px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }

/* WhatsApp-Knopf unten rechts */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 60px; height: 60px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(4, 34, 15, 0.6);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float span { display: none; }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(37, 211, 102, 0.55); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* Abschnitte */
.section { padding: 56px 0; }
.section-alt { background: #f3f8fe; }
.section-title { font-size: clamp(24px, 4vw, 34px); text-align: center; margin-bottom: 28px; letter-spacing: -0.01em; }
.section-sub { max-width: 680px; margin: -16px auto 26px; text-align: center; color: var(--muted); font-size: 15.5px; }
.condos-grid { display: grid; gap: 18px; }
.condo-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -22px rgba(11, 59, 140, 0.55); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.condo-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -20px rgba(11, 59, 140, 0.65); }
.condo-img { position: relative; display: block; }
.condo-title-link { color: inherit; text-decoration: none; }
.condo-title-link:hover { color: var(--blue); }
.condo-mail { display: inline-block; margin-top: 6px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; }
.condo-mail:hover { color: var(--blue); }
.condo-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.condo-badge {
  position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.86); color: #fbbf24; font-size: 12px; font-weight: 800; letter-spacing: 0.01em;
}
.condo-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.condo-body h3 { font-size: 17.5px; margin: 0; }
.condo-meta { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.condo-price { margin: 4px 0 8px; font-size: 15px; color: var(--ink); }
.condo-price strong { font-size: 19px; color: var(--navy); }
.condo-price small, .condo-price span { color: var(--muted); font-size: 13px; }
.btn-condo { width: 100%; min-height: 44px; margin-top: auto; font-size: 14.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(180deg, #38bdf8, var(--blue)); color: #fff; font-weight: 800; }
.steps h3, .why h3 { font-size: 18px; }
.steps p, .why p { margin: 0; color: var(--muted); }
.why { display: grid; gap: 16px; }
.why-item { overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px -22px rgba(11, 59, 140, 0.6); }
.why-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.why-text { padding: 16px 18px 20px; }
.areas-title { text-align: center; font-size: 18px; margin: 34px 0 14px; }
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.areas li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 8px; }
.final { color: #fff; text-align: center; background: linear-gradient(180deg, rgba(7, 26, 61, 0.72), rgba(7, 26, 61, 0.86)), url("/assets/media/pool-1000.webp") center / cover no-repeat; }
.final h2 { font-size: clamp(26px, 4vw, 36px); }
.final-actions { display: grid; gap: 10px; margin-top: 18px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p { line-height: 1.7; }

/* Fußzeile */
.foot { background: #0b1730; color: #cbd5e1; padding: 36px 0 90px; font-size: 14px; }
.foot-inner { display: grid; gap: 20px; }
.brand-foot { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; }
.brand-foot img { width: 32px; height: 32px; }
.foot p { margin: 8px 0 0; }
.foot-links { display: grid; gap: 8px; }
.foot a, .foot .linklike { color: #e2e8f0; }
.disclaimer { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.2); color: #94a3b8; font-size: 12px; line-height: 1.5; }
.copy { margin-top: 12px !important; color: #94a3b8; font-size: 13px; }

/* Cookie-Hinweis */
.cookie { position: fixed; left: 12px; right: 88px; bottom: 16px; z-index: 60; max-width: 560px; padding: 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.5); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cookie .btn { min-height: 42px; padding: 0 18px; }

@media (max-width: 420px) {
  .top-inner { gap: 6px; min-height: 58px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .voice-btn span { display: none; }
  .voice-btn { padding: 0 8px; }
  .langs a { padding: 5px; font-size: 12px; }
  .option { font-size: 14px; padding: 10px 8px; }
}

@media (min-width: 640px) {
  .condos-grid { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .final-actions { grid-template-columns: 1fr 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 48px; padding-top: 60px; padding-bottom: 72px; }
  .brand { font-size: 20px; }
  .brand img { width: 40px; height: 40px; }
  .card { padding: 26px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .condos-grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
  .wa-float { width: auto; height: 58px; padding: 0 20px 0 16px; right: 24px; bottom: 24px; }
  .wa-float span { display: inline; }
  .wa-float svg { width: 28px; height: 28px; }
  .foot { padding-bottom: 36px; }
  .cookie { left: 24px; right: auto; bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .option, .slides, .slider, .progress span { transition: none; }
  .wa-float::after { animation: none; }
}

/* Verstecktes Mini-CRM (/crm) */
.crm-body { background: #f1f5f9; min-height: 100vh; }
.crm-login-wrap { display: grid; place-items: center; min-height: 92vh; }
.crm-login { width: 100%; max-width: 390px; display: grid; gap: 12px; text-align: center; justify-items: center; }
.crm-login h1 { font-size: 22px; margin: 6px 0 0; }
.crm-login p { margin: 0; }
.crm-lang-switch { display: flex; gap: 8px; margin-top: 4px; }
.crm-lang-switch a { padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.crm-lang-switch a[aria-current="true"] { background: var(--sky); color: var(--navy); }
.crm-logout { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.crm-main { padding-top: 20px; padding-bottom: 60px; display: grid; gap: 16px; }
.crm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.crm-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.crm-kpi strong { font-size: 22px; color: var(--navy); line-height: 1.1; }
.crm-kpi span { font-size: 12px; color: var(--muted); font-weight: 700; }
.crm-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.crm-tab span { padding: 1px 7px; border-radius: 999px; background: #e2e8f0; font-size: 12px; }
.crm-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.crm-tab.is-active span { background: rgba(255, 255, 255, 0.22); color: #fff; }
.crm-cheatsheet { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; }
.crm-cheatsheet summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.crm-cheatsheet ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.crm-list { display: grid; gap: 14px; }
.crm-card { background: #fff; border: 1.5px solid var(--line); border-left: 6px solid var(--blue); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.crm-card.status-gewonnen { border-left-color: #16a34a; }
.crm-card.status-verloren { border-left-color: #94a3b8; opacity: 0.82; }
.crm-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.crm-id { font-weight: 800; color: var(--muted); margin-right: 6px; }
.crm-intent { padding: 3px 8px; border-radius: 6px; font-weight: 800; font-size: 11.5px; background: var(--sky); color: var(--navy); }
.crm-intent.is-buy { background: #fef3c7; color: #92400e; }
.crm-badge { padding: 3px 8px; border-radius: 6px; background: #f1f5f9; font-weight: 700; margin-left: 4px; }
.crm-partner { padding: 3px 8px; border-radius: 6px; background: #dcfce7; color: #166534; font-weight: 700; margin-left: 4px; }
.crm-time { color: var(--muted); font-weight: 600; }
.crm-name { font-size: 20px; margin: 0; }
.crm-name small { font-size: 13px; color: var(--muted); font-weight: 600; }
.crm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-actions .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.crm-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.crm-ref { padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13px; }
.crm-ref p { margin: 4px 0 0; }
.crm-edit { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid #eef2f7; }
.crm-edit select, .crm-edit input { height: 42px; font-size: 14px; }
.crm-edit .btn { min-height: 42px; }
.crm-empty { text-align: center; padding: 32px; color: var(--muted); background: #fff; border-radius: 16px; }
@media (min-width: 700px) {
  .crm-edit { grid-template-columns: 180px 1fr auto; align-items: center; }
}

/* Druckfertige A4-Anschreiben an Condo-Verwaltungen (/crm/condos/letters) – exakt 1 DIN-A4-Seite (210 × 297 mm) */
.letter-doc { background: #e2e8f0; margin: 0; font-family: var(--font); color: var(--ink); }
.letter-toolbar {
  position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.letter-toolbar > div { display: flex; gap: 8px; }
.letter-page {
  width: 210mm; height: 297mm; margin: 14px auto; padding: 12mm 15mm; background: #fff; box-sizing: border-box;
  box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.35); display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; page-break-after: always; break-after: page;
}
.letter-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 9px; border-bottom: 2px solid var(--navy); }
.letter-brand-col { display: grid; gap: 4px; }
.letter-sender { font-size: 11px; line-height: 1.38; color: var(--muted); }
.letter-profile { display: flex; align-items: center; gap: 10px; }
.letter-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue); flex: none; }
.letter-contact { text-align: right; font-size: 11.5px; line-height: 1.38; color: var(--muted); }
.letter-meta { display: flex; justify-content: space-between; gap: 14px; margin: 9px 0; font-size: 12px; line-height: 1.4; }
.letter-to { background: #f8fafc; border-left: 4px solid var(--blue); padding: 8px 12px; border-radius: 6px; flex: 1; }
.letter-label { font-size: 10.5px; font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 2px; }
.letter-date { text-align: right; color: var(--muted); white-space: nowrap; font-size: 11.5px; }
.letter-subject { font-size: 13.8px; line-height: 1.32; margin: 4px 0 8px; padding: 7px 11px; background: var(--sky); color: var(--navy); border-radius: 7px; }
.letter-subject small { font-size: 11.8px; font-weight: 600; color: var(--muted); }
.letter-body { font-size: 12.2px; line-height: 1.48; }
.letter-body p { margin: 0 0 6px; }
.letter-body ul { margin: 4px 0 8px; padding-left: 18px; }
.letter-body li { margin-bottom: 3px; }
.letter-sep { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }
.letter-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 11.5px; }
.letter-sign p { margin: 0; line-height: 1.35; }
.letter-sign-box { width: 210px; height: 38px; margin: 4px 0; border-bottom: 1.5px solid var(--ink); }
.letter-card-box { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); line-height: 1.4; font-size: 11.2px; }
.letter-card-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--blue); flex: none; }
@page { size: A4 portrait; margin: 0; }
@media print {
  .no-print { display: none !important; }
  .letter-doc { background: #fff; }
  .letter-page { margin: 0; box-shadow: none; width: 210mm; height: 297mm; }
}

/* HTML-E-Mail-Vorschau (/crm/condos/email-preview) */
.em-wrap { padding: 28px 14px; background: #e2e8f0; }
.em-card { max-width: 660px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 36px -18px rgba(15, 23, 42, 0.35); border-collapse: collapse; }
.em-head { background: linear-gradient(135deg, #071d49, #0b3b8c); padding: 22px 26px; color: #fff; }
.em-brand { display: flex; align-items: center; gap: 10px; }
.em-brand img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.em-brand-title { font-size: 20px; font-weight: 800; color: #fff; }
.em-sub1 { font-size: 13.5px; color: #e2e8f0; margin-top: 6px; font-weight: 600; }
.em-sub2 { font-size: 12px; color: #cbd5e1; margin-top: 2px; }
.em-head-right { text-align: right; width: 88px; }
.em-avatar { width: 72px; height: 72px; border-radius: 50%; border: 2.5px solid #fff; object-fit: cover; margin-left: auto; }
.em-body { padding: 24px 26px; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.em-body p { margin: 0 0 12px; }
.em-body ul { margin: 0 0 14px; padding-left: 20px; }
.em-body li { margin-bottom: 5px; }
.em-to { background: #f8fafc; border-left: 4px solid var(--blue); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13.5px; }
.em-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.em-sig { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.8px; line-height: 1.5; color: var(--muted); }
.em-sig strong { color: var(--ink); }
.em-sig-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--blue); flex: none; }

/* Serienbrief v2 (edles Design) */
.lt { padding: 0; font-family: "Sarabun", var(--font); color: #0f172a; justify-content: flex-start; }
.lt-band { display: flex; justify-content: space-between; align-items: center; padding: 9mm 15mm 7mm; background: linear-gradient(120deg, #071d49, #0b3b8c); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lt-brand { display: flex; align-items: center; gap: 12px; }
.lt-brand img { border-radius: 10px; }
.lt-brand-name { font-size: 25px; line-height: 1; }
.lt-brand-sub { font-size: 11px; color: #cbd5e1; margin-top: 4px; }
.lt-band-contact { text-align: right; font-size: 11px; line-height: 1.6; color: #e2e8f0; }
.lt-band-contact b { color: #fff; font-size: 13px; }
.lt-gold { height: 3px; background: linear-gradient(90deg, #c9a24a, #f1d48a, #c9a24a); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lt-inner { padding: 9mm 16mm 0; flex: 1; display: flex; flex-direction: column; }
.lt-top { display: flex; justify-content: space-between; gap: 18px; }
.lt-label { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #b08a33; }
.lt-to-main { font-size: 13px; font-weight: 700; margin-top: 3px; line-height: 1.3; }
.lt-to-main span { font-weight: 400; color: #64748b; font-size: 11.5px; }
.lt-to-bldg { font-size: 17px; font-weight: 800; color: #0b3b8c; margin-top: 5px; }
.lt-to-addr { font-size: 11.5px; color: #475569; max-width: 105mm; line-height: 1.4; }
.lt-from { text-align: right; }
.lt-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px #c9a24a; }
.lt-date { font-size: 11.5px; color: #475569; margin-top: 6px; }
.lt-subject { margin: 12mm 0 7mm; font-size: 19px; line-height: 1.3; color: #071d49; border-left: 4px solid #c9a24a; padding: 0 0 0 12px; background: none; }
.lt-subject small { display: block; font-size: 12.5px; font-weight: 400; color: #64748b; margin-top: 2px; }
.lt-body { font-size: 14.2px; line-height: 1.85; }
.lt-body p { margin: 0 0 9px; }
.lt-en { color: #334155; font-size: 12.6px; font-style: italic; }
.lt-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 7mm 0 8mm; }
.lt-points div { background: #f8fafc; border: 1px solid #e2e8f0; border-top: 3px solid #0b3b8c; border-radius: 8px; padding: 8px 10px; font-size: 12.4px; line-height: 1.35; }
.lt-points span { display: block; font-size: 10.8px; color: #64748b; }
.lt-foot { margin-top: auto; padding-bottom: 7mm; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.lt-sign-l { font-size: 12.5px; color: #475569; }
.lt-sign-area { position: relative; width: 78mm; height: 30mm; }
.lt-sig { position: absolute; left: 0; bottom: 4mm; width: 62mm; z-index: 2; }
.lt-seal { position: absolute; right: 0; top: 0; width: 28mm; height: 28mm; opacity: 0.8; transform: rotate(-12deg); }
.lt-sign-name { font-size: 13.5px; font-weight: 700; border-top: 1px solid #94a3b8; padding-top: 3px; width: 70mm; }
.lt-sign-en { font-size: 11px; color: #64748b; }
.lt-card { background: #071d49; color: #e2e8f0; border-radius: 12px; padding: 11px 15px; font-size: 11.8px; line-height: 1.6; min-width: 62mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lt-card b { color: #fff; font-size: 14px; }
.lt-card-t { color: #f1d48a; font-weight: 800; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.lt-bottom { padding: 3.5mm 16mm; font-size: 9.5px; color: #64748b; border-top: 1px solid #e2e8f0; text-align: center; }

/* Agentin Fah im Hero */
.agent { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; background: rgba(255,255,255,0.92); border-radius: 14px; max-width: 340px; box-shadow: 0 8px 24px -16px rgba(7,29,73,0.6); }
.agent img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #c9a24a; }
.agent div { display: grid; line-height: 1.3; }
.agent strong { color: var(--navy); font-size: 16px; }
.agent span { color: var(--muted); font-size: 12.5px; }
.agent a { color: #16a34a; font-weight: 700; font-size: 13px; text-decoration: none; }

/* Condo-Liste druckbar (/crm/condos/list) */
.cl-doc { background: #fff; font-family: "Sarabun", var(--font); color: #0f172a; }
.cl-main { max-width: 1100px; margin: 0 auto; padding: 20px; }
.cl-main h1 { color: #071d49; margin: 8px 0 4px; }
.cl-sum { color: #475569; margin: 0 0 16px; }
.cl-zone { margin: 22px 0 6px; color: #0b3b8c; font-size: 18px; border-bottom: 2px solid #c9a24a; padding-bottom: 4px; }
.cl-zone span { font-size: 13px; color: #64748b; font-weight: 400; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cl-table th { background: #071d49; color: #fff; text-align: left; padding: 6px 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cl-table td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.cl-table td small { display: block; color: #64748b; font-size: 11px; }
.cl-table tr:nth-child(even) td { background: #f8fafc; }
@media print { .cl-main { padding: 0 10mm; } .cl-zone { break-after: avoid; } .cl-table tr { break-inside: avoid; } }

.hero-wa { display: inline-flex; margin: 14px 0 6px; padding: 14px 22px; font-size: 17px; border-radius: 14px; box-shadow: 0 10px 24px -12px rgba(22,163,74,0.8); }

.quick-cb { display: grid; gap: 8px; margin: 10px 0 14px; padding: 14px; background: rgba(255,255,255,0.95); border-radius: 14px; max-width: 520px; box-shadow: 0 10px 28px -18px rgba(7,29,73,0.7); }
.quick-cb strong { color: var(--navy); font-size: 16px; }
.quick-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.quick-row input { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.quick-cb small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 520px) { .quick-row { grid-template-columns: 1fr; } }

.fah-video { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; height: auto; margin-top: 16px; border-radius: 16px; object-fit: cover; box-shadow: 0 14px 32px -16px rgba(7,29,73,0.7); background: #071d49; }
.wa-fallback { margin: 2px 0 10px; font-size: 13px; opacity: 0.85; }
.wa-fallback .linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.hero-contact .hero-wa { margin: 0; }
.btn-call { background: #0b5cff; color: #fff; }
.btn-line { background: #06c755; color: #fff; }
.btn-ai { width: 100%; margin-top: 8px; background: #111827; color: #fff; }
