/* ========== Basislayout ========== */
body {
  font-family: sans-serif;
  padding: 1rem;
  max-width: 800px;
  margin: auto;
  background-color: #fdfdfd;
  color: #2c3e50;
}

/* ========== Überschriften ========== */
h1 {
  font-size: 2.5rem;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
}

h2 {
  margin-top: 2rem;
  color: #2c3e50;
}

/* ========== Berg-Auswahl-Kacheln ========== */
.berg-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.berg-kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  background-color: #f4f4f4;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.berg-kachel:hover {
  background-color: #eaeaea;
  transform: scale(1.05);
}

.berg-kachel img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5em;
}

/* ========== Formular ========== */
form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #27ae60;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #219150;
}

/* ========== Temperaturanzeige ========== */
#temperature-container {
  margin: 2rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}

#temperature-bar {
  height: 20px;
  width: 0%;
  background-color: #4CAF50;
  border-radius: 4px;
  transition: width 0.5s ease, background-color 0.5s ease;
}

#temperature-value {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #333;
}

/* ========== Gästebucheinträge ========== */
#entries {
  margin-top: 20px;
}

.entry {
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== Smileys ========== */
.smiley {
  font-size: 1.5rem;
  display: inline-block;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
  vertical-align: middle;
  margin-right: 0.5em;
}

.smiley.gut {
  color: green;
  border-color: green;
}

.smiley.mittel {
  color: orange;
  border-color: orange;
}

.smiley.schlecht {
  color: red;
  border-color: red;
}

/* Alternativ: für erweiterte Klassennamen */
.ring-green { border-color: green; }
.ring-yellow { border-color: goldenrod; }
.ring-red   { border-color: red; }

.smiley-good   { color: green; }
.smiley-okay   { color: orange; }
.smiley-bad    { color: red; }

/* ========== Smiley-Bild für zukünftige Erweiterung ========== */
.smiley-image {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 5px;
}

/* ========== Responsive Anpassung ========== */
@media (max-width: 600px) {
  .berg-kachel {
    width: 100px;
    padding: 0.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  input, textarea, select {
    font-size: 0.95rem;
  }

  button {
    font-size: 0.95rem;
  }
}

header {
  display: flex;
  align-items: center;
  justify-content: center; /* Überschrift zentriert */
  gap: 1rem; /* Abstand zwischen Button und Überschrift */
  margin-bottom: 20px;
  flex-wrap: wrap; /* Damit bei kleinen Bildschirmen Zeilenumbruch möglich ist */
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

header .home-button {
  text-decoration: none;
  background: #27ae60;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}
header .home-button:hover {
  background: #219150;
}
