/* 3MT Gigs – Frontend. Farben über CSS-Variablen anpassbar (Theme setzt --tmt-*). */
.tmt-agenda, .tmt-single, .tmt-newsletter, .tmt-wa-cta {
	--tmt-accent: var(--color-accent, #b4232c);
	--tmt-primary: var(--color-primary, #8c0202);
	--tmt-text: var(--color-text, #555);
	--tmt-muted: #6b6b6b;
	--tmt-border: rgba(0, 0, 0, .12);
	--tmt-soft: rgba(0, 0, 0, .04);
	--tmt-radius: 12px;
}
.tmt-agenda *, .tmt-newsletter * { box-sizing: border-box; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tmt-agenda { margin: 2.5rem 0; scroll-margin-top: 90px; }
.tmt-agenda__title { text-align: center; }

/* Buttons */
.tmt-btn { display: inline-flex; align-items: center; gap: .5em; background: var(--tmt-primary); color: #fff !important; border: 0; border-radius: 0; padding: .7em 1.3em; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; line-height: 1.2; transition: filter .15s; }
.tmt-btn:hover, .tmt-btn:focus-visible { filter: brightness(1.15); }
.tmt-btn--ghost { background: transparent; color: var(--tmt-primary) !important; box-shadow: inset 0 0 0 2px var(--tmt-primary); }
.tmt-btn--wa { background: #25d366; color: #fff !important; font-size: 1.05rem; white-space: normal; text-align: left; }
.tmt-wa-cta { text-align: center; margin: 2rem 0; }
.tmt-icon { flex: none; vertical-align: -3px; }

/* Filter */
.tmt-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; padding: 1rem; background: var(--tmt-soft); border-radius: var(--tmt-radius); margin-bottom: 1.5rem; }
.tmt-filters label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; flex: 1 1 160px; }
.tmt-filters select, .tmt-filters input { font: inherit; font-weight: 400; padding: .5em .6em; border: 1px solid var(--tmt-border); border-radius: 8px; background: #fff; width: 100%; min-height: 2.6em; }
.tmt-filters__actions { display: flex; gap: .75rem; align-items: center; }
.tmt-filters__reset { font-size: .9rem; }

/* Grid & Karten */
.tmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.25rem; }
.tmt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tmt-border); border-radius: var(--tmt-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tmt-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.tmt-card.is-cancelled { opacity: .7; }
.tmt-card.is-cancelled .tmt-card__title { text-decoration: line-through; }
.tmt-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #8c0202, #3a0000); overflow: hidden; }
.tmt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tmt-card:hover .tmt-card__media img { transform: scale(1.04); }
.tmt-card__date { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.6rem; padding: .35rem .5rem; background: var(--tmt-accent); color: #fff; border-radius: 8px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.tmt-card__day { font-size: 1.6rem; font-weight: 700; }
.tmt-card__month { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .15rem; }
.tmt-card__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.tmt-card__title { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.tmt-card__title a { color: #333; text-decoration: none; }
.tmt-card__title a:hover { color: var(--tmt-accent); }
.tmt-card__when, .tmt-card__where { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: .95rem; color: var(--tmt-text); }
.tmt-card__when .tmt-icon, .tmt-card__where .tmt-icon { color: var(--tmt-accent); margin-top: .2em; }
.tmt-card__time { font-weight: 700; color: var(--tmt-primary); margin-left: .35em; }
.tmt-card__address { font-size: .875rem; color: var(--tmt-muted); }
.tmt-card__links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: auto 0 0; padding-top: .5rem; font-weight: 700; font-size: .92rem; }
.tmt-card__links a { color: var(--tmt-primary); }
.tmt-card__maps::after { content: " ↗"; }
.tmt-card__credit { font-size: .72rem; color: var(--tmt-muted); margin: 0; }
.tmt-badge { align-self: flex-start; display: inline-block; background: #fdecea; color: #a50e0e; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .2em .7em; text-transform: uppercase; }
.tmt-empty { text-align: center; color: var(--tmt-muted); padding: 1.5rem 0 .5rem; }

.tmt-pager { display: flex; justify-content: space-between; margin-top: 1.5rem; font-weight: 700; }
.tmt-pager__next { margin-left: auto; }

/* Einzelansicht */
.tmt-single { padding: 2rem 0 3rem; }
.tmt-single__title { margin: .3rem 0 .5rem; }
.tmt-single__lead { font-size: 1.1rem; color: var(--tmt-muted); }
.tmt-single__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; margin: 1.5rem 0; }
.tmt-single__media img { width: 100%; height: auto; border-radius: var(--tmt-radius); display: block; }
.tmt-facts { margin: 0; }
.tmt-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tmt-muted); margin-top: 1rem; }
.tmt-facts dd { margin: .2rem 0 0; font-size: 1.05rem; }
.tmt-facts__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem !important; }
.tmt-facts__social { display: flex; flex-direction: column; gap: .2rem; margin-top: 1rem !important; font-size: .9rem !important; }
@media (max-width: 760px) { .tmt-single__grid { grid-template-columns: 1fr; } }

/* Newsletter */
.tmt-newsletter { max-width: 760px; margin: 0 auto; }
.tmt-newsletter__intro { text-align: center; }
.tmt-newsletter__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.tmt-newsletter__field { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 200px; font-size: .85rem; font-weight: 600; }
.tmt-newsletter__field input { font: inherit; font-weight: 400; padding: .65em .7em; border: 1px solid var(--tmt-border); background: #fff; width: 100%; }
.tmt-newsletter__consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; margin-top: .75rem; }
.tmt-newsletter__consent input { margin-top: .2em; }
.tmt-newsletter__status { min-height: 1.5em; font-weight: 700; margin: .75rem 0 0; }
.tmt-newsletter.is-error .tmt-newsletter__status { color: #a50e0e; }
.tmt-newsletter.is-ok .tmt-newsletter__status { color: #1e7a3d; }
.tmt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Schwebender WhatsApp-Button */
.tmt-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem; border-radius: 999px; background: #25d366; color: #fff !important; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); font-weight: 700; }
.tmt-wa-float .tmt-icon { width: 30px; height: 30px; }
.tmt-wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s, padding .3s; }
.tmt-wa-float:hover .tmt-wa-float__label, .tmt-wa-float:focus-visible .tmt-wa-float__label { max-width: 12rem; padding-right: .4rem; }

@media (prefers-reduced-motion: reduce) {
	.tmt-card, .tmt-card__media img, .tmt-wa-float__label { transition: none; }
	.tmt-card:hover { transform: none; }
}
