* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}

.container {
  display: flex;
  height: 100vh;
}

#map {
  flex-grow: 1;
  height: 100%;
}

.sidebar {
  flex-basis: 20%;
  min-width: 300px;
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Formularfelder */
form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
}

form textarea {
  resize: none;
  height: 75px;
}

.btn {
  padding: 0.5rem 1rem;
  margin: 1rem 0rem;
  font-weight: bold;
  background: #3366cc;
  color: white;
  border: none;
  cursor: pointer;
}

.eintrag {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .container {
    flex-direction: column !important;
  }

  #map {
    width: 100%;
    height: 50vh !important;
  }

  .sidebar {
    width: 100%;
    height: 50vh !important;
    min-width: unset;
    padding: 1rem;
  }
}

.user-location-icon {
  font-size: 28px;
  line-height: 24px;
  user-select: none;
  text-shadow:
    1px 1px 2px rgba(0,0,0,0.3);
}

.rating-stars {
  direction: rtl;
  display: inline-flex;
  gap: 4px;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars label {
  font-size: 1.6rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.rating-stars input:checked ~ label {
  color: #f5b301;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #f5b301;
}

.star {
  font-size: 1.2rem;
  margin-right: 2px;
}

.star-filled {
  color: #f5b301;
}

.star-empty {
  color: #ccc;
}

.message {
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Container: Positioniert Modal relativ zur Karte (zentriert unten) */
.modal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 1000;
  display: block;
  width: 100%;
  max-width: 500px;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
}

/* Wenn ausgeblendet: transparent + leicht verschoben */
.modal.hidden {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

/* Innenbereich: Optisch abgesetzt und schön abgerundet */
.modal-content {
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .modal {
    position: fixed;
    width: 95%;
  }
}
