/* Grundstyles */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  text-align: center;
  padding: 40px 20px;
  margin: 0;
}

h1 {
  color: #2c7a2c;
}

/* Wrapper für Bild */
#sojamaggus-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 20px auto;
}

/* Sojamaggus Bild */
#sojamaggus {
  width: 250px;
  max-width: 90%;
  display: block;
  margin: 0 auto;
  z-index: 2;
}

/* Sprechblase unter dem Bild */
#speech-bubble {
  display: inline-block;
  background: #fff;
  border: 2px solid #2c7a2c;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  min-height: 60px;
  max-width: 400px;
  word-wrap: break-word;
}

/* Eingabefeld */
#input-area {
  margin-top: 20px;
}

#input-area input[type="text"] {
  padding: 8px;
  width: 200px;
  max-width: 80%;
  border: 1px solid #aaa;
  border-radius: 6px;
}

button {
  padding: 8px 16px;
  margin-left: 8px;
  border: none;
  border-radius: 6px;
  background: #2c7a2c;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #256a25;
}

/* Inspirationsbuttons */
#hint-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
  justify-items: center;
}

.bubble {
  background: #8bc34a;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bubble:hover {
  transform: scale(1.05);
  background: #689f38;
}

/* Überschrift für Inspirationsbuttons */
h3 {
  margin-top: 30px;
  color: #2c7a2c;
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
  #sojamaggus {
    width: 200px;
  }

  #speech-bubble {
    max-width: 90%;
  }

  #hint-buttons {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 30px 15px;
  }

  #sojamaggus {
    width: 180px;
  }

  #input-area input[type="text"] {
    width: 70%;
  }

  .bubble {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  #sojamaggus {
    width: 140px;
  }

  #input-area input[type="text"] {
    width: 60%;
  }

  .bubble {
    font-size: 12px;
    padding: 6px 10px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}
