/* Wernerhof calendar, Contao 4.13: styles affect only this module. */
.wh12 {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 1.5rem;
}

.wh12 .wh12__heading {
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
  line-height: 1.35;
}

.wh12 .wh12__months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wh12 .wh12__month {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #d9dee4;
  border-radius: 7px;
  background: #fff;
}

.wh12 .wh12__month-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

.wh12 .wh12__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.wh12 .wh12__cell {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.wh12 .wh12__cell--weekday {
  height: 20px;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.wh12 .wh12__cell--empty {
  visibility: hidden;
}

.wh12 .wh12__cell--occupied,
.wh12 .wh12__swatch--occupied {
  background: #b91c1c;
  color: #fff;
}

.wh12 .wh12__cell--free,
.wh12 .wh12__swatch--free {
  background: #16733c;
  color: #fff;
}

.wh12 .wh12__cell--past,
.wh12 .wh12__swatch--past {
  background: #e5e7eb;
  color: #374151;
}

.wh12 .wh12__cell--today {
  outline: 2px solid #111827;
  outline-offset: 1px;
  font-weight: 700;
}

.wh12 .wh12__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  font-size: 13px;
}

.wh12 .wh12__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wh12 .wh12__swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.wh12 .wh12__note {
  margin: 8px 0 0;
  color: #555;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .wh12 .wh12__months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .wh12 .wh12__months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .wh12 .wh12__months {
    grid-template-columns: minmax(0, 1fr);
  }
}
