/* Phase 465: Jarvis auf der Startseite. Hauslinie: eckig, Petrol und Gold,
   Haarlinien. Eigene Datei, weil hub.css die eingefrorene Vorlage ist. */

#jarvis[hidden] { display: none; }

.jarvis { display: grid; gap: 10px; max-width: 640px; margin-top: 6px; }

.jarvis-knopf {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 12px 18px;
  color: #fff; text-align: left;
  background: var(--dna-petrol, #00587C);
  border: 0; border-left: 4px solid var(--dna-gold, #C8AA22); border-radius: 2px;
  font: inherit; cursor: pointer;
  transition: background .15s ease;
}
.jarvis-knopf:hover { background: var(--dna-petrol-deep, #003E57); }
.jarvis-knopf:focus-visible { outline: 2px solid var(--dna-klick-aktiv, #004365); outline-offset: 2px; }
.jarvis-knopf-text { display: grid; gap: 2px; }
.jarvis-knopf-text b { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.jarvis-knopf-text small { font-size: 13px; opacity: .85; }

/* Die Klangwellen: ruhig im Stand, lebendig beim Nachdenken und Sprechen. */
.jarvis-wellen { display: inline-flex; align-items: center; gap: 3px; width: 34px; height: 28px; flex: none; }
.jarvis-wellen i { display: block; width: 4px; height: 8px; background: var(--dna-gold, #C8AA22); border-radius: 1px; }
.jarvis-wellen i:nth-child(2) { height: 16px; }
.jarvis-wellen i:nth-child(3) { height: 24px; }
.jarvis-wellen i:nth-child(4) { height: 14px; }
.jarvis-wellen i:nth-child(5) { height: 10px; }
.jarvis[data-stand="denkt"] .jarvis-wellen i { animation: jarvis-denkt 1.2s ease-in-out infinite; }
.jarvis[data-stand="spricht"] .jarvis-wellen i { animation: jarvis-spricht .9s ease-in-out infinite; }
.jarvis .jarvis-wellen i:nth-child(2) { animation-delay: .12s; }
.jarvis .jarvis-wellen i:nth-child(3) { animation-delay: .24s; }
.jarvis .jarvis-wellen i:nth-child(4) { animation-delay: .36s; }
.jarvis .jarvis-wellen i:nth-child(5) { animation-delay: .48s; }
@keyframes jarvis-denkt { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes jarvis-spricht { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.15); } }

.jarvis-ansage {
  padding: 14px 18px;
  background: var(--dna-card, #fff);
  border: 1px solid var(--dna-line, #D5DEE2); border-left: 4px solid var(--dna-petrol, #00587C); border-radius: 2px;
  animation: jarvis-auf .35s ease-out;
}
.jarvis-text { margin: 0; color: var(--dna-ink, #1A2B33); font-size: 15px; line-height: 1.6; }
.jarvis-steuerung { display: flex; gap: 8px; margin-top: 10px; }
.jarvis-steuerung:not(:has(button:not([hidden]))) { display: none; }
.jarvis-mini {
  min-height: 36px; padding: 0 14px;
  color: var(--dna-klick, #0070A8); background: transparent;
  border: 1px solid var(--dna-line-strong, #9FB1B9); border-radius: 2px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.jarvis-mini:hover { border-color: var(--dna-klick, #0070A8); }
.jarvis-mini[hidden] { display: none; }
.jarvis-status { margin: 0; min-height: 0; color: var(--dna-muted, #5C6E76); font-size: 13px; }
.jarvis-status:empty { display: none; }
@keyframes jarvis-auf { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .jarvis .jarvis-wellen i, .jarvis-ansage { animation: none !important; }
}
@media (max-width: 580px) {
  .jarvis-knopf { min-height: 60px; padding: 12px 14px; }
  .jarvis-mini { min-height: 44px; flex: 1; }
}
