/* ══════════════════════════════════════════════════════════════════
   BMT Kalender – Stylesheet v2.0
   ══════════════════════════════════════════════════════════════════ */

/* ── Container ───────────────────────────────────────────────────── */
.bmt-calendar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #000;
}

/* ── Skeleton Loader ─────────────────────────────────────────────── */
@keyframes bmt-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.bmt-skeleton {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.2rem;
}

.bmt-skeleton__title,
.bmt-skeleton__meta {
  border-radius: 4px;
  background: linear-gradient(90deg, #ececec 25%, #f8f8f8 50%, #ececec 75%);
  background-size: 600px 100%;
  animation: bmt-shimmer 1.4s infinite linear;
}

.bmt-skeleton__title {
  height: 28px;
  width: 60%;
  margin-bottom: .75rem;
}

.bmt-skeleton__meta {
  height: 14px;
  width: 45%;
  margin-bottom: .5rem;
}

.bmt-skeleton__meta--short {
  width: 30%;
}

/* ── Filter-Leiste (gemeinsam) ───────────────────────────────────── */
.bmt-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .5rem;
}

.bmt-filter--archive {
  flex-direction: column;
  gap: .75rem;
}

.bmt-filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.bmt-filter__label {
  font-size: .85rem;
  opacity: .65;
  margin-right: .2rem;
  white-space: nowrap;
}

.bmt-filter__btn {
  padding: 4px 14px;
  font-size: .85rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.bmt-filter__btn:hover {
  border-color: #888;
}

.bmt-filter__btn--active {
  background: var(--wp--preset--color--primary, var(--accent-color, #e63a2e));
  border-color: var(--wp--preset--color--primary, var(--accent-color, #e63a2e));
  color: #fff;
}

/* ── Event-Karte ─────────────────────────────────────────────────── */
.bmt-event {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1.2rem;
  cursor: pointer;
  color: #000;
  transition: border-color .15s;
}

.bmt-event:hover {
  border-color: #999;
}

/* ── Layout: Desktop ─────────────────────────────────────────────── */
.bmt-event-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
}

.bmt-event-info {
  flex: 1;
  min-width: 0;
}

.bmt-event-image {
  flex-shrink: 0;
}

/* ── Titel ───────────────────────────────────────────────────────── */
.bmt-event-title {
  margin: 0 0 .6rem;
  font-size: 3em;
  line-height: 1.15;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Datum + Zeit ────────────────────────────────────────────────── */
.bmt-event-meta {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .25rem;
  flex-wrap: wrap;
}

.bmt-event-date {
  font-weight: bold;
  color: #000;
}

.bmt-event-time {
  font-weight: normal;
  color: #000;
}

.bmt-time-label,
.bmt-doors-label {
  font-weight: normal;
  opacity: .65;
  font-size: .9em;
}

/* ── Tag + Ticket Zeile ──────────────────────────────────────────── */
.bmt-event-meta--tags {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

/* ── Kategorie-Badge ─────────────────────────────────────────────── */
.bmt-tag {
  display: inline-block;
  font-size: .8rem;
  padding: 2px 10px;
  border-radius: 3px;
  margin: .5rem 0 .6rem;
  border: 1px solid currentColor;
  color: #000;
}

.bmt-tag--rave,
.bmt-tag--concert {
  color: var(--wp--preset--color--primary, var(--accent-color, #e63a2e));
  border-color: var(--wp--preset--color--primary, var(--accent-color, #e63a2e));
}

/* ── Ticket-Button ───────────────────────────────────────────────── */
.bmt-ticket-btn {
  display: inline-block;
  font-size: .8rem;
  padding: 2px 10px;
  border-radius: 3px;
  border: 1px solid var(--wp--preset--color--primary, var(--accent-color, #e63a2e));
  background: var(--wp--preset--color--primary, var(--accent-color, #e63a2e));
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity .15s;
}

.bmt-ticket-btn:hover {
  opacity: .82;
}

/* ── Details (Pressetext + Line-up) – eingeklappt ────────────────── */
.bmt-event-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.bmt-event.bmt-open .bmt-event-details {
  display: block;
}

/* ── Section-Titel (Pressetext / Line-up) ────────────────────────── */
.bmt-section {
  margin-bottom: 1.2rem;
}

.bmt-section:last-child {
  margin-bottom: 0;
}

.bmt-section-title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .5;
  margin: 0 0 .5rem;
  color: #000;
}

/* ── Pressetext ──────────────────────────────────────────────────── */
.bmt-press-text {
  font-size: .95rem;
  line-height: 1.65;
  color: #222;
  white-space: pre-wrap; /* Zeilenumbrüche aus Plain-Text erhalten */
}

.bmt-press-text p { margin: 0 0 .75em; }
.bmt-press-text p:last-child { margin-bottom: 0; }

/* ── Künstlerliste ───────────────────────────────────────────────── */
.bmt-artists {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bmt-artists li {
  padding: .2rem 0;
  color: #000;
}

.bmt-artists a {
  color: #000;
  text-decoration: none;
}

.bmt-artists a:hover {
  text-decoration: underline;
}

/* ── Bild Desktop ────────────────────────────────────────────────── */
.bmt-thumbnail {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {

  .bmt-event-main {
    flex-direction: column;
  }

  .bmt-event-title {
    font-size: 1.5em;
    -webkit-line-clamp: 2;
  }

  .bmt-event-image {
    width: 100%;
    order: 3;
  }

  .bmt-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
  }

  .bmt-event-info {
    order: 1;
  }

  .bmt-filter__btn {
    font-size: .8rem;
    padding: 4px 10px;
  }
}

/* ── Sonstige ────────────────────────────────────────────────────── */
.bmt-no-events,
.bmt-error {
  color: #000;
  font-style: italic;
  opacity: .6;
}
