/* SKG Real Estate Management – Website */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #132235;
  --slate: #22364d;
  --muted: #5d6876;
  --line: #dde2e8;
  --paper: #ffffff;
  --stone: #f2f4f6;
  --brick: #2d6f80;
  --brick-soft: #e5eff1;
  --sage: #8796a6;
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brick); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.logo b { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.logo i { display: block; width: 1px; height: 30px; background: var(--ink); opacity: .35; }
.logo span { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.menu { display: flex; gap: 28px; align-items: center; }
.menu a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.menu a:hover { color: var(--brick); }
.menu .login { border: 1px solid var(--ink); padding: 7px 16px; border-radius: 99px; }
.menu .login:hover { background: var(--ink); color: #fff; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 12.5px; letter-spacing: .08em; }
.menu .lang-switch a { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.menu .lang-switch a + a { border-left: 1px solid var(--line); border-radius: 0 6px 6px 0; }
.menu .lang-switch a[aria-current] { color: var(--ink); }
.menu .lang-switch a:hover { color: var(--brick); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.hero h1 { max-width: 13em; }
.hero h1 em { white-space: nowrap; }
.eyebrow { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--brick); margin: 0 0 18px; }
.hero .eyebrow { color: #8ec3cf; }
.head .eyebrow { color: var(--brick); font-size: 12.5px; margin: 0 0 18px; }
h1, h2, h3, .stat b, .num, .tier b, .comp b { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 5.6vw, 72px); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: #8ec3cf; }
h2 em { color: var(--brick); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 34em; margin: 26px 0 36px; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 99px; font-weight: 500; font-size: 15px; text-decoration: none; transition: .15s; }
.btn.solid { background: var(--brick); color: #fff; }
.btn.solid:hover { background: #235967; }
.btn.ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn.ghost:hover { border-color: #fff; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
section.alt { background: var(--stone); }
section.dark { background: var(--slate); color: #fff; }
.head { max-width: 760px; margin-bottom: 56px; }
h2 { font-size: clamp(34px, 4vw, 50px); }
.head p { color: var(--muted); font-size: 18.5px; margin: 18px 0 0; }
.dark .head p, .dark p { color: rgba(255,255,255,.75); }
h3 { font-size: 26px; margin-bottom: 10px; }
.num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--brick); letter-spacing: .1em; }

.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.alt .card { border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card li { margin: 4px 0; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 64px 0; }
.stat { padding: 30px 24px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.stat small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--sage); }

/* Charts */
.chart { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 20px; }
.chart h4 { margin: 0; font-size: 16px; font-weight: 600; }
.chart .sub { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.chart .src { margin-top: 10px; font-size: 12px; color: var(--sage); }
.chart svg text { font-family: var(--sans); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }

/* Säulen */
.pillar { border-top: 2px solid var(--ink); padding-top: 22px; }
.pillar p { color: var(--muted); font-size: 16px; margin: 0; }
.pillar ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* Mittelfeld */
.tiers { display: grid; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 26px 32px; background: var(--paper); align-items: center; }
.tier + .tier { border-top: 1px solid var(--line); }
.tier b { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.tier p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tier strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.tier.focus { background: var(--ink); color: #fff; }
.tier.focus p { color: rgba(255,255,255,.75); }
.tier.focus strong { color: #fff; }
.tier.focus .tag { display: inline-block; margin-left: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--brick); padding: 3px 9px; border-radius: 99px; vertical-align: middle; font-family: var(--sans); }

/* Teilstrategien */
.strat { display: flex; flex-direction: column; }
.strat .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); font-weight: 600; }
.strat h3 { margin-top: 8px; }
.strat dl { margin: 22px 0 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.strat dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.strat dt { color: var(--muted); }
.strat dd { margin: 0; font-weight: 500; }
.strat .focus { margin-top: auto; padding-top: 20px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brick); }

/* CapEx-Prozess */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 48px; counter-reset: s; }
.step { padding: 0 24px 0 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 8px 0 6px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.case .verdict { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--brick-soft); color: var(--brick); }
.case .verdict.no { background: var(--stone); color: var(--slate); }
.case .kind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case h3 { font-size: 23px; margin-top: 6px; }

/* Plattform */
.layer { border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 30px; }
.layer h3 { color: #fff; }
.layer ul { list-style: none; padding: 0; margin: 16px 0 0; }
.layer li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: rgba(255,255,255,.8); }
.kpis { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.kpis span { font-size: 13.5px; border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 99px; color: rgba(255,255,255,.85); }
.kpis-title { margin-top: 48px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #8ec3cf; font-weight: 600; }

/* Referenzen */
.ref .meta { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.rent { margin: 22px 0 6px; }
.rent .row { display: grid; grid-template-columns: 96px 1fr 78px; gap: 12px; align-items: center; font-size: 13.5px; margin: 8px 0; }
.rent .bar { height: 12px; border-radius: 6px; background: var(--line); }
.rent .bar i { display: block; height: 100%; border-radius: 6px; background: var(--slate); }
.rent .row.new .bar i { background: var(--brick); }
.rent .row b { text-align: right; font-weight: 600; }
.ref ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* ESG */
.eclass { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 8px 0 12px; }
.eclass div { padding: 12px 0; text-align: center; font-weight: 600; font-size: 14px; color: #fff; border-radius: 4px; }
.eclass-note { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; font-size: 12px; color: var(--muted); }

/* Finanzierung */
.terms { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.terms td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms td:first-child { color: var(--muted); width: 44%; padding-right: 20px; }
.terms td:last-child { font-weight: 500; }

/* Team */
.comp b { font-family: var(--serif); font-size: 21px; display: block; margin-bottom: 6px; font-weight: 600; }
.comp p { color: var(--muted); font-size: 15px; margin: 0; }

/* Kontakt */
.contact { background: var(--ink); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.contact p { color: rgba(255,255,255,.75); }
.contact .box { border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 32px; }
.contact .box a { color: #fff; }
.contact .box div { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact .box div:last-child { border: 0; }
.contact .box small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8ec3cf; }

/* Footer */
footer { background: #0d1826; color: rgba(255,255,255,.6); font-size: 13.5px; padding: 40px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,.8); text-decoration: none; margin-right: 22px; }
footer a:hover { color: #fff; }
footer .disc { flex-basis: 100%; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.45); margin-top: 18px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

/* Rechtstexte */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 48px; margin-bottom: 28px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--slate); }
.todo { background: #fff4cc; padding: 1px 6px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .menu { gap: 16px; }
  .menu a { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; width: 100%; }
  .menu .login { width: auto; margin-top: 8px; padding: 7px 16px; }
  .menu .lang-switch { margin-top: 6px; }
  .menu .lang-switch a { width: auto; padding: 6px 10px; }
  .burger { display: block; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .tier { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 0 0 0 18px; border-left: 2px solid var(--line); }
  .stat b { font-size: 40px; }
  .card, .chart { padding: 24px; }
  .eclass div { font-size: 12px; padding: 10px 0; }
  .eclass-note { font-size: 10.5px; }
}

/* Login-Auswahl */
.logins { margin-top: 40px; }
.login-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.login-tile:hover { border-color: var(--ink); box-shadow: 0 6px 24px rgba(19,34,53,.08); }
.login-tile .kind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); font-weight: 600; }
.login-tile h3 { font-size: 34px; margin: 8px 0 10px; }
.login-tile p { flex: 1; }
.login-tile .go { margin-top: 22px; font-weight: 600; font-size: 15px; color: var(--ink); }

/* Unterseiten */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 64px; }
.page-hero .eyebrow { color: #8ec3cf; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.page-hero p { color: rgba(255,255,255,.75); font-size: 19px; max-width: 40em; margin: 18px 0 0; }
.menu a.active { color: var(--brick); }
.teaser { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.teaser:hover { border-color: var(--ink); box-shadow: 0 6px 24px rgba(19,34,53,.08); }
.teaser h3 { font-size: 34px; margin-top: 6px; }
.teaser p { flex: 1; }
.teaser .go { margin-top: 22px; font-weight: 600; font-size: 15px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--slate); }
.kind-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); font-weight: 600; }
.cta { background: var(--stone); padding: 72px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3vw, 38px); max-width: 22em; }

/* Karte Fokusregionen */
.fokus-map { margin-top: 64px; align-items: center; }
.fokus-map svg { width: 100%; max-width: 440px; display: block; margin: 0 auto; }
.fokus-map ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.fokus-map li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.fokus-map li b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* Stadtbilder und -videos: entsättigt, mit Dunkelblau eingefärbt */
.hero.has-media, .page-hero.has-media, .contact.has-media, .band { position: relative; isolation: isolate; overflow: hidden; }
.hero-media, .band-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.08) brightness(.95); }
.hero.has-media { min-height: min(88vh, 900px); display: flex; align-items: center; }
.page-hero.has-media { padding: 120px 0 104px; }
.page-hero.has-media::before, .contact.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19,34,53,.92) 0%, rgba(19,34,53,.74) 60%, rgba(19,34,53,.55) 100%); }
.hero.has-media > .wrap { width: 100%; }
.hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19,34,53,.92) 0%, rgba(19,34,53,.72) 55%, rgba(19,34,53,.5) 100%); }
.band { min-height: 62vh; display: flex; align-items: center; color: #fff; text-align: center; padding: 120px 0; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(19,34,53,.58), rgba(19,34,53,.78)); }
.band .wrap { width: 100%; }
.band .eyebrow { color: #8ec3cf; }
.band h2 { color: #fff; font-size: clamp(34px, 5vw, 64px); max-width: 15em; margin: 0 auto; }
.band h2 em { color: #8ec3cf; }

/* Teilstrategien: Icon + Name als visueller Kern, immer Reihenfolge Basic Living, Manage-to-Prime, Effortless Living */
.strat-icon { width: 52px; height: 52px; color: var(--brick); margin-bottom: 18px; flex: none; }
.strat-name { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.05; color: var(--ink); }
.strat .strat-name, .ref .strat-name { margin: 6px 0 14px; }
.ref .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); font-weight: 600; }
.ref .meta { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 16px; }
.ref .idea { background: var(--brick-soft); color: var(--ink); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-size: 15.5px; }
.strat-list { padding: 8px 32px; }
.strat-list a { display: flex; gap: 20px; align-items: center; padding: 22px 0; text-decoration: none; color: var(--ink); }
.strat-list a + a { border-top: 1px solid var(--line); }
.strat-list .strat-icon { margin: 0; width: 46px; height: 46px; }
.strat-list .strat-name { display: block; font-size: 30px; }
.strat-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.strat-list a:hover .strat-name { color: var(--brick); }

/* Cookie-Hinweis (unten links, Chat-Blase bleibt frei) */
.cookie-note { position: fixed; left: 24px; bottom: 24px; z-index: 55; max-width: 460px; background: var(--ink); color: #fff; border: 1px solid rgba(142,195,207,.4); border-radius: 14px; padding: 18px 20px; box-shadow: 0 12px 36px rgba(19,34,53,.28); display: flex; gap: 16px; align-items: center; font-size: 14px; line-height: 1.5; }
.cookie-note p { margin: 0; color: rgba(255,255,255,.85); }
.cookie-note a { color: #8ec3cf; }
.cookie-note button { flex: none; border: 0; border-radius: 999px; background: var(--brick); color: #fff; font: inherit; font-weight: 600; padding: 9px 16px; cursor: pointer; }
.cookie-note button:hover { background: #8ec3cf; color: var(--ink); }
@media (max-width: 760px) { .cookie-note { left: 16px; right: 88px; bottom: 16px; max-width: none; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; font-size: 13px; } }

/* Chat-Sprechblase */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 60; font-size: 15px; }
.chat-toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brick); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(19,34,53,.25); transition: background .15s, transform .15s; }
.chat-toggle:hover { background: var(--slate); transform: translateY(-2px); }
.chat-toggle svg { width: 26px; height: 26px; }
.chat.is-open .chat-toggle { display: none; }
.chat-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 48px)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 48px rgba(19,34,53,.22); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--ink); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat-head b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.chat-head span { font-size: 12.5px; color: rgba(255,255,255,.7); }
.chat-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--stone); }
.chat-msg { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.chat-msg.bot { background: #fff; color: var(--ink); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.me { background: var(--brick); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-contact { padding: 14px 18px 4px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.chat-contact[hidden], .chat-input[hidden] { display: none; }
.chat input, .chat textarea { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--ink); width: 100%; }
.chat input:focus, .chat textarea:focus { outline: 2px solid var(--brick-soft); border-color: var(--brick); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.chat-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.chat-send { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; padding: 10px; cursor: pointer; }
.chat-send:disabled { opacity: .6; cursor: wait; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input textarea { resize: none; max-height: 120px; }
.chat-input button { flex: none; width: 42px; border: 0; border-radius: 10px; background: var(--brick); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-input button svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .chat { right: 16px; bottom: 16px; } }
