/* Kerber Bad und Sanitär. Palette: Anthrazit, Kalkstein, Terrakotta als einziger Akzent.
   Radien: Flächen 14px, Bedienelemente Pille. Schrift: Cormorant Garamond (Display), Satoshi (Text). */

:root {
  --ink: #1b1f21;
  --ink-2: #2a2f31;
  --paper: #f1ede7;
  --paper-2: #e6e0d6;
  --line: #d4ccbf;
  --text: #22272a;
  --muted: #5d6265;
  --accent: #a94b2a;
  --accent-ink: #fff8f2;
  --accent-soft: #f3dfd3;
  --on-dark: #f1ede7;
  --on-dark-muted: #b9b4ac;
  --radius: 14px;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151819;
    --paper-2: #1d2123;
    --line: #33393b;
    --text: #ece7df;
    --muted: #a8a49c;
    --accent: #cf6a44;
    --accent-ink: #1b1210;
    --accent-soft: #3a2219;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151819; --paper-2: #1d2123; --line: #33393b; --text: #ece7df; --muted: #a8a49c;
  --accent: #cf6a44; --accent-ink: #1b1210; --accent-soft: #3a2219; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, blockquote { font-variant-numeric: lining-nums; }
.day-num, .fact-num, .tl-days { font-variant-numeric: lining-nums tabular-nums !important; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font: 600 clamp(2.4rem, 5.4vw, 4.6rem)/1 var(--display); letter-spacing: -0.01em; max-width: 16ch; text-wrap: balance; }
h3 { font: 700 1.125rem/1.3 var(--sans); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 52ch; margin: 1rem 0 0; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(1560px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(.98); }
.btn i { font-size: 1.2em; }
.btn-lg { min-height: 54px; padding: 1rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, black); }
.btn-ghost { background: rgba(241, 237, 231, .1); color: var(--on-dark); border-color: rgba(241, 237, 231, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(241, 237, 231, .2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Navigation: hell und ruhig wie im Referenz-Reel, das Bild darunter hat die Bühne */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--gutter);
  background: var(--paper); color: var(--text); transition: box-shadow .4s;
}
.nav.is-solid { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(14, 16, 17, .06); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand > span:last-child { display: grid; font: 700 1.05rem/1.05 var(--sans); letter-spacing: .01em; }
.brand small { font: 500 .72rem/1.2 var(--sans); opacity: .7; letter-spacing: .04em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 600 1.35rem/1 var(--display);
}
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { position: relative; text-decoration: none; font-size: .93rem; color: var(--muted); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 500; font-size: .93rem; }
@media (max-width: 1080px) { .nav-links { display: none; } .nav-right { margin-left: auto; } }
@media (max-width: 620px) { .nav-phone { display: none; } .nav .btn { padding: .6rem 1rem; font-size: .85rem; min-height: 40px; } }

/* Hero: feste Kamera, das Bad entsteht Bauteil für Bauteil (Canvas, gesteuert vom Scroll) */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero-frame { position: absolute; inset: var(--nav-h) 0 0 0; overflow: hidden; background: #2b2f2c; }
.hero-fallback, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { object-fit: cover; }
.hero-canvas { display: none; }
.hero.is-live .hero-canvas { display: block; }
.hero.is-live .hero-fallback { visibility: hidden; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 16, 17, .62) 0%, rgba(14, 16, 17, .34) 30%, rgba(14, 16, 17, 0) 52%),
    linear-gradient(0deg, rgba(14, 16, 17, .32) 0%, rgba(14, 16, 17, 0) 30%);
}
.hero-copy {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--nav-h) + (100% - var(--nav-h)) / 2);
  transform: translateY(-50%); width: min(600px, 100% - 2 * var(--gutter)); display: grid;
}
.hero-text { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; text-shadow: 0 2px 28px rgba(10, 12, 13, .35); }
.hero-text.is-first { opacity: 1; visibility: visible; }
.eyebrow { margin: 0 0 1.1rem; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 237, 231, .8); }
.h-display { margin: 0; font: 600 clamp(2.8rem, 6vw, 5.8rem)/.98 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.h-cap { margin: 0; font: 600 clamp(2.2rem, 4.2vw, 4rem)/1 var(--display); letter-spacing: -0.01em; text-wrap: balance; max-width: 13ch; }
.hero-sub { margin: 1rem 0 0; max-width: 40ch; font-size: clamp(1rem, 1.25vw, 1.12rem); color: rgba(241, 237, 231, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; text-shadow: none; }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(0deg, rgba(14, 16, 17, .9) 0%, rgba(14, 16, 17, .55) 42%, rgba(14, 16, 17, 0) 72%); }
  .hero-copy { top: auto; bottom: 96px; transform: none; }   /* Platz für den WhatsApp-Knopf */
  .hero-text { align-self: end; }
  .hero-cta .btn { width: 100%; }
}

/* Team: Text, Kennzahlen und Bild wie im Referenz-Reel */
.team-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.team .lead { max-width: 50ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.fact-num { display: block; font: 600 clamp(2.8rem, 4.6vw, 4.2rem)/.95 var(--display); color: var(--accent); }
.fact p { margin: .55rem 0 0; color: var(--muted); font-size: .93rem; max-width: 22ch; }
.team-pic { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.team-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.team-pic.in img { transform: none; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-pic { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } .fact:last-child { grid-column: 1 / -1; } }

/* Festpreis-Band in Terrakotta */
.preis { background: var(--accent); color: var(--accent-ink); padding: clamp(72px, 10vw, 128px) 0; }
.preis-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.preis h2 { max-width: 13ch; }
.preis-text p { margin: 0 0 1.6rem; font-size: 1.15rem; max-width: 42ch; opacity: .92; }
.btn-light { background: var(--accent-ink); color: var(--accent); }
.btn-light:hover { background: #fff; }
@media (max-width: 900px) { .preis-inner { grid-template-columns: 1fr; } }

/* Vorher-nachher-Regler */
.vergleich .lead { margin-bottom: clamp(32px, 5vw, 56px); }
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); user-select: none; touch-action: pan-y; }
.compare > img, .compare-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: var(--paper);
  pointer-events: none;
}
.compare-handle i {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); color: var(--text); font-size: 1.4rem; box-shadow: 0 10px 30px rgba(14, 16, 17, .35);
  transition: transform .4s var(--ease);
}
.compare:hover .compare-handle i { transform: scale(1.08); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible + .compare-handle, .compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.compare-tag {
  position: absolute; top: 18px; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(14, 16, 17, .55); color: var(--on-dark); font-size: .85rem; backdrop-filter: blur(6px); pointer-events: none;
}
.compare-tag.left { left: 18px; }
.compare-tag.right { right: 18px; }
@media (max-width: 760px) { .compare { aspect-ratio: 4 / 5; } .compare > img, .compare-before img { object-position: 42% 50%; } }

/* Leistungen: Zeilen mit Bildvorschau */
.leistungen { background: var(--paper-2); }
.rows { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--line); cursor: default;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font: 600 clamp(2rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -0.01em; transition: transform .6s var(--ease), color .3s; }
.row p { margin: 0; color: var(--muted); max-width: 46ch; }
.row img { display: none; }
@media (hover: hover) and (min-width: 901px) {
  .row:hover h3 { transform: translateX(18px); color: var(--accent); }
}
.row-preview {
  position: fixed; top: 0; left: 0; z-index: 15; width: 300px; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; pointer-events: none; opacity: 0; scale: .85; box-shadow: 0 30px 60px rgba(14, 16, 17, .3);
}
.row-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: .8rem; }
  .row img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-top: .6rem; }
  .row-preview { display: none; }
}

/* Ablauf: Zeitleiste über 15 Tage */
.ablauf { padding: clamp(80px, 12vw, 160px) 0; background: var(--ink); color: var(--on-dark); }
.ablauf .lead { color: var(--on-dark-muted); }
.ablauf { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
.timeline { margin-top: clamp(48px, 7vw, 88px); }
.tl-bar { position: relative; height: 3px; background: rgba(241, 237, 231, .14); border-radius: 3px; overflow: hidden; }
.tl-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.ablauf.static .tl-fill { transform: scaleX(1); }
.tl-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.tl-step { flex: var(--w) 1 0; min-width: 170px; padding: 1.6rem 1.2rem 0 0; border-left: 1px solid rgba(241, 237, 231, .14); padding-left: 1rem; opacity: .4; transition: opacity .5s; }
.tl-step:first-child { border-left: 0; padding-left: 0; }
.tl-step.is-active, .ablauf.static .tl-step { opacity: 1; }
.tl-days { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.tl-step h3 { font: 600 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--display); }
.tl-step p { margin: .6rem 0 0; font-size: .95rem; color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .tl-bar { display: none; }
  .tl-steps { flex-direction: column; gap: 1.8rem; }
  .tl-step { padding: 0 0 0 1.2rem; border-left: 2px solid var(--accent); opacity: 1; }
  .tl-step:first-child { border-left: 2px solid var(--accent); padding-left: 1.2rem; }
}

/* Wasser-Band mit Video */
.band { position: relative; height: clamp(440px, 80vh, 820px); overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.band-poster, .band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-poster { filter: brightness(.45); }
.band video { opacity: 0; transition: opacity 1.2s; }
.band video.is-ready { opacity: .8; }
.band-text {
  position: relative; z-index: 2; margin: 0; padding: 0 var(--gutter); text-align: center; color: var(--on-dark);
  font: 600 clamp(2.2rem, 5.6vw, 5rem)/1.05 var(--display); text-wrap: balance;
}
.band-text em { font-style: italic; font-weight: 500; color: #e4a07f; }

/* Stimme */
.stimme-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
blockquote { margin: 0; }
blockquote p { margin: 0; font: 500 clamp(1.9rem, 3.4vw, 3rem)/1.15 var(--display); text-wrap: pretty; }
blockquote footer { margin-top: 1.6rem; display: grid; }
blockquote footer span { color: var(--muted); font-size: .95rem; }
.stimme-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stimme-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.stimme-pics img:last-child { translate: 0 36px; }
@media (max-width: 900px) { .stimme-grid { grid-template-columns: 1fr; } .stimme-pics img:last-child { translate: 0 0; } }

/* Kontakt */
.kontakt { background: var(--ink-2); color: var(--on-dark); }
.kontakt .lead { color: var(--on-dark-muted); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.wege { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: .6rem; }
.wege a, .wege button, .weg-static {
  display: flex; gap: 1rem; align-items: center; width: 100%; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1px solid rgba(241, 237, 231, .14); background: transparent; color: inherit; text-align: left;
  font: inherit; text-decoration: none; cursor: pointer; transition: background-color .3s, border-color .3s;
}
.weg-static { cursor: default; }
.wege a:hover, .wege button:hover { background: rgba(241, 237, 231, .06); border-color: rgba(241, 237, 231, .3); }
.wege i { font-size: 1.5rem; color: #e4a07f; flex: none; }
.wege a > span, .wege button > span, .weg-static > span { display: grid; }
.wege small { color: var(--on-dark-muted); font-size: .88rem; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 80px rgba(8, 10, 11, .35); }
.form-card h3 { font: 600 2.2rem/1 var(--display); margin-bottom: 1.4rem; }
.field { display: grid; gap: .4rem; margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label, legend, .label { font-weight: 500; font-size: .93rem; padding: 0; }
.label small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: .75rem .95rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.is-bad { border-color: #b3261e !important; }
.err { margin: 0; min-height: 0; color: #b3261e; font-size: .85rem; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 400; font-size: .92rem; cursor: pointer; transition: all .25s; }
.chips input:checked + span { background: var(--text); color: var(--paper); border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop {
  position: relative; display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: 10px;
  border: 1px dashed var(--line); color: var(--muted); font-weight: 400; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop i { font-size: 1.5rem; color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin: .4rem 0 .6rem; }
.consent input { margin-top: .25rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form-card .btn-block { margin-top: .8rem; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.form-done { text-align: left; padding: 1rem 0; }
.form-done i { font-size: 2.6rem; color: var(--accent); }
.form-done p { color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer p { color: var(--on-dark-muted); margin: 1rem 0 0; font-size: .95rem; }
.footer nav { display: grid; gap: .5rem; align-content: start; }
.footer nav a { text-decoration: none; color: var(--on-dark-muted); }
.footer nav a:hover { color: var(--on-dark); }
.demo-note { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid rgba(241, 237, 231, .12); font-size: .85rem !important; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* WhatsApp-Attrappe */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: #25d366; color: #fff; font-size: 2rem; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .4s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:not(.seen)::after { content: "1"; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); font: 700 .72rem/20px var(--sans); text-align: center; }
.wa {
  position: fixed; right: 20px; bottom: 92px; z-index: 30; width: min(370px, 100vw - 40px); height: min(540px, 100dvh - 130px);
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #efeae2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); color: #111b21; animation: waIn .45s var(--ease);
}
.wa[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.wa-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: #075e54; color: #fff; }
.wa-head div { display: grid; flex: 1; line-height: 1.25; }
.wa-head small { opacity: .8; font-size: .78rem; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 1.3rem/1 var(--display); }
.wa-close { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; padding: .3rem; }
.wa-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.wa-msg { max-width: 82%; padding: .5rem .7rem .35rem; border-radius: 10px; font-size: .93rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-msg p { margin: 0; }
.wa-msg time { display: block; text-align: right; font-size: .7rem; color: #667781; margin-top: .15rem; }
.wa-msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.wa-msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.wa-msg time i { color: #53bdeb; }
.wa-typing { display: inline-flex; gap: 4px; padding: .3rem .1rem; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.wa-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .7rem; }
.wa-quick[hidden] { display: none; }
.wa-quick button { border: 1px solid #b5d7c9; background: #fff; color: #075e54; border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: .84rem; cursor: pointer; }
.wa-form { display: flex; gap: .5rem; padding: .6rem; background: #f0f2f5; }
.wa-form input { flex: 1; min-height: 44px; border: 0; border-radius: 999px; padding: 0 1rem; font: inherit; background: #fff; color: #111b21; }
.wa-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #00a884; color: #fff; font-size: 1.2rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
