/* Allgemein */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  overflow-y: auto;
}

/* Container zentriert, aber ohne Scrollverlust */
.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  max-width: 700px;
  width: 100%;
  margin: 2rem auto;
  box-sizing: border-box;
}

/* Texte */
h1 {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

p {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
}

/* Formularelemente */
label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: block;
}

input, select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Buttons */
button {
  width: 100%;
  padding: 0.7rem;
  background: #0056d2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #0040a8;
}

/* Spinner */
.spinner-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #444;
  margin-top: 20px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.spinner-text {
  display: inline-block;
}

/* Ladeinfo */
.loading {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* KI-Antwortbereich */
#recommendation {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  padding: 1rem;
  background: #fdfdfd;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow-wrap: break-word;
}

/* Markdown-Elemente */
#recommendation h2, #recommendation h3 {
  font-size: 1.1rem;
  color: #0056d2;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#recommendation ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

#recommendation li {
  margin-bottom: 0.4rem;
}

#recommendation strong {
  font-weight: 600;
  color: #000;
}

#recommendation em {
  color: #666;
  font-style: italic;
}

#recommendation a {
  color: #0077cc;
  text-decoration: underline;
}
