/* Voice-Co-Pilot: kompakter, links buendiger Button im rechten Panel */

.voice-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md, 16px);
  flex-wrap: wrap;
  margin: 0 0 var(--space-lg, 24px);
}

.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-accent, #e8450e);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.voice-btn:hover:not([disabled]) { background: var(--color-accent-hover, #d03d0b); transform: translateY(-1px); }
.voice-btn:focus-visible { outline: 3px solid var(--color-border-focus, #0071e3); outline-offset: 2px; }
.voice-btn[disabled] { background: var(--color-ink-muted, #aeaeb2); cursor: not-allowed; }

.voice-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.voice-btn__label { white-space: nowrap; }

/* Verbunden: pulsierender Ring signalisiert aktive Aufnahme */
.voice-btn--active { background: var(--color-accent-hover, #d03d0b); }
.voice-btn--active .voice-btn__icon { animation: voice-pulse 1.4s ease-in-out infinite; }
.voice-btn--speaking .voice-btn__icon { animation: voice-pulse 0.7s ease-in-out infinite; }

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}

/* Status-Text neben dem Button */
.voice-status {
  font-size: 0.88rem;
  color: var(--color-ink-secondary, #424245);
}
.voice-status--error { color: var(--color-error, #ff3b30); }
.voice-status--live { color: var(--color-accent, #e8450e); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .voice-btn__icon { animation: none !important; }
}

/* Linkes Panel: mehr Platz fuer Inhalt, damit die Fusszeile (Impressum/Datenschutz)
   trotz Voice-Button sichtbar bleibt; bei sehr niedrigem Viewport scrollbar. */
.split__hero { height: 36%; min-height: 160px; }
.split__left-content { overflow-y: auto; padding-bottom: 25px; }

/* Voice-Button im dunklen linken Panel (unter dem Kontext-Text) */
.split__voice {
  margin-top: var(--space-md, 16px);
}
.split__voice .voice-cta {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm, 8px);
  margin: 0;
}
.split__left .voice-status {
  color: rgba(255, 255, 255, 0.65);
}
.split__left .voice-status--live { color: #fff; }
.split__left .voice-status--error { color: #ffb4ad; }

/* Impressum/Datenschutz in derselben Zeile wie SSL/DSGVO */
.split__trust { flex-wrap: wrap; align-items: center; }
.split__trust-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.split__trust-link:hover { color: #fff; }
