/* Wilma, digitale Assistentin – Raumseite und Startseite */
.wilma-ort { margin: 18px 0 10px; text-align: left; }
.wilma { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); padding: 14px; display: grid; gap: 12px; }
.wilma-kopf { display: flex; align-items: center; gap: 14px; }
.wilma-gesicht { --ring: var(--rand-stark); flex: none; width: 88px; height: 88px; border-radius: 50%; padding: 3px;
  background: var(--ring); transition: background .3s; }
.wilma-gesicht svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.wilma-gesicht[data-zustand="hoert"] { --ring: var(--ok); }
.wilma-gesicht[data-zustand="denkt"] { --ring: var(--warn); }
.wilma-gesicht[data-zustand="spricht"] { --ring: var(--akzent); }
.wilma-gesicht[data-zustand="hoert"], .wilma-gesicht[data-zustand="denkt"] { animation: wilma-puls 1.6s ease-in-out infinite; }
@keyframes wilma-puls { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ring) 25%, transparent); } }
.wilma-augen { transform-origin: 100px 93px; animation: wilma-blinzeln 5.2s infinite; }
@keyframes wilma-blinzeln { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.wilma-koerper { animation: wilma-atmen 4.5s ease-in-out infinite; }
@keyframes wilma-atmen { 50% { transform: translateY(1.2px); } }
.wilma-gesicht[data-zustand="denkt"] .wilma-augen { transform: translate(2px, -2px); animation: none; }
@media (prefers-reduced-motion: reduce) { .wilma-augen, .wilma-koerper, .wilma-gesicht { animation: none !important; } }
.wilma-namen { display: grid; gap: 1px; min-width: 0; }
.wilma-namen strong { font-size: 1.15rem; }
.wilma-rolle { color: var(--text-2); font-size: .85rem; }
.wilma-status { margin: 4px 0 0; color: var(--text-3); font-size: .85rem; min-height: 1.3em; }
.wilma-verlauf { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; scroll-behavior: smooth; }
.wilma-verlauf:empty { display: none; }
.wilma-blase { display: block; margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 90%; line-height: 1.45; overflow-wrap: anywhere; }
.wilma-blase.wilma { justify-self: start; background: color-mix(in srgb, var(--akzent) 13%, var(--flaeche)); border-bottom-left-radius: 4px; }
.wilma-blase.ich { justify-self: end; background: var(--flaeche-3); border-bottom-right-radius: 4px; }
.wilma-link { color: inherit; font-weight: 600; text-decoration: underline 2px var(--akzent); text-underline-offset: 3px; }
.wilma-blase.fehler { justify-self: center; background: transparent; color: var(--text-3); font-size: .88rem; }
.wilma-karte { border: 2px solid var(--akzent); border-radius: var(--radius-k); padding: 12px 14px; background: var(--flaeche-2); }
.wilma-karte h3 { margin: 0 0 8px; }
.wilma-daten { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
.wilma-daten dt { color: var(--text-2); font-size: .88rem; }
.wilma-daten dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.wilma-karte .schalter { align-items: flex-start; font-size: .9rem; }
.wilma-karte .schalter input { margin-top: 3px; flex: none; }
.wilma-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wilma-eingabe { display: flex; gap: 8px; }
.wilma-eingabe input { flex: 1; min-width: 0; }
.wilma-mikro { flex: none; }
.wilma-mikro[aria-pressed="false"] { opacity: .7; }
.wilma-hinweis { margin: 0; color: var(--text-3); }
@media (max-width: 420px) {
  .wilma-gesicht { width: 72px; height: 72px; }
  .wilma-eingabe { flex-wrap: wrap; }
  .wilma-eingabe input { flex-basis: 100%; order: -1; }
  .wilma-eingabe .knopf { flex: 1; }
}


/* Wilma-Vorstellung (Startseite, geschlossene Tür): Porträt mit Akzentring, grüner Punkt = da */
.wilma-vorstellung { display: flex; align-items: center; gap: 14px; text-align: left; }
.wilma-portraet { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: var(--akzent); }
.wilma-portraet img { width: 100%; height: 100%; border-radius: 50%; display: block; background: #fff; }
.wilma-portraet::after { content: ""; position: absolute; right: 2px; bottom: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2px solid var(--flaeche); }
.wilma-vorstellung h2, .wilma-vorstellung strong { display: block; margin: 0 0 4px; font-size: 1.1rem; }
.wilma-vorstellung p { margin: 0; }
