/* FPA Community-Chat 0.1 – eigenes Design passend zu freizeitparkapp.de (dunkler Kopf, Orange-Akzent).
   Keine externen Fonts: übernimmt die Schrift des Themes (K2D/Roboto), sonst Systemschrift. */
.fpa-chat {
  --fc-akzent: #f65002; --fc-akzent-dunkel: #c23f00; --fc-akzent-hell: #fff1e8;
  --fc-kopf: #15191d; --fc-kopf2: #232a32; --fc-kopf-text: #f1f3f5; --fc-kopf-leise: #a9b3bd;
  --fc-grund: #f3f4f6; --fc-karte: #ffffff; --fc-text: #1d2228; --fc-leise: #5d6873; --fc-rand: #e2e5e9;
  --fc-gruen: #18ba60; --fc-radius: 16px;
  --fc-schrift: inherit;
  --fc-titel-schrift: 'K2D', 'Roboto Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: flex; flex-direction: column; box-sizing: border-box; container-type: inline-size; container-name: fpachat;
  height: var(--fpa-chat-hoehe, 640px); max-height: calc(100vh - 40px); min-height: 360px;
  margin: 1.5em 0; background: var(--fc-grund); color: var(--fc-text);
  border-radius: var(--fc-radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 32, .08), 0 12px 32px rgba(16, 24, 32, .14);
  font-family: var(--fc-schrift); font-size: 15px; line-height: 1.45; text-align: left;
}
.fpa-chat *, .fpa-chat *::before, .fpa-chat *::after { box-sizing: border-box; }
.fpa-chat [hidden] { display: none !important; }
.fpa-chat button { font: inherit; }
.fpa-chat__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fpa-chat :focus-visible { outline: 3px solid #ffb27f; outline-offset: 2px; }

/* ---------- Kopf ---------- */
.fpa-chat__kopf { position: relative; z-index: 3; flex: 0 0 auto; background: linear-gradient(180deg, var(--fc-kopf2) 0%, var(--fc-kopf) 100%); color: var(--fc-kopf-text); padding: 14px 16px; border-bottom: 3px solid var(--fc-akzent); }
.fpa-chat__titelzeile { display: flex; align-items: center; gap: 12px; }
.fpa-chat__titelblock { flex: 1 1 auto; min-width: 0; }
.fpa-chat__titel { margin: 0 !important; padding: 0; font-family: var(--fc-titel-schrift); font-size: 1.3em; font-weight: 700; line-height: 1.2; color: #fff !important; letter-spacing: .01em; text-transform: none; border: 0; }
.fpa-chat__untertitel { margin: 2px 0 0 !important; font-size: .82em; color: var(--fc-kopf-leise); display: flex; align-items: center; gap: 7px; }
.fpa-chat__live { width: 8px; height: 8px; border-radius: 50%; background: var(--fc-gruen); box-shadow: 0 0 0 0 rgba(24, 186, 96, .6); animation: fpa-chat-puls 2.4s infinite; flex: 0 0 auto; }
.fpa-chat.ist-gestoert .fpa-chat__live { background: #e0a100; animation: none; }
@keyframes fpa-chat-puls { 0% { box-shadow: 0 0 0 0 rgba(24, 186, 96, .55); } 70% { box-shadow: 0 0 0 7px rgba(24, 186, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 186, 96, 0); } }
.fpa-chat__zu { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--fc-kopf-text); cursor: pointer; padding: 0; }
.fpa-chat__zu:hover { background: rgba(255, 255, 255, .1); }
.fpa-chat__zu svg { width: 20px; height: 20px; }

/* Sprach-Raum-Auswahl (0.4.2): ein Dropdown oben rechts statt Flaggenleiste */
.fpa-chat__raumwahl { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fpa-chat__raumwahl-text { font-size: .68em; color: var(--fc-kopf-leise); text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.fpa-chat__raumknopf { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px 6px 8px; min-height: 36px; background: rgba(255, 255, 255, .07); color: var(--fc-kopf-text); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .01em; box-shadow: none; text-transform: none; transition: background .15s, border-color .15s; }
.fpa-chat__raumknopf:hover, .fpa-chat__raumknopf[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-color: var(--fc-akzent); }
.fpa-chat__raumknopf-flagge { display: inline-flex; }
.fpa-chat__raumknopf .fpa-chat__flagge { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); display: block; }
.fpa-chat__raumknopf.ist-alle .fpa-chat__flagge { width: 18px; height: 18px; border-radius: 0; box-shadow: none; }
.fpa-chat__raumknopf-name { white-space: nowrap; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.fpa-chat__pfeil { width: 16px; height: 16px; flex: 0 0 auto; color: var(--fc-akzent); transition: transform .15s; }
.fpa-chat__raumknopf[aria-expanded="true"] .fpa-chat__pfeil { transform: rotate(180deg); }
.fpa-chat__raumliste { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: max-content; min-width: 220px; max-width: min(300px, calc(100vw - 32px)); max-height: min(360px, calc(var(--fpa-chat-hoehe, 640px) - 100px)); overflow-y: auto; overscroll-behavior: contain; margin: 0 !important; padding: 6px !important; list-style: none !important; background: #fff; color: var(--fc-text); border: 1px solid var(--fc-rand); border-top: 3px solid var(--fc-akzent); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 32, .28); text-align: left; }
.fpa-chat__raumliste:focus { outline: none; }
.fpa-chat__raumliste:focus-visible .ist-markiert { outline: 2px solid #ffb27f; outline-offset: -2px; }
.fpa-chat__raum { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 8px 10px !important; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.2; list-style: none !important; }
.fpa-chat__raum::before { content: none !important; }
.fpa-chat__raum.ist-markiert { background: #f3f4f6; }
.fpa-chat__raum[aria-selected="true"] { background: var(--fc-akzent-hell); color: var(--fc-akzent-dunkel); font-weight: 700; }
.fpa-chat__raum[aria-selected="true"]::after { content: '✓'; margin-left: auto; padding-left: 8px; color: var(--fc-akzent); font-weight: 700; }
.fpa-chat__raum .fpa-chat__flagge { width: 24px; height: 16px; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); display: block; }
.fpa-chat__raum--alle { border-top: 1px solid var(--fc-rand); margin-top: 4px !important; border-radius: 0 0 8px 8px; }
.fpa-chat__raum--alle .fpa-chat__flagge { box-shadow: none; width: 20px; height: 20px; margin: 0 2px; border-radius: 0; color: var(--fc-leise); }
.fpa-chat__raum-eigen { color: var(--fc-leise); font-size: .86em; font-weight: 400; }
.fpa-chat__raum.ist-aktiv-heute .fpa-chat__raum-name::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; vertical-align: middle; border-radius: 50%; background: var(--fc-gruen); }

@container fpachat (max-width: 520px) {
  .fpa-chat__raumwahl-text { display: none; }
  .fpa-chat__raumknopf-name { max-width: 8.5em; }
}

/* ---------- Liste ---------- */
.fpa-chat__rumpf { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.fpa-chat__liste { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 14px; scroll-padding-bottom: 16px; }
.fpa-chat__liste:focus-visible { outline-offset: -3px; }
.fpa-chat__status { margin: 28px auto !important; text-align: center; color: var(--fc-leise); font-size: .92em; max-width: 30em; }
.fpa-chat__status--klein { margin: 8px auto 4px !important; font-size: .8em; }
.fpa-chat__aelter { display: block; margin: 6px auto 4px; padding: 6px 14px; background: var(--fc-karte); color: var(--fc-text); border: 1px solid var(--fc-rand); border-radius: 999px; cursor: pointer; font-size: .82em; font-weight: 600; box-shadow: none; text-transform: none; }
.fpa-chat__aelter:hover { border-color: var(--fc-akzent); color: var(--fc-akzent-dunkel); }
.fpa-chat__tag { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--fc-leise); font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fpa-chat__tag::before, .fpa-chat__tag::after { content: ''; flex: 1; height: 1px; background: var(--fc-rand); }

.fpa-chat__nachricht { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; margin-top: 10px; }
.fpa-chat__nachricht.ist-folge { margin-top: 3px; }
.fpa-chat__nachricht.ist-folge .fpa-chat__avatar { visibility: hidden; height: 0; }
.fpa-chat__nachricht.ist-folge .fpa-chat__meta > :not(.fpa-chat__aktionen) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.fpa-chat__nachricht.ist-folge .fpa-chat__meta { margin: 0; }
.fpa-chat__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; background: #c9ced4; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .15); user-select: none; }
.fpa-chat__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; max-width: none; }
.fpa-chat__koerper { min-width: 0; background: var(--fc-karte); border: 1px solid var(--fc-rand); border-radius: 4px 14px 14px 14px; padding: 7px 12px 6px; box-shadow: 0 1px 1px rgba(16, 24, 32, .04); position: relative; }
.fpa-chat__nachricht.ist-folge .fpa-chat__koerper { border-radius: 14px; }
.fpa-chat__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 1px; }
.fpa-chat__name { font-weight: 700; color: var(--fc-text); font-size: .9em; overflow-wrap: anywhere; }
.fpa-chat__msprache { display: none; align-self: center; }
.fpa-chat--alle .fpa-chat__msprache { display: inline-flex; }
.fpa-chat__msprache .fpa-chat__flagge { width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); display: block; }
.fpa-chat__zeit { color: var(--fc-leise); font-size: .76em; white-space: nowrap; }
.fpa-chat__text, .fpa-chat__uebersetzung { overflow-wrap: anywhere; word-break: break-word; color: var(--fc-text); }
.fpa-chat__text a, .fpa-chat__uebersetzung a { color: var(--fc-akzent-dunkel); text-decoration: underline; text-underline-offset: 2px; }
.fpa-chat__text a:hover, .fpa-chat__uebersetzung a:hover { color: var(--fc-akzent); }
.fpa-chat__erwaehnung { color: var(--fc-akzent-dunkel); font-weight: 700; background: var(--fc-akzent-hell); border-radius: 4px; padding: 0 3px; }
.fpa-chat__uebersetzung { border-left: 3px solid var(--fc-akzent); padding: 2px 0 2px 9px; margin-top: 2px; }
.fpa-chat__nachricht.ist-uebersetzt .fpa-chat__text { display: none; }
.fpa-chat__nachricht.ist-uebersetzt.zeigt-original .fpa-chat__text { display: block; }
.fpa-chat__nachricht.zeigt-original .fpa-chat__uebersetzung { display: none; }
.fpa-chat__uinfo { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px; font-size: .74em; color: var(--fc-leise); }
.fpa-chat__umschalten { background: none; border: 0; padding: 0; color: var(--fc-akzent-dunkel); cursor: pointer; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; box-shadow: none; text-transform: none; }
.fpa-chat__aktionen { display: flex; gap: 6px; margin-left: auto; align-self: center; }
.fpa-chat__aktionen:empty { display: none; }
.fpa-chat__nachricht.ist-folge .fpa-chat__aktionen { position: absolute; top: 4px; right: 6px; }
.fpa-chat__nachricht.ist-folge .fpa-chat__koerper { padding-right: 34px; }
.fpa-chat__nachricht.ist-folge .fpa-chat__uebersetzen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.fpa-chat__uebersetzen { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; margin: -2px -6px -2px 0; background: transparent; color: var(--fc-leise); border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .74em; font-weight: 600; line-height: 1.5; box-shadow: none; text-transform: none; letter-spacing: 0; }
.fpa-chat__uebersetzen svg { width: 14px; height: 14px; }
.fpa-chat__uebersetzen:hover, .fpa-chat__uebersetzen:focus-visible { color: var(--fc-akzent-dunkel); border-color: #ffd2b8; background: var(--fc-akzent-hell); }
.fpa-chat__uebersetzen.ist-am-laden { opacity: .7; cursor: progress; }
.fpa-chat__ufehler { margin-top: 3px; font-size: .76em; color: #a02a00; }

.fpa-chat__ruhig { margin: 16px 4px 4px; padding: 12px 14px; background: #fff8f3; border: 1px dashed #ffbf99; border-radius: 12px; font-size: .88em; color: #5a3b2b; }
.fpa-chat__ruhig p { margin: 0 0 8px !important; }
.fpa-chat__knopf { display: inline-block; margin: 4px 8px 0 0; padding: 6px 12px; background: var(--fc-akzent); color: #fff; border: 1px solid var(--fc-akzent); border-radius: 999px; font-size: .9em; font-weight: 700; cursor: pointer; box-shadow: none; text-transform: none; }
.fpa-chat__knopf:hover { background: var(--fc-akzent-dunkel); border-color: var(--fc-akzent-dunkel); }
.fpa-chat__knopf--leise { background: transparent; color: var(--fc-akzent-dunkel); }
.fpa-chat__knopf--leise:hover { background: var(--fc-akzent-hell); color: var(--fc-akzent-dunkel); }

.fpa-chat__neu { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; background: var(--fc-akzent); color: #fff; border: 0; border-radius: 999px; font-size: .82em; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(246, 80, 2, .4); text-transform: none; }

/* ---------- Fuß ---------- */
.fpa-chat__fuss { flex: 0 0 auto; background: var(--fc-karte); border-top: 1px solid var(--fc-rand); padding: 10px 14px 8px; }
.fpa-chat__eingabe { display: flex; gap: 8px; margin: 0; }
.fpa-chat input.fpa-chat__feld { flex: 1 1 auto; min-width: 0; margin: 0; height: 42px; padding: 0 14px; border: 1px solid var(--fc-rand); border-radius: 999px; background: #f6f7f9; color: var(--fc-leise); font: inherit; font-size: .92em; cursor: not-allowed; box-shadow: none; }
.fpa-chat__feld::placeholder { color: #6c7680; opacity: 1; }
.fpa-chat__senden { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #d9dde2; color: #fff; cursor: not-allowed; box-shadow: none; }
.fpa-chat__senden svg { width: 20px; height: 20px; }
.fpa-chat__hinweis { display: flex; align-items: center; gap: 6px; margin: 7px 2px 0 !important; font-size: .74em; color: var(--fc-leise); line-height: 1.35; }
.fpa-chat__hinweis svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--fc-akzent); }
.fpa-chat__hinweis span:first-of-type { flex: 1 1 auto; }
.fpa-chat__version { flex: 0 0 auto; font-size: .92em; color: #8a949e; font-variant-numeric: tabular-nums; }

/* ---------- Schwebend ---------- */
.fpa-chat-schwebend { position: fixed; right: 20px; bottom: 20px; z-index: 99990; font-size: 15px; }
.fpa-chat-schwebend__knopf { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; background: #f65002; color: #fff; border: 0; border-radius: 999px; font: 700 15px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(246, 80, 2, .45), 0 2px 6px rgba(0, 0, 0, .2); text-transform: none; }
.fpa-chat-schwebend__knopf:hover { background: #c23f00; }
.fpa-chat-schwebend__knopf svg { width: 22px; height: 22px; }
.fpa-chat-schwebend__knopf:focus-visible { outline: 3px solid #ffb27f; outline-offset: 3px; }
.fpa-chat-schwebend.ist-offen .fpa-chat-schwebend__knopf { display: none; }
.fpa-chat-schwebend__panel { width: 400px; max-width: calc(100vw - 24px); }
.fpa-chat-schwebend__panel .fpa-chat { margin: 0; height: min(600px, calc(100vh - 40px)); }

/* ---------- Responsiv ---------- */
@media (max-width: 600px) {
  .fpa-chat { font-size: 14.5px; border-radius: 12px; height: calc(100vh - 24px); height: calc(100svh - 24px); max-height: 780px; }
  .fpa-chat__kopf { padding: 12px; }
  .fpa-chat__liste { padding: 8px 10px 12px; }
  .fpa-chat__nachricht { grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; }
  .fpa-chat__avatar { width: 34px; height: 34px; font-size: 12.5px; }
  .fpa-chat__fuss { padding: 8px 10px 7px; }
  .fpa-chat input.fpa-chat__feld { font-size: 12px; padding: 0 12px; }
  .fpa-chat__senden { display: none; }
  .fpa-chat-schwebend { right: 12px; bottom: 12px; }
  .fpa-chat-schwebend.ist-offen { left: 0; right: 0; bottom: 0; top: 0; }
  .fpa-chat-schwebend__panel { width: 100%; max-width: none; height: 100%; }
  .fpa-chat-schwebend__panel .fpa-chat { height: 100%; max-height: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fpa-chat__live { animation: none; }
  .fpa-chat__raumknopf, .fpa-chat__pfeil { transition: none; }
}

/* Schreiben (0.4.0, Test-Freigabeliste) */
.fpa-chat__schreiben, .fpa-chat__verbinden { position: relative; margin: 0 0 6px; }
.fpa-chat__schreiben .fpa-chat__text { width: 100%; box-sizing: border-box; min-height: 52px; max-height: 160px; resize: vertical; padding: 9px 12px; border: 1px solid var(--fc-rand); border-radius: 14px; font: inherit; font-size: .92em; }
.fpa-chat__schreib-leiste { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.fpa-chat__zaehler { font-size: .75em; color: var(--fc-leise); white-space: nowrap; }
.fpa-chat__zaehler.ist-zu-lang { color: #c0392b; font-weight: 700; }
.fpa-chat__meldung { flex: 1 1 auto; margin: 0 !important; font-size: .78em; color: var(--fc-leise); }
.fpa-chat__meldung--fehler { color: #c0392b; }
.fpa-chat__senden-knopf, .fpa-chat__verbinden button { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--fc-akzent); color: #fff; font-weight: 700; cursor: pointer; }
.fpa-chat__senden-knopf:disabled { opacity: .5; cursor: not-allowed; }
.fpa-chat__vorschlaege { position: absolute; bottom: 100%; left: 0; right: 0; z-index: 5; max-height: 220px; overflow: auto; background: #fff; border: 1px solid var(--fc-rand); border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px; }
.fpa-chat__vs { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: none; text-align: left; border-radius: 8px; cursor: pointer; font: inherit; font-size: .88em; color: inherit; }
.fpa-chat__vs.ist-aktiv, .fpa-chat__vs:hover { background: #fff1e8; }
.fpa-chat__vs img, .fpa-chat__vs-ini { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--fc-akzent); color: #fff; font-size: .75em; font-weight: 700; }
.fpa-chat__vs-aktiv { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--fc-gruen); flex: 0 0 auto; }
.fpa-chat__verbinden-text { margin: 0 0 6px !important; font-size: .82em; }
.fpa-chat__verbinden-felder { display: flex; flex-wrap: wrap; gap: 6px; }
.fpa-chat__verbinden-felder input { flex: 1 1 140px; min-width: 0; padding: 7px 10px; border: 1px solid var(--fc-rand); border-radius: 10px; font: inherit; font-size: .88em; }
.fpa-chat__park { font-weight: 600; }
.fpa-chat__eingabezeile { display: flex; align-items: flex-start; gap: 6px; }
.fpa-chat__eingabezeile .fpa-chat__text { flex: 1 1 auto; min-width: 0; }
.fpa-chat__emoji-knopf { flex: 0 0 auto; width: 40px; height: 40px; margin: 6px 0 0; padding: 0; display: grid; place-items: center; background: #f6f7f9; border: 1px solid var(--fc-rand); border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; filter: grayscale(.35); }
.fpa-chat__emoji-knopf:hover, .fpa-chat__emoji-knopf[aria-expanded="true"] { filter: none; border-color: var(--fc-akzent); background: var(--fc-akzent-hell); }
.fpa-chat__emoji { position: absolute; bottom: 100%; left: 0; z-index: 6; width: min(340px, 100%); max-height: 260px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 4px; padding: 4px 8px 8px; background: #fff; border: 1px solid var(--fc-rand); border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.fpa-chat__emoji-gruppe { position: sticky; top: -4px; margin: 0 !important; padding: 6px 2px 4px; background: #fff; font-size: .72em; font-weight: 700; color: var(--fc-leise); text-transform: uppercase; letter-spacing: .05em; }
.fpa-chat__emoji-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; }
.fpa-chat__emoji-e { width: 100%; height: 36px; padding: 0; margin: 0; background: none; border: 0; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: none; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.fpa-chat__emoji-e:hover, .fpa-chat__emoji-e:focus-visible { background: var(--fc-akzent-hell); }
@media (max-width: 600px) { .fpa-chat__emoji { width: 100%; max-height: 220px; } .fpa-chat__emoji-knopf { width: 36px; height: 36px; font-size: 18px; } }

/* Kompakte Eingabe (0.4.2): eine Zeile wie im Messenger, wächst bis ~5 Zeilen */
.fpa-chat__fuss { padding: 8px 12px 5px; }
.fpa-chat__schreiben { margin: 0 0 2px; }
.fpa-chat__eingabezeile { display: flex; align-items: flex-end; gap: 6px; }
.fpa-chat__schreiben textarea.fpa-chat__text { flex: 1 1 auto; min-width: 0; width: auto; height: 44px; min-height: 44px; max-height: 122px; margin: 0; padding: 11px 14px; border: 1px solid var(--fc-rand); border-radius: 22px; background: #f6f7f9; color: var(--fc-text); font: inherit; font-size: 15px; line-height: 20px; resize: none; overflow-y: hidden; box-shadow: none; display: block; }
.fpa-chat__schreiben textarea.fpa-chat__text:focus { background: #fff; border-color: var(--fc-akzent); outline: none; box-shadow: 0 0 0 3px rgba(246, 80, 2, .15); }
.fpa-chat__emoji-knopf { width: 44px; height: 44px; margin: 0; }
.fpa-chat__eingabezeile .fpa-chat__zaehler { align-self: center; font-size: .7em; min-width: 3.6em; text-align: right; }
.fpa-chat__senden-knopf { flex: 0 0 auto; height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; margin: 0; line-height: 1; }
.fpa-chat__senden-knopf svg { width: 18px; height: 18px; }
.fpa-chat__schreiben > .fpa-chat__meldung { margin: 3px 4px 0 !important; font-size: .74em; }
.fpa-chat__schreiben > .fpa-chat__meldung:empty { display: none; }
.fpa-chat__hinweis { margin: 3px 2px 0 !important; font-size: .7em; line-height: 1.25; }
@media (max-width: 600px) {
  .fpa-chat__fuss { padding: 6px 8px 4px; }
  .fpa-chat__eingabezeile { gap: 5px; }
  .fpa-chat__schreiben textarea.fpa-chat__text { font-size: 16px; padding: 11px 12px; } /* 16px: kein Zoom in iOS */
  .fpa-chat__emoji-knopf { width: 40px; height: 44px; font-size: 19px; border-radius: 22px; }
  .fpa-chat__senden-knopf { width: 44px; padding: 0; justify-content: center; }
  .fpa-chat__senden-knopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .fpa-chat__eingabezeile .fpa-chat__zaehler { min-width: 0; }
}
.fpa-chat__schreiben textarea.fpa-chat__text::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6c7680; opacity: 1; }
