/* Am Anfang der Datei hinzufügen */
html,
body {
  height: 100%;
}

#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Spezifische Stile für die Restaurant-Seite */
.hero {
  height: 90vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  padding: 40px 0;
}

.content .container {
  max-width: 800px;
  margin: 0 auto;
}

.content h2 {
  margin-bottom: 20px;
  text-align: center;
}

.content h3 {
  margin-bottom: 20px;
}

.content p {
  margin-bottom: 15px;
}

.menu-section-heading {
  color: #3b5c71;
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.opening-hours-banner {
  background-color: #3b5c71;
  color: #fffbf0;
  padding: 15px 0;
  text-align: center;
}

.opening-hours-banner p {
  margin: 0;
  font-size: 1.1em;
}

.opening-hours-banner p:first-child {
  margin-bottom: 5px;
}

/* Stile für das Reservierungsformular */
.reservation-section {
  background-color: #fffbf0;
  padding: 40px 0;
}

.reservation-box {
  background-color: rgba(95, 137, 119, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .reservation-box {
    max-width: 450px;
  }
}

.reservation-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.reservation-form form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: normal;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #fffbf0;
  border-radius: 4px;
  font-size: 16px;
}

.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #fffbf0;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  font-size: 16px;
}

.form-group select:focus {
  outline: none;
  border-color: #3b5c71;
  box-shadow: 0 0 0 2px rgba(59, 92, 113, 0.2);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-weight: normal;
  color: #333;
}

.btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #3b5c71;
  color: #fffbf0;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #344753;
  transform: scale(1.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn:disabled:hover {
  background-color: #cccccc;
  transform: scale(1);
}

.form-group.checkbox label a {
  color: #333;
  text-decoration: underline;
}

.form-group.checkbox label a:hover {
  color: #333;
}

.menu-heading {
  text-decoration: underline;
}

.menu-list {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

.menu-list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.dish-name {
  flex: 1;
}

.dish-price {
  color: #3b5c71;
  margin-left: 10px;
}

.image-strip {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.image-strip img {
  flex: 1;
  object-fit: cover;
  height: 200px;
  width: 16.666%;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .image-strip {
    flex-wrap: wrap;
  }

  .image-strip img {
    width: 33.333%;
    height: 150px;
  }
}

/* Checkbox-Styling */
.checkbox-wrapper {
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #3b5c71;
  border-radius: 3px;
}

.checkbox-wrapper:hover input[type="checkbox"] ~ .checkmark {
  background-color: #f0f0f0;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark {
  background-color: #fff;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  display: block;
  left: 4px;
  top: 0px;
  width: 6px;
  height: 11px;
  border: solid #3b5c71;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Hide disabled form elements */
.form-group.hidden {
  display: none;
}

/* Smooth transition for showing form elements */
.form-group.hidden {
  opacity: 0;
}

.hidden {
  display: none;
}

/* Added CSS rules */
.checkbox {
  position: relative;
  padding-left: 30px;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #3b5c71;
  border-radius: 4px;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-label .checkbox-custom::after {
  content: "";
  position: absolute;
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #3b5c71;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.label-text {
  user-select: none;
  font-size: 14px;
  line-height: 1.4;
}

.calendar-day.booked-out {
  background-color: #ffcccc;
  color: #999;
  cursor: not-allowed;
}

#date::placeholder {
  color: #999;
  opacity: 1;
}

#date:not(:placeholder-shown) {
  color: #333;
}

#date {
  font-size: 16px;
}

/* Bestätigungsnachricht Styles */
#confirmation {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #d4edda;
  margin-top: 100px;
  margin-bottom: 100px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
}

#confirmation h2 {
  color: #155724;
  margin-bottom: 10px;
}

#confirmation p {
  color: #155724;
  margin-bottom: 5px;
}

@media (max-width: 1024px) {
  #confirmation {
    border-radius: 0px;
    width: 100vw;
  }
}

.reservation-box.hidden {
  display: none;
}

#confirmation {
  display: none;
}

#confirmation.visible {
  display: block;
}

.form-hint {
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
}

.content .container {
  max-width: 800px;
  margin: 0 auto;
}
