/* Branding: Navy/Cream/Ochre, Cormorant Garamond (Ueberschriften) + DM Sans (Fliesstext) */
:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --cream: #faf3e7;
  --ochre: #c97c2c;
  --ochre-light: #e0a05c;
  --text-muted: #5b5b52;
  --danger: #a3342a;
  --success: #3a6b4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4em 0;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.8rem; }

a { color: var(--ochre); }

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.banner {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.banner strong { color: var(--ochre-light); }

.card {
  background: #fff;
  border: 1px solid #e7ddc9;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.06);
}

label {
  display: block;
  font-size: 0.9rem;
  margin: 1rem 0 0.3rem;
  color: var(--navy);
}

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d8cdb3;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

input:focus { outline: 2px solid var(--ochre); }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.4rem;
  transition: background 0.15s;
}

.btn:hover { background: var(--navy-light); }
.btn:disabled { background: #999; cursor: not-allowed; }

.btn-accent { background: var(--ochre); }
.btn-accent:hover { background: var(--ochre-light); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.consent-row input { margin-top: 0.2rem; }

.footer-legal {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.footer-legal a { margin: 0 0.5rem; }

.status-msg {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

.status-msg.show { display: block; }
.status-msg.ok { background: #e5f0e8; color: var(--success); }
.status-msg.error { background: #f5e4e1; color: var(--danger); }

/* --- Demo interface --- */
.mic-button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: var(--ochre);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  transition: transform 0.15s, background 0.15s;
}

.mic-button:hover { background: var(--ochre-light); }
.mic-button.recording {
  background: var(--danger);
  transform: scale(1.08);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 52, 42, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(163, 52, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 52, 42, 0); }
}

.latency-display {
  text-align: center;
  font-family: "DM Sans", monospace;
  margin-top: 1rem;
}

.latency-display .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
}

.latency-display .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loading-screen {
  text-align: center;
  padding: 3rem 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e7ddc9;
  border-top-color: var(--ochre);
  border-radius: 50%;
  margin: 1.5rem auto;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.transcript-log {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
  background: var(--cream);
  border-radius: 6px;
  padding: 1rem;
  min-height: 3rem;
}
