/* === Struktur & Layout === */
body {
  font-family: system-ui, sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* === Form-Gruppierung === */
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* === Chatverlauf === */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-width: 700px;
  margin: auto;
  font-family: system-ui, sans-serif;
}

.bubble {
  max-width: 90%;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 1rem;
}

.bubble-user {
  background-color: #f5f5f5;
  color: #222;
  align-self: flex-start;
  border-left: 3px solid #aaa;
}

.bubble-bot {
  background-color: #e6f0ff;
  color: #003366;
  align-self: flex-end;
  border-right: 3px solid #005bbb;
}

/* === Sensorisch sanfter Modus === */
.sensory-safe .bubble-bot {
  background-color: #f0f9ff;
  color: #1a1a1a;
}

.sensory-safe .bubble-user {
  background-color: #f7f7f7;
  color: #222;
}

/* === Responsives Verhalten === */
@media (max-width: 600px) {
  .chat-container {
    padding: 0.5rem;
  }

  .bubble {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

/* === Reduzierte Bewegung === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* === Buttons === */
button {
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

/* === PDF Export Button === */
#export-pdf {
  font-size: 0.95rem;
}
