/* Web-Rosa: Chat-Fenster der Standort-Seite (Plan apps/web-rosa/docs/planer-worker/2026-11-29-web-rosa, A08).
   Escape-CI: Navy #232864, Akzent Orange #E96220, Schrift der Seite (inherit).
   Regeln: Die Wurzel hat keine Fläche und fängt keine Klicks (pointer-events:none), nur Blase und offenes Fenster fangen
   Klicks auf ihrer eigenen Fläche. Ein geschlossenes Fenster ist [hidden] = display:none. z-index bleibt UNTER der
   Einwilligungs-Leiste (consent.css 2147483001); ist sie sichtbar, rücken Blase und Fenster um ihre Höhe nach oben
   (--webrosa-banner, gesetzt von web-rosa.js). */
.webrosa{position:static;pointer-events:none;font-family:inherit;--webrosa-navy:#232864;--webrosa-orange:#E96220;--webrosa-banner:0px}
.webrosa [hidden]{display:none!important}
.webrosa *,.webrosa *::before,.webrosa *::after{box-sizing:border-box}
/* Theme-Regel button{letter-spacing:.1em;line-height:22px;margin-bottom:5px;…} zurücksetzen */
.webrosa button{margin:0;letter-spacing:normal;text-transform:none;font-family:inherit;line-height:1.2}

.webrosa-blase{
  position:fixed;right:16px;bottom:calc(16px + var(--webrosa-banner));z-index:2147482000;pointer-events:auto;
  display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 16px 10px 12px;
  background:var(--webrosa-navy);color:#fff;border:2px solid var(--webrosa-orange);border-radius:24px;
  font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(35,40,100,.3)
}
.webrosa-blase:hover{background:#2d3380}
.webrosa-blase:focus-visible,.webrosa-fenster button:focus-visible,.webrosa-fenster a:focus-visible,.webrosa-eingabe:focus-visible{outline:3px solid var(--webrosa-orange);outline-offset:2px}
/* Sprechblase als reine Form, ohne Bild und ohne fremde Schrift */
.webrosa-blase-symbol{position:relative;display:inline-block;width:20px;height:16px;border-radius:8px;background:var(--webrosa-orange);flex:none}
.webrosa-blase-symbol::after{content:"";position:absolute;left:3px;bottom:-5px;border:5px solid transparent;border-top-color:var(--webrosa-orange);border-left-color:var(--webrosa-orange)}

.webrosa-fenster{
  position:fixed;right:16px;bottom:calc(16px + var(--webrosa-banner));z-index:2147482000;pointer-events:auto;
  display:flex;flex-direction:column;width:370px;max-width:calc(100vw - 32px);
  height:560px;max-height:calc(100vh - 32px - var(--webrosa-banner));
  background:#fff;color:#1d1f3a;border-radius:14px;overflow:hidden;
  box-shadow:0 10px 32px rgba(35,40,100,.32);font-size:15px;line-height:1.45
}
.webrosa-kopf{display:flex;align-items:flex-start;gap:8px;padding:12px 12px 10px 16px;background:var(--webrosa-navy);color:#fff;border-bottom:3px solid var(--webrosa-orange)}
.webrosa-kopf-text{flex:1 1 auto;min-width:0}
.webrosa-titel{margin:0;padding:0;font-size:18px;line-height:1.25;font-weight:700;color:#fff;letter-spacing:normal;text-transform:none}
.webrosa-unterzeile{margin:2px 0 0;font-size:12px;line-height:1.35;color:#d9dcf2}
.webrosa-unterzeile a{color:#ffb37a;text-decoration:underline}
.webrosa-neu{flex:none;padding:6px 10px;min-height:32px;background:transparent;color:#fff;border:1px solid #7b83b8;border-radius:6px;font-size:12px;cursor:pointer}
.webrosa-neu:hover{border-color:#fff}
.webrosa-zu{flex:none;width:32px;height:32px;padding:0;background:transparent;color:#fff;border:0;border-radius:6px;font-size:24px;line-height:32px;cursor:pointer}
.webrosa-zu:hover{background:rgba(255,255,255,.12)}

.webrosa-liste{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px;display:flex;flex-direction:column;gap:8px;background:#f5f6fb}
.webrosa-nachricht{max-width:88%;padding:8px 12px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.webrosa-rosa{align-self:flex-start;background:#fff;border:1px solid #e1e3ef;border-bottom-left-radius:4px}
.webrosa-gast{align-self:flex-end;background:var(--webrosa-navy);color:#fff;border-bottom-right-radius:4px}
.webrosa-hinweis{align-self:center;max-width:94%;background:#fff4ec;color:#6b3410;border:1px solid #f6c9a8;font-size:13px}
.webrosa-link{color:var(--webrosa-orange);text-decoration:underline;font-weight:700}
/* „Du:“ / „Rosa:“ nur für Bildschirmleser */
.webrosa-wer{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.webrosa-tipp{padding:4px 16px 6px;font-size:13px;color:#5a5f86;background:#f5f6fb}
.webrosa-form{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid #e1e3ef;background:#fff;margin:0}
.webrosa-eingabe{flex:1 1 auto;min-width:0;resize:none;max-height:120px;margin:0;padding:8px 10px;font:inherit;font-size:16px;line-height:1.35;color:#1d1f3a;background:#fff;border:1px solid #c9cce0;border-radius:8px}
.webrosa-senden{flex:none;min-height:40px;padding:8px 14px;background:var(--webrosa-orange);color:#fff;border:0;border-radius:8px;font-weight:700;font-size:14px;cursor:pointer}
.webrosa-senden:hover{background:#d4561a}
.webrosa-senden:disabled{opacity:.55;cursor:default}

/* Handy: Blatt über die ganze Breite; Höhe und Abstand folgen dem sichtbaren Bereich (Tastatur, web-rosa.js). */
@media (max-width:640px){
  .webrosa-blase{right:12px;bottom:calc(12px + var(--webrosa-banner))}
  .webrosa-fenster{
    left:0;right:0;width:100%;max-width:100%;border-radius:14px 14px 0 0;
    bottom:calc(var(--webrosa-banner) + var(--webrosa-tastatur, 0px));
    height:min(85vh, calc(var(--webrosa-sichtbar, 100vh) - 24px - var(--webrosa-banner)));
    max-height:calc(var(--webrosa-sichtbar, 100vh) - 24px - var(--webrosa-banner))
  }
}
@media (prefers-reduced-motion:no-preference){
  .webrosa-blase{transition:background-color .15s ease}
}
/* Trailer-Knopf der Startseiten (.eu-trailer-btn, unten rechts im Startbild) nicht unter „Frag Rosa“ legen (Befund Live-Prüfung 30.11.2026). */
body:has(.webrosa-blase) .eu-trailer-btn{bottom:calc(1.1rem + 64px)}
