:root {
  --Schriftfarbe: #1e1e1e;
  --Background: #595959;
  --kleineKachel: #707070;
  --kleineKachelHover: #80adad;
  --kleineKachelOn: #739494;
  --Buttonfarbe: #709292;
  --großeKachel: #4a4b4b;
  --Umrandung: #1e1e1e;
  --SchriftGroß: 25px;
  --SchriftMittel: 20px;
  --SchriftKlein: 15px;
  --SchriftMini: 8px;
}
p {
  margin: 10px;
}
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--Schriftfarbe);
  display: flex;
  background-color: var(--Background);
  font-family: sans-serif;
  font-weight: bolder;
  font-size: var(--SchriftGroß);
  align-items: center;
  justify-content: center;
  justify-items: center;
}
#flowerlampPage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}
#MainFrame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}
#TimeFrame {
  display: flex;
  flex-direction: column;
  width: 80%;
  justify-content: center;
  align-items: center;
}
#VonFrame,
#BisFrame {
  display: flex;
  background-color: var(--kleineKachel);
  width: 100%;
  height: 50px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-size: var(--SchriftMittel);
  font-weight: normal;
}
#FrameWrapper {
  display: flex;
  position: relative;
  flex-direction: column;
  margin: 20px;
  background-color: var(--kleineKachel);
  width: 100%;
  border-radius: 10px;
  align-items: center;
  font-size: var(--SchriftMittel);
  font-weight: normal;
}
#vondropdown,
#bisdropdown {
  width: 150px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#buttonOn,
#buttonOff,
#buttonAuto,
#connect,
#disconnect {
  display: flex;
  flex-direction: column;
  background-color: var(--kleineKachel);
  width: 150px;
  height: 50px;
  justify-content: center;
  align-items: center;
  margin: 20px;
  border-color: var(--Umrandung);
  border-radius: 10px;
  font-size: var(--SchriftMittel);
  font-weight: normal;
}
#disconnect,
#connect {
  margin-top: 70px;
}
#disconnect:hover,
#connect:hover {
  background-color: var(--kleineKachelHover);
}
#disconnect {
  display: none;
}
#buttonOn:hover,
#buttonOff:hover,
#buttonAuto:hover {
  background-color: var(--kleineKachelHover);
}
#aufklappenvon,
#aufklappenbis {
  display: block;
  width: 15px;
  height: 15px;
  background-image: url(IMG/down.png);
  border: 2px solid rgb(15, 17, 19);
  border-radius: 5px;
  background-color: var(--Buttonfarbe);
  text-align: center;
  color: var(--Schriftfarbe);
  background-size: 100%;
  position: absolute;
  right: 5px;
  bottom: 5px;
}
#clock {
  background-image: url(IMG/clock-solid.png);
}
#pen {
  background-image: url(IMG/pen-solid.png);
}
#clock,
#pen {
  display: block;
  position: absolute;
  margin-left: 5px;
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  text-align: center;
  color: var(--Schriftfarbe);
  background-size: 100%;
  right: 40px;
}
#zuklappenvon,
#zuklappenbis {
  display: none;
  width: 15px;
  height: 15px;
  background-image: url(IMG/up.png);
  border: 2px solid rgb(15, 17, 19);
  border-radius: 5px;
  background-color: var(--Buttonfarbe);
  text-align: center;
  color: var(--Schriftfarbe);
  background-size: 100%;
  position: absolute;
  right: 5px;
  bottom: 15px;
}
#BluetoothConnected {
  display: none;
  margin: 5px;
  padding: 5px;
  text-align: center;
  flex-direction: column;
  font-size: var(--SchriftMini);
}
#SliderContainervon,
#SliderContainerbis {
  display: none;
  height: 50px;
  width: 80%;
  text-align: center;
  align-items: center;
}
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: var(--Schriftfarbe);
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 20%;
  background: var(--Buttonfarbe);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: var(--ButtonfarbeHover);
  cursor: pointer;
}
.sensorRow,
.controlRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
}

.sensorBox,
.controlBox {
  background-color: var(--kleineKachel);
  border-radius: 10px;
  padding: 10px;
  margin: 5px;
  width: 250px;
  font-size: var(--SchriftMittel);
  text-align: center;
  position: relative; /* wichtig für absolute Positionierung von .Betriebsart */
}

#pageSelector {
  background-color: var(--kleineKachel);
  color: var(--Schriftfarbe);
  border: 1px solid var(--Umrandung);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: var(--SchriftKlein);
  outline: none;
  font-family: sans-serif;
}

#pageSelector option {
  background-color: var(--großeKachel);
  color: var(--Schriftfarbe);
}
.valveButton {
  margin-top: 10px;
  background-color: var(--kleineKachel);
  color: var(--Schriftfarbe);
  border: 0px solid var(--Umrandung);
  border-radius: 10px;
  font-size: var(--SchriftKlein);
  cursor: pointer;
  font-family: sans-serif;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.valveButton:hover {
  background-color: var(--kleineKachelHover);
}
.pageButton, .pageButtonActive {
  flex: 1;
  margin: 5px;
  padding: 10px;
  background-color: var(--kleineKachel);
  border: 0px solid var(--Umrandung);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: var(--SchriftKlein);
  user-select: none;
  /* NEU: Entfernt Unterstreichung und setzt Textfarbe */
  text-decoration: none;
  color: var(--Schriftfarbe);
  display: flex; /* Stellt sicher, dass flex-Eigenschaften angewendet werden */
  align-items: center; /* Zentriert den Text vertikal */
  justify-content: center; /* Zentriert den Text horizontal */
}

.pageButton:hover {
  background-color: var(--kleineKachelHover);
  color: var(--Schriftfarbe);
}
.pageButtonActive {
  background-color: var(--kleineKachelOn);
  color: var(--Schriftfarbe);
}
#LastReadingFirebase {
  display: block;
  margin: 5px;
  padding: 5px;
  text-align: center;
  flex-direction: column;
  font-size: var(--SchriftMini);
}
.Betriebsart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: var(--SchriftMini);
  opacity: 0.7; /* optional dezenter Stil */
}
.titleText {
  display: block;
  margin-bottom: 10px;
}
#Title {
  margin: 0px;
  padding: 0px;
  justify-content: center;
  top: 0px;
}
#changelogPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: lighter;
}

.changelog-content {
  background: var(--Background);
  padding: 20px 0px 20px 0px;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.changelog-content h2 {
  margin-top: 0;
  font-size: var(--SchriftGroß);
}

.changelog-content ul {
  padding-left: 20px;
  font-size: var(--SchriftKlein)
}

#closeChangelog {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--Buttonfarbe);
  color: var(--Schriftfarbe);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--Background);
  padding: 10px;
  margin: 10px;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.modal-input {
  box-sizing: border-box;
  margin: 10px;
}
.sensorDropdown{
  margin: 20px;
  width: 50%;
  height: 30px;
  background-color: var(--Buttonfarbe);
  border-radius: 5px;
  border-color: var(--Schriftfarbe);
}