/* kHaus Booking Widget — orientiert an khaus.ch/de/angebot/raum-buchen */

#khaus-booking-widget {
  --khaus-coral: #db766c;
  --khaus-black: #0a0a0a;
  --khaus-bg: #fefefe;
  --khaus-field-bg: #f0f0f0;
  --khaus-busy: #f3d6d3;
  --khaus-free: #e3efe6;
  --khaus-partial: #faf0c9;

  font-family: "Avenir Next", Helvetica, Roboto, Arial, sans-serif;
  color: var(--khaus-black);
  background: var(--khaus-bg);
  max-width: 760px;
  box-sizing: border-box;
}
#khaus-booking-widget * {
  box-sizing: border-box;
}

#khaus-booking-widget .khb-eyebrow {
  color: var(--khaus-coral);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}
#khaus-booking-widget h2.khb-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--khaus-black);
  margin: 0 0 20px;
}
#khaus-booking-widget p.khb-intro {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
}

/* Room selector — pill tabs, analog zu den Checkbox-Optionen auf der Seite */
#khaus-booking-widget .khb-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
#khaus-booking-widget .khb-room-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border: 1.5px solid var(--khaus-black);
  border-radius: 30px;
  background: var(--khaus-bg);
  color: var(--khaus-black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#khaus-booking-widget .khb-room-btn:hover {
  background: var(--khaus-black);
  color: var(--khaus-bg);
}
#khaus-booking-widget .khb-room-btn.active {
  background: var(--khaus-black);
  color: var(--khaus-bg);
}

#khaus-booking-widget .khb-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 10px;
}
#khaus-booking-widget .khb-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#khaus-booking-widget .khb-legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 3px;
}
#khaus-booking-widget .khb-legend .free i {
  background: var(--khaus-free);
}
#khaus-booking-widget .khb-legend .busy i {
  background: var(--khaus-busy);
}
#khaus-booking-widget .khb-legend .partial i {
  background: var(--khaus-partial);
}

#khaus-booking-widget .khb-calendar {
  margin-bottom: 20px;
}
/* Minimal FullCalendar re-skin, damit es sich einfügt statt nach Library auszusehen */
#khaus-booking-widget .fc {
  font-family: inherit;
}
#khaus-booking-widget .fc .fc-toolbar-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}
#khaus-booking-widget .fc .fc-button {
  background: var(--khaus-bg);
  border: 1.5px solid var(--khaus-black);
  color: var(--khaus-black);
  border-radius: 30px;
  box-shadow: none;
  text-transform: capitalize;
  font-weight: 600;
  padding: 6px 14px;
}
#khaus-booking-widget .fc .fc-button:hover,
#khaus-booking-widget .fc .fc-button-active {
  background: var(--khaus-black) !important;
  color: var(--khaus-bg) !important;
  border-color: var(--khaus-black) !important;
}
#khaus-booking-widget .fc .fc-daygrid-day.khb-busy {
  background: var(--khaus-busy);
  pointer-events: none;
  opacity: 0.85;
}
#khaus-booking-widget .fc .fc-daygrid-day.khb-past {
  background: #f7f7f7;
  pointer-events: none;
}
#khaus-booking-widget .fc .fc-daygrid-day.khb-partial {
  background: var(--khaus-partial);
}
#khaus-booking-widget .fc .fc-highlight {
  background: rgba(219, 118, 108, 0.25);
}

#khaus-booking-widget .khb-selection {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  background: var(--khaus-free);
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}
#khaus-booking-widget .khb-selection.visible {
  display: block;
}
#khaus-booking-widget .khb-selection a {
  color: var(--khaus-black);
  text-decoration: underline;
  font-weight: 400;
  cursor: pointer;
  margin-left: 10px;
}

#khaus-booking-widget form {
  display: none;
}
#khaus-booking-widget form.visible {
  display: block;
}

#khaus-booking-widget .khb-field {
  margin-bottom: 14px;
}
#khaus-booking-widget p.khb-hint {
  font-size: 13px;
  color: #555;
  margin: -6px 0 14px;
}
#khaus-booking-widget .khb-row {
  display: flex;
  gap: 14px;
}
#khaus-booking-widget .khb-row .khb-field {
  flex: 1;
}
#khaus-booking-widget label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
#khaus-booking-widget input[type="text"],
#khaus-booking-widget input[type="email"],
#khaus-booking-widget input[type="tel"],
#khaus-booking-widget input[type="number"],
#khaus-booking-widget select,
#khaus-booking-widget textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 8px;
  background: var(--khaus-field-bg);
  border: none;
  border-radius: 0;
  color: var(--khaus-black);
}
#khaus-booking-widget textarea {
  min-height: 70px;
  resize: vertical;
}
#khaus-booking-widget .khb-radio-group {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 400;
}
#khaus-booking-widget .khb-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin-bottom: 0;
}

#khaus-booking-widget details.khb-more {
  margin: 20px 0;
  border-top: 1.5px solid var(--khaus-black);
  padding-top: 14px;
}
#khaus-booking-widget details.khb-more summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  text-transform: uppercase;
}
#khaus-booking-widget details.khb-more summary::-webkit-details-marker {
  display: none;
}
#khaus-booking-widget details.khb-more summary::before {
  content: "+ ";
  color: var(--khaus-coral);
}
#khaus-booking-widget details.khb-more[open] summary::before {
  content: "– ";
}
#khaus-booking-widget details.khb-more .khb-field {
  margin-top: 14px;
}

#khaus-booking-widget button[type="submit"] {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  border: 1.5px solid var(--khaus-black);
  border-radius: 30px;
  background: var(--khaus-bg);
  color: var(--khaus-black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#khaus-booking-widget button[type="submit"]:hover {
  background: var(--khaus-black);
  color: var(--khaus-bg);
}
#khaus-booking-widget button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#khaus-booking-widget .khb-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  display: none;
}
#khaus-booking-widget .khb-message.visible {
  display: block;
}
#khaus-booking-widget .khb-message.success {
  background: var(--khaus-free);
}
#khaus-booking-widget .khb-message.error {
  background: var(--khaus-busy);
}

@media (max-width: 600px) {
  #khaus-booking-widget .khb-row {
    flex-direction: column;
    gap: 0;
  }
}

#khaus-booking-widget .khb-hint {
  margin: 6px 0 12px;
  font-size: 0.85rem;
  color: #6b6b6b;
}
