/* kubo/kubo.css - Kubo Overlay (keine Inline-Styles) */

#kubo-root {
  position: fixed;
  z-index: 2147483647;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  pointer-events: none; /* Container ist passiv, nur Buttons aktivieren Pointer */
}

#kubo-root.kubo-hidden { display: none; }

.kubo-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
}

.kubo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.kubo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kubo-bubble {
  max-width: 320px;
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.kubo-text {
  color: #e9e9e9;
  font-size: 14px;
  line-height: 1.25; /* <- eher kompakt, damit mehr Zeilen im Chat sichtbar bleiben */
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  min-height: 18px;
}

.kubo-controls {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.kubo-btn {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #e9e9e9;
  cursor: pointer;
}

.kubo-btn:hover {
  background: rgba(255,255,255,0.12);
}

.kubo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.kubo-mini {
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}

/* Dock-Positionen */
#kubo-root.kubo-dock-top-left   { top: 12px; left: 12px; }
#kubo-root.kubo-dock-top-right  { top: 12px; right: 12px; }
#kubo-root.kubo-dock-bottom-left{ bottom: 12px; left: 12px; }
#kubo-root.kubo-dock-bottom-right{ bottom: 12px; right: 12px; }

/* Retro-ELIZA Bereich */
.kubo-chat {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 8px;
}

.kubo-chatlog {
  max-height: 110px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.25;
  color: #ddd;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 8px;
}

.kubo-chatrow { margin: 0 0 6px 0; }
.kubo-chatrow b { color: #7CFFB2; font-weight: 700; }

.kubo-chatinput {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.kubo-chatinput input {
  flex: 1 1 auto;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 12px;
}

.kubo-chatinput button {
  flex: 0 0 auto;
}


/* Utility */
.kubo-hide { display: none !important; }
.kubo-chat { display: none; }
.kubo-chat.kubo-open { display: block; }
