/**
 * BlueShift Trade Fair Calendar — lives in blueshift_site, not ns_theme_t3blogger.
 * Brand accent matches theme buttons (#13c4d5).
 */

.blueshift-messe {
  color: var(--theme-body-color, #333);
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.frame-type-calendarize_latest,
.frame-type-calendarize_month,
.frame-type-calendarize_list,
.frame-type-calendarize_detail {
  display: block;
  padding-top: 30px;
  padding-bottom: 10px;
}

/* Theme h1 is 45–100px. Keep plugin titles inside the calendar column at section-h2 size. */
.frame-type-calendarize_latest > header,
.frame-type-calendarize_month > header,
.frame-type-calendarize_list > header,
.frame-type-calendarize_detail > header,
.frame-type-calendarize_latest .frame-header,
.frame-type-calendarize_month .frame-header,
.frame-type-calendarize_list .frame-header,
.frame-type-calendarize_detail .frame-header {
  display: none !important;
}

.blueshift-messe-section-title {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: #272727;
  text-align: left;
}

@media (min-width: 768px) {
  .blueshift-messe-section-title {
    font-size: 22px;
    line-height: 32px;
  }
}

@media (min-width: 992px) {
  .blueshift-messe-section-title {
    font-size: 28px;
    line-height: 38px;
  }
}

.blueshift-messe-month,
.blueshift-messe-overview,
.blueshift-messe-latest {
  margin: 0 0 40px;
}

.blueshift-messe-month__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.blueshift-messe-month__title {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
  flex: 1;
}

.blueshift-messe-month__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #13c4d5;
  color: #13c4d5;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
}

.blueshift-messe-month__nav a:hover,
.blueshift-messe-month__nav a:focus {
  background: #13c4d5;
  color: #fff;
}

.blueshift-messe-month__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blueshift-messe-month__grid {
  min-width: 560px;
}

.blueshift-messe-month__weekdays,
.blueshift-messe-month__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.blueshift-messe-month__weekdays {
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
  color: #222;
}

.blueshift-messe-day {
  min-height: 72px;
  border: 1px solid #eee;
  padding: 6px;
  background: #fff;
  text-align: center;
}

.blueshift-messe-day.not-current-month {
  background: #f7f7f7;
  color: #999;
}

.blueshift-messe-day.has-events {
  background: #f3fcfd;
}

.blueshift-messe-day.is-selected {
  outline: 2px solid #13c4d5;
  outline-offset: -2px;
}

.blueshift-messe-day__num {
  display: inline-block;
  min-width: 1.6em;
  font-weight: 600;
}

.blueshift-messe-day__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.blueshift-messe-day.has-events .blueshift-messe-day__btn::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #13c4d5;
}

.blueshift-messe-month__hint {
  margin-top: 16px;
  text-align: center;
}

.blueshift-messe-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.blueshift-messe-table th,
.blueshift-messe-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.blueshift-messe-table th {
  background: #fafafa;
  font-weight: 600;
  color: #222;
}

.blueshift-messe-table a {
  color: #13c4d5;
}

.blueshift-messe-filter-status {
  margin-bottom: 12px;
  font-weight: 600;
}

.blueshift-messe-latest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blueshift-messe-latest__title {
  margin: 0;
}

/* Homepage sidebar: compact list so it matches KEEP IN TOUCH / LATEST POSTS. */
.aside-block-wrapper .frame-type-calendarize_latest {
  padding-top: 0;
  padding-bottom: 0;
}

.aside-block-wrapper .blueshift-messe {
  max-width: none;
  margin: 0;
  padding: 0;
}

.aside-block-wrapper .blueshift-messe-latest {
  margin: 0 0 40px;
}

.aside-block-wrapper .blueshift-messe-latest__header {
  display: block;
  margin-bottom: 12px;
}

.aside-block-wrapper .blueshift-messe-latest__title {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 10px;
}

.aside-block-wrapper .blueshift-messe-latest__header .btn {
  margin-top: 4px;
}

.aside-block-wrapper .blueshift-messe-teaser {
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}

.aside-block-wrapper .blueshift-messe-teaser__date {
  flex: none;
}

.aside-block-wrapper .blueshift-messe-teaser__title {
  font-size: 1rem;
}

.blueshift-messe-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blueshift-messe-teaser {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.blueshift-messe-teaser__date {
  flex: 0 0 160px;
  font-weight: 600;
  color: #222;
}

.blueshift-messe-teaser__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.blueshift-messe-teaser__title a {
  color: inherit;
  text-decoration: none;
}

.blueshift-messe-teaser__title a:hover,
.blueshift-messe-teaser__title a:focus {
  color: #13c4d5;
}

.blueshift-messe-teaser__location {
  margin: 0;
}

.blueshift-messe-meta {
  margin: 20px 0;
}

.blueshift-messe-meta dt {
  font-weight: 600;
  margin-top: 8px;
}

.blueshift-messe-empty {
  margin: 16px 0;
}

.blueshift-messe-detail__back {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .blueshift-messe-month__grid {
    min-width: 490px;
  }

  .blueshift-messe-day {
    min-height: 56px;
  }

  .blueshift-messe-teaser {
    flex-direction: column;
    gap: 6px;
  }

  .blueshift-messe-teaser__date {
    flex: none;
  }

  .blueshift-messe-table thead {
    display: none;
  }

  .blueshift-messe-table,
  .blueshift-messe-table tbody,
  .blueshift-messe-table tr,
  .blueshift-messe-table td {
    display: block;
    width: 100%;
  }

  .blueshift-messe-table tr {
    border: 1px solid #eee;
    margin-bottom: 12px;
    background: #fff;
  }

  .blueshift-messe-table td {
    border-bottom: 0;
    padding: 8px 14px;
  }

  .blueshift-messe-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
  }
}
