/* Streaming-Antwort mit Freemium-Blur */
.answer-stream-container {
  position: relative;
  min-height: 4rem;
}

.stream-clear {
  font-size: 1rem;
  line-height: 1.75;
  color: #fff;
  font-family: Georgia, serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.stream-blurred-wrap {
  position: relative;
  margin-top: 0.5rem;
  max-height: 14rem;
  overflow: hidden;
}

.stream-blurred {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  pointer-events: none;
  color: #cbd5e1;
  font-family: Georgia, serif;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.stream-blur-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 42, 0.5) 30%,
    rgba(15, 23, 42, 0.95) 100%
  );
  pointer-events: none;
}

.answer-unlocked .stream-blurred-wrap,
.answer-unlocked .stream-blur-fade {
  display: none;
}

.answer-unlocked .stream-clear {
  white-space: pre-wrap;
}

/* Lade-Phasen */
.loading-phase {
  transition: opacity 0.35s ease;
}

.loading-phase.fade-out {
  opacity: 0;
}

.typing-cursor::after {
  content: "▍";
  animation: blink 0.9s step-end infinite;
  color: #818cf8;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.blur-block {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
}

.blur-fade {
  pointer-events: none;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

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

.animate-spin {
  animation: spin 0.8s linear infinite;
}
