body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #dbeeff, #d4fbe4, #fde7f4);
  background-attachment: fixed;
  font-family: sans-serif;
  filter: blur(0.2px);
}

.headline {
  text-align: center;
  font-weight: bold;
  font-size: 4rem;
  margin-top: 40px;
}

.headline .me { color: #78C88C; }
.headline .and { color: #4FC3F7; }
.headline .ai { color: #FBCBE2; }

.chatbox {
  width: 100%;
  max-width: 800px;
  height: 300px;
  margin: 450px auto 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  gap: 10px;
}

.chat-messages {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 10px;
}

.user-message {
  padding: 10px 15px;
  background: #e0f7fa;
  border-radius: 15px 15px 0 15px;
  max-width: 70%;
  font-size: 1rem;
  align-self: flex-end;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.bot-message {
  padding: 10px 15px;
  background: #f2f2f2;
  border-radius: 15px 15px 15px 0;
  max-width: 70%;
  font-size: 1rem;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.input-field {
  width: 100%;
  min-height: 50px;
  max-height: 150px;
  padding: 15px;
  font-size: 1rem;
  border-radius: 15px;
  border: none;
  outline: none;
  background: #f2f2f2;
  resize: none;
  overflow-y: auto;
}

.send-button {
  width: 50px;
  height: 50px;
  margin-top: 10px;
  border-radius: 50%;
  background: #000;
  color: #b4e0f0;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}

/* MOBILE-OPTIMIERUNG */
@media (max-width: 600px) {
  .chatbox {
    width: 95%;
    min-height: 250px;
    max-height: 60vh;
    margin: 80px auto 30px auto;
    padding: 15px;
    padding-bottom: env(safe-area-inset-bottom, 20px); /* iPhone safe zone */
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex-shrink: 1;
  }

  .chat-messages {
    padding-right: 0;
    font-size: 1rem;
  }

  .headline {
    font-size: 2.5rem;
    margin-top: 20px;
  }

  .input-field {
    font-size: 1rem;
    padding: 12px;
    margin-bottom: 15px;
  }

.send-button {
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #000;
  color: #b4e0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .user-message,
  .bot-message {
    font-size: 0.95rem;
    padding: 10px;
    max-width: 80%;
  }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #35424a;
    color: white;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

section {
    padding: 20px;
    margin: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-links {
  position: fixed;
  bottom: 20px;
  right: 30px;
  font-size: 0.75rem;
  color: #888;
  display: flex;
  gap: 15px;
  z-index: 9999;
}

.footer-links a {
  color: #4FC3F7;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}
