/* Mehrfachauswahl als graue Bubbles (bubbles.js). Farben nur aus den Theme-Variablen von layout.css. */
.bubbles {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; min-height: 2.25rem;
  padding: 0.25rem 0.375rem; cursor: text;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border-stark); border-radius: 0.375rem;
}
.bubbles:focus-within { border-color: var(--c-akzent); box-shadow: 0 0 0 2px var(--c-fokus); }
.bubble {
  display: inline-flex; align-items: center; gap: 0.125rem; max-width: 100%;
  padding: 0.0625rem 0.25rem 0.0625rem 0.625rem; font-size: 0.8125rem; line-height: 1.4;
  background: var(--c-hover); color: var(--c-text);
  border: 1px solid var(--c-border-stark); border-radius: 9999px;
}
.bubble-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble-x {
  background: transparent; border: 0; padding: 0 0.3rem; cursor: pointer; border-radius: 9999px;
  color: var(--c-muted); font-size: 1rem; line-height: 1.2;
}
.bubble-x:hover, .bubble-x:focus-visible { color: var(--c-text); background: var(--c-akzent-weich); }
.bubbles-eingabe {
  flex: 1 1 8rem; min-width: 6rem; border: 0; outline: none; box-shadow: none; background: transparent; color: inherit;
  padding: 0.125rem 0.25rem; font-size: 0.875rem;
}
.bubbles-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 2px; max-height: 16rem; overflow-y: auto;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border-stark); border-radius: 0.375rem; box-shadow: var(--schatten-gross);
}
.bubbles-panel[hidden] { display: none; }
.bubbles-eintrag, .bubbles-alle {
  display: block; width: 100%; text-align: left; padding: 0.25rem 0.5rem; font-size: 0.875rem;
  background: transparent; color: inherit; border: 0; cursor: pointer;
}
.bubbles-eintrag:hover, .bubbles-eintrag[aria-selected="true"] { background: var(--c-akzent-weich); }
.bubbles-alle { color: var(--c-akzent); border-top: 1px solid var(--c-border); font-size: 0.75rem; }
.bubbles-hinweis { padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--c-muted); }
