/* Moto Reinhard – KI-Hilfe. Farben und Schriften kommen aus den Variablen des Themes (hell und dunkel). */
.mrc-knopf{position:fixed;right:20px;bottom:88px;z-index:35;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px 0 14px;border:0;border-radius:24px;background:var(--red,#e4002b);color:var(--red-ink,#fff);font:600 15px/1 var(--body,system-ui,sans-serif);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.mrc-knopf:hover{filter:brightness(.92)}
.mrc-knopf:focus-visible,.mrc-fenster button:focus-visible,.mrc-feld:focus-visible{outline:2px solid var(--ink,#16181b);outline-offset:2px}
.mrc-offen .mrc-knopf{display:none}

.mrc-fenster{position:fixed;right:20px;bottom:20px;z-index:101;display:flex;flex-direction:column;width:380px;max-width:calc(100vw - 40px);height:min(600px,calc(100vh - 40px));height:min(600px,calc(100dvh - 40px));background:var(--surface,#fff);color:var(--ink,#16181b);border:1px solid var(--line,#e3e5e8);border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.28);font:15px/1.45 var(--body,system-ui,sans-serif);overflow:hidden}
.mrc-fenster[hidden]{display:none}

.mrc-kopf{display:flex;align-items:center;gap:6px;padding:12px 10px 12px 16px;background:var(--red,#e4002b);color:var(--red-ink,#fff)}
.mrc-titel{flex:1;min-width:0;display:flex;flex-direction:column}
.mrc-titel strong{font:700 18px/1.1 var(--disp,inherit);letter-spacing:.02em;text-transform:uppercase}
.mrc-titel span{font-size:12px;opacity:.9}
.mrc-neu,.mrc-zu{border:0;background:transparent;color:inherit;cursor:pointer;border-radius:6px;min-width:36px;height:36px;font:600 13px/1 var(--body,system-ui,sans-serif)}
.mrc-zu{font-size:24px;font-weight:400}
.mrc-neu:hover,.mrc-zu:hover{background:rgba(255,255,255,.18)}
.mrc-kopf button:focus-visible{outline-color:#fff}

.mrc-liste{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--asphalt,#f1f2f4)}
.mrc-blase{max-width:86%;padding:9px 12px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.mrc-assistent{align-self:flex-start;background:var(--surface,#fff);border:1px solid var(--line,#e3e5e8);border-bottom-left-radius:4px}
.mrc-besucher{align-self:flex-end;background:var(--red,#e4002b);color:var(--red-ink,#fff);border-bottom-right-radius:4px}
.mrc-assistent a{color:var(--red-text,#c8001f);text-decoration:underline}
.mrc-tippt{color:var(--ink-2,#4a525b);font-style:italic}

.mrc-form{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid var(--line,#e3e5e8)}
.mrc-feld{flex:1;min-height:42px;max-height:120px;resize:none;padding:10px 12px;border:1px solid var(--line,#e3e5e8);border-radius:8px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:16px}
.mrc-senden{height:42px;padding:0 16px;border:0;border-radius:8px;background:var(--red,#e4002b);color:var(--red-ink,#fff);font:600 15px/1 var(--body,system-ui,sans-serif);cursor:pointer}
.mrc-senden:disabled{opacity:.5;cursor:default}
.mrc-fuss{margin:0;padding:0 12px 10px;font-size:11px;line-height:1.35;color:var(--ink-2,#4a525b)}
.mrc-fuss a{color:inherit;text-decoration:underline}

/* Handy: der Knopf sitzt über der festen Leiste «Anrufen / WhatsApp», das Fenster füllt den Bildschirm. */
@media (max-width:700px){
  .mrc-knopf{right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px));height:44px}
  .mrc-fenster{inset:0;width:auto;max-width:none;height:auto;border:0;border-radius:0}
  .mrc-form{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:no-preference){
  .mrc-fenster:not([hidden]){animation:mrc-auf .16s ease-out}
  @keyframes mrc-auf{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
}
