/* Globales Styling */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: #1a1a1a; /* sehr dunkles Grau */
  color: #e0e0e0;
}

.container {
  max-width: 600px;
  margin: 2rem auto;
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  padding: 2rem;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
  text-align: center;
  color: #008866; /* Akzentfarbe */
}

.input-group {
  width: 100%;
  display: flex;
  align-items: bottom;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

label {
  font-weight: 500;
  color: #e0e0e0;
}

input[type="number"] {
  width: 60px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1d1d1d;
  color: #e0e0e0;
  font-size: 1rem;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  height: 18px;
  appearance: none;
  border-radius: 6px;
  background: #444;
  align-items: center
}

.slidecontainer {
  width: 100%;
  align-items: center;
  text-align: center;
  display: block;
  line-height: 1.5rem;
}

/* Display-Bereich für dB und Überschreitungen */
.display-box {
  background: #1d1d1d;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 0rem;
}

.input-container {
  display: flex;
  gap: 2rem;
}

/* Große Anzeige für den aktuellen Schalldruck */
.dB-container {
  display: grid;
  align-items: center;
  text-align: center;
}

.decibel-value {
  font-size: 16rem;
  font-weight: 500;
  color: #008866; /* Akzentfarbe */
  align-items: center;
  text-align: center;
}

.unit {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}

/* Überschreitungen neben dem dB-Wert */
.counter-container {
  width: 100%;
  display: flex;
  gap: 2rem;
}

.counter-group {
  width: 100%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-weight: 500;
  font-size: 1.25rem;
  text-align: center;
  align-items: center;
}

#counter {
  font-size: 4rem;
  text-align: center;
  width: 4.5rem;
}

#average {
  font-size: 2.5rem;
  text-align: left;
  width: 2.5rem;
}

#description {
  font-size: 1rem;
  display: inline-flex;
  text-align: left;
  margin: 0px;
}

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

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 92px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#revertBtn {
  width: 132px;
  background: #008866;
  color: #fff;
  margin-right: 32px;
}

#startBtn {
  background: #008866;
  color: #fff;
}

#startBtn:hover:not(:disabled) {
  background: #006a5a;
}

#pauseBtn {
  background: #008866;
  color: #fff;
}

#pauseBtn:hover:not(:disabled) {
  background: #006a5a;
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
    margin: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .display-box {
    flex-direction: row;
    gap: 1rem;
  }
  .decibel-value {
    font-size: 16rem;
  }
}
