<style>
/* =================== [1] RESPONSIVES FORMULAR =================== */
@media (max-width: 768px) {
  #gaestebuch-formular div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  #gaestebuch-formular input,
  #gaestebuch-formular select,
  #gaestebuch-formular textarea {
    width: 100% !important;
  }

  #gaestebuch-formular p {
    margin-bottom: 15px;
  }
}

/* =================== [2] STERNEN-BEWERTUNG IM FORMULAR =================== */
.bewertung-zeile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.bewertung-zeile label:first-child {
  width: 200px;
  font-weight: bold;
}

.sternegruppe {
  direction: rtl;
  display: flex;
  gap: 5px;
}

.sternegruppe input[type="radio"] {
  display: none;
}

.sternegruppe label {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.sternegruppe label:hover,
.sternegruppe label:hover ~ label {
  color: #f7c200;
}

.sternegruppe input[type="radio"]:checked + label,
.sternegruppe input[type="radio"]:checked + label ~ label {
  color: #f7c200;
}

.sternegruppe input[type="radio"]:checked ~ label {
  color: #fccc; /* Fallback */
}

/* =================== [3] STERNENANZEIGE IN DER LISTENANSICHT =================== */
..stern-anzeige {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.6rem;
  line-height: 1;
  color: #f7c200;
}

.stern-anzeige .voll {
  color: #f7c200;
}

.stern-anzeige .leer {
  color: #ccc;
}

.stern-anzeige .halb {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: linear-gradient(to right, #f7c200 50%, #ccc 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.stern-anzeige .halb::before {
  content: "★";
  position: absolute;
  top: 0;
  left: 0;
}





/* =================== [4] STERNENHISTOGRAMM (BEWERTUNGSBALKEN) =================== */
.bewertung-gesamtbox {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
  justify-content: center;
}

.balkenliste {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.balkenreihe {
  display: flex;
  align-items: center;
  gap: 5px;
}

.balkenreihe .zahl {
  width: 20px;
  font-weight: bold;
}

.balkenreihe .balken-hintergrund {
  background: #ddd;
  width: 240px;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.balkenreihe .balken-vorne {
  background: #f7c200;
  height: 100%;
  width: 0%;
  transition: width 0.5s;
}

.gesamtnote-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  font-size: 2rem;
  text-align: center;
}

.gesamtnote-box .sterne {
  font-size: 1.4rem;
  color: #f7c200;
  margin-top: 5px;
}

.ueberschrift-gesamt {
  text-align: center;
  font-size: 1.8rem;
  margin: 40px 0 20px 0;
  font-weight: bold;
}


@media (max-width: 600px) {
  .gesamtnote-box {
    flex-direction: column;
    font-size: 1.5rem;
  }
}

/* =================== [5] LOGIN-FORMULAR (zentriert & responsive) =================== */
#gaestebuch-loginbereich {
  margin: 10px auto 40px auto;
  padding: 20px;
  max-width: 400px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
}

.login-ueberschrift {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.login-formular {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.login-formular input,
.login-formular button {
  width: 100%;
  max-width: 250px;
  padding: 8px;
  display: block;
  box-sizing: border-box;
}

.login-formular button {
  background-color: #f7c200;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.login-formular button:hover {
  background-color: #e6b800;
}

#spamcheck {
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  max-width: 150px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#spamcheck:focus {
  border-color: #f7c200;
  outline: none;
  box-shadow: 0 0 5px #f7c200;
}

.spam-error {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}
</style>
