.voice-window {
  width: 480px;
  max-width: 90vw;
  height: 420px;
  display: flex;
  flex-direction: column;
}

.voice-container {
  display: flex;
  flex-direction: column;
  height: calc(100% - 40px);
  padding: 18px;
  box-sizing: border-box;
  gap: 15px;
  background: rgba(16, 21, 29, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
}

.voice-status-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#voice-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4d4d; /* Rot: Offline/Nicht bereit */
  box-shadow: 0 0 8px #ff4d4d;
}

#voice-indicator.ready {
  background: #ffcc00; /* Gelb: Bereit */
  box-shadow: 0 0 8px #ffcc00;
}

#voice-indicator.recording {
  background: #00f3ff; /* Blau: Nimmt auf */
  box-shadow: 0 0 10px #00f3ff;
  animation: pulse 1s infinite alternate;
}

#voice-indicator.processing {
  background: #a855f7; /* Violett: Verarbeitet */
  box-shadow: 0 0 8px #a855f7;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.voice-controls {
  display: flex;
  gap: 10px;
}

.voice-controls button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  background: #089b9b;
  color: #fff;
  transition: all 0.2s;
}

.voice-controls button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.voice-controls button:not(:disabled):hover {
  background: #00f3ff;
  color: #000;
}

.voice-output-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-label {
  font-size: 12px;
  color: #00f3ff;
  font-weight: bold;
}

.transcript-box, .command-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  min-height: 38px;
  box-sizing: border-box;
}

.command-box {
  color: #4ade80;
}

.assistant-container {
  display: relative;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 9999;
}

#voice-assistant-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease;
}

#voice-assistant-btn:hover {
  transform: scale(1.08);
}

.star-ring {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.2) rotate(-180deg);
}

.star {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 13px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  pointer-events: none;
  --star-offset: 16px;
  --star-scale: 1;
  transform: translate(-50%, -50%) 
             rotate(calc(var(--i) * 22.5deg)) 
             translateY(calc(-1 * var(--star-offset))) 
             scale(var(--star-scale));
  transition: transform 0.08s linear, color 0.2s ease, text-shadow 0.2s ease;
}

#voice-assistant-btn:hover .star {
  color: #00f2fe;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

#voice-assistant-btn.listening .star {
  color: #00f2fe;
  text-shadow: 0 0 8px #00f2fe, 0 0 14px #4facfe;
}

.star-ring.fly-in {
  animation: starRingIntro 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes starRingIntro {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}