/*
 * Bettinger Mühle – Termine
 * Übernommen aus den bisherigen Elementor-Klassen hp-event-* (Startseite) und tm-* (Terminseite),
 * damit die Listen nach der Umstellung genauso aussehen wie vorher.
 */

.bmt { --bmt-serif: var(--font-serif, "Playfair Display", Georgia, serif); --bmt-orange: #E07F00; --bmt-ink: #1F1A14; --bmt-muted: #9a8b7a; }
.bmt *, .bmt *::before, .bmt *::after { box-sizing: border-box; }
/* Lange Wörter wie „Weihnachtslesung“ in schmalen Karten trennen statt überlaufen. */
.bmt-event-title, .bmt-title, .bmt-event-meta, .bmt-meta { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Höhere Spezifität als die Link-Stile von Theme und Elementor-Kit. */
.bmt a.bmt-event, .bmt a.bmt-event:hover, .bmt a.bmt-event:focus, .bmt a.bmt-event:visited,
.bmt a.bmt-item, .bmt a.bmt-item:hover, .bmt a.bmt-item:focus, .bmt a.bmt-item:visited { color: inherit; text-decoration: none; }

/* ---------- Startseite: Leiste „Nächste Termine“ ---------- */
.bmt-next { display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px; width: 100%; }
.bmt-event { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; flex: 1 1 220px; min-width: 0; padding: 20px; border-radius: 18px; background-color: #ffffff; box-shadow: 0 16px 40px 0 rgba(20,12,4,0.14); transition: transform 200ms, box-shadow 200ms; }
a.bmt-event:hover, a.bmt-event:focus-visible { box-shadow: 0 22px 48px 0 rgba(20,12,4,0.2); transform: translate3d(0,-4px,0); }
.bmt-event-date { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 0 0 auto; width: 62px; height: 66px; border-radius: 14px; background-color: #FFF3E0; }
.bmt-event-day { display: block; font-family: var(--bmt-serif); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--bmt-orange); }
.bmt-event-month { display: block; margin-top: 4px; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bmt-ink); }
.bmt-event-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bmt-event-meta { display: block; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bmt-muted); }
.bmt-event-title { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--bmt-ink); }

@media (max-width: 767px) {
	.bmt-next { flex-wrap: nowrap; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14px 4px 0; }
	.bmt-event { flex: 0 0 80%; padding: 16px; gap: 14px; scroll-snap-align: start; }
}

/* ---------- Terminseite: Liste nach Monaten ---------- */
.bmt-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 900px; }
.bmt-month { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-top: 12px; }
.bmt-month-t { display: block; font-family: var(--bmt-serif); font-weight: 500; font-size: 2rem; color: var(--bmt-ink); white-space: nowrap; }
.bmt-line { display: block; flex: 1 1 auto; height: 1px; background-color: #e6dac8; }
.bmt-item { display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 18px 24px 18px 18px; border: 1px solid #efe5d6; border-radius: 20px; background-color: #ffffff; box-shadow: 0 8px 22px 0 rgba(60,40,15,0.05); transition: transform 200ms, box-shadow 200ms, border-color 200ms; }
a.bmt-item:hover, a.bmt-item:focus-visible { border-color: #FFC266; box-shadow: 0 16px 34px 0 rgba(60,40,15,0.1); transform: translate3d(0,-3px,0); }
.bmt-date { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 0 0 auto; width: 76px; height: 80px; border-radius: 16px; background-color: #FFF3E0; }
.bmt-day { display: block; font-family: var(--bmt-serif); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--bmt-orange); }
.bmt-mon { display: block; margin-top: 4px; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bmt-ink); }
.bmt-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.bmt-meta { display: block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bmt-muted); }
.bmt-title { display: block; font-weight: 600; font-size: 1.2rem; line-height: 1.35; color: var(--bmt-ink); }
.bmt-more { display: block; flex: 0 0 auto; font-weight: 600; font-size: 0.95rem; color: var(--bmt-orange); }

@media (max-width: 767px) {
	.bmt-item { padding: 14px; gap: 14px; }
	.bmt-date { width: 62px; height: 66px; }
	.bmt-day { font-size: 1.7rem; }
	.bmt-title { font-size: 1.04rem; }
	.bmt-more { display: none; }
}

/* ---------- Leerer Zustand ---------- */
.bmt-empty { margin: 0; padding: 18px 20px; border-radius: 16px; background: #FBF8F3; color: var(--bmt-ink); font-size: 1rem; }
.bmt-empty--hell { background: rgba(255,255,255,0.12); color: #ffffff; }

/* ---------- Hinweis auf vergangenen Detailseiten ---------- */
.bmt-vorbei { position: relative; z-index: 5; max-width: 1240px; margin: 16px auto; padding: 14px 20px; border-radius: 14px; border: 1px solid #FFC266; background: #FFF3E0; color: var(--bmt-ink); font-size: 1rem; line-height: 1.5; }
.bmt-vorbei a { color: var(--bmt-orange) !important; font-weight: 600; margin-left: 6px; }
