body {
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  padding-top: 80px;
}

.chat-frame {
  max-width: 768px;
  margin: 2rem auto;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  overflow: hidden;
}

/* Entfernen der header-Stile, da der Header jetzt dynamisch ist */
/* Neuer Stil für die Seitenüberschrift */
.page-title {
  padding: 0.8rem;
  background: #4e7de9;
  color: white;
  text-align: center;
  border-bottom: 1px solid #ddd;
  max-width: 100%;
  margin: 0 auto;
}

.page-title h1 {
  font-size: 1.5rem;
  margin: 0 0 0.3rem 0;
}

.page-title p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

#intro-container {
  background-color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  color: #333;
}

#intro-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

#intro-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

#chat-container {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f7f9fc;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nav-buttons button,
footer button {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #4e7de9;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-buttons button:hover,
footer button:hover {
  background-color: #3a67cb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.message {
  display: flex;
  align-items: flex-end;
  margin: 0.5rem;
  max-width: 80%;
}

.from-user {
  flex-direction: row-reverse;
  margin-left: auto;
  justify-content: flex-end;
}

.from-other {
  margin-right: auto;
  justify-content: flex-start;
}

.message .text {
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  background-color: #e3f0ff;
  margin: 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.from-other .text {
  background-color: #f0f2f5;
  border: 1px solid #e0e0e0;
}

.sender {
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: #666;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f2f5;
  margin: 0 0.5rem;
  flex-shrink: 0;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.from-user .avatar {
  margin-left: 0.5rem;
  margin-right: 0;
  background-color: #e3f0ff;
  border-color: #4e7de9;
}

.from-other .avatar {
  margin-right: 0.5rem;
  margin-left: 0;
  background-color: #f0f2f5;
  border-color: #888;
}

#typing-indicator {
  font-style: italic;
  margin: 0.5rem;
  color: #888;
}

.hidden {
  display: none;
}

/* Styling für die Auswahlmöglichkeiten */
#choice-box {
  padding: 1rem;
  background-color: #f7f9fc;
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.choice-option {
  margin: 0.7rem 0;
  padding: 0.8rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.choice-option:hover {
  background-color: #f0f2f5;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling für die Begründung */
#reason-container {
  padding: 1rem;
  margin-top: 1rem;
  background-color: #f0f7ff;
  border-radius: 0.5rem;
  color: #333;
  border: 1px solid #d0e1ff;
}

.reason-option {
  margin: 0.5rem 0;
  padding: 0.7rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.reason-option:hover {
  background-color: #f0f2f5;
  transform: translateY(-1px);
}

/* Feedback Box */
#feedback-box {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  font-weight: 500;
}

.feedback-positive {
  background-color: #e3f7e8;
  color: #2a7d4f;
  border: 1px solid #bce4ca;
}

.feedback-negative {
  background-color: #fae7e7;
  color: #d84848;
  border: 1px solid #f7c8c8;
}

/* Header-Styling */
body {
    padding-top: 80px;
    margin: 0;
    background-color: #f0f2f5;
}

/* Entferne ab Zeile 262: #kiraffe-header-container und zugehörige img-Regeln */
/* Stelle sicher, dass das Logo im Header immer die richtige Größe hat */
#kiraffe-header-container img[alt="KI im Unterricht Logo"] {
    height: 32px !important;
    width: auto !important;
    margin-right: 8px !important;
} 