/* Ausgabe der Shortcodes [ll_konzerte], [ll_festivals], [ll_termine].
   Bewusst genügsam: nutzt die Farbvariablen des LIVE-&-LOUD-Themes, wenn sie
   da sind, und fällt sonst auf neutrale Werte zurück. */
.lle-events {
	--lle-ink: var(--c-ink, #14161a);
	--lle-muted: var(--c-muted, #5f6672);
	--lle-line: var(--c-line, #e4e7ec);
	--lle-surface: var(--c-surface, #f6f7f9);
	--lle-accent: var(--c-accent, #fd001e);
	--lle-accent-ink: var(--c-accent-ink, #fff);
	--lle-radius: var(--radius, 14px);

	color: var(--lle-ink);
	margin: 0 0 32px;
}

.lle-events__title { margin: 0 0 18px; }
.lle-events__more { margin: 18px 0 0; }
.lle-events--empty p { color: var(--lle-muted); font-style: italic; }

/* Staedteauswahl fuer Besucher. Mobil volle Breite, ab 601px so breit wie
   der laengste Stadtname. 44px hoch, damit der Daumen sie sicher trifft. */
.lle-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 18px;
}
.lle-filter__label {
	font-weight: 700;
	font-size: 15px;
}
.lle-filter__select {
	flex: 1 1 100%;
	min-width: 0;
	min-height: 44px;
	padding: 8px 40px 8px 14px;
	border: 1px solid var(--lle-line);
	border-radius: 8px;
	background-color: var(--lle-surface);
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	color: var(--lle-ink);
	font: inherit;
	font-size: 16px; /* unter 16px zoomt Safari auf dem iPhone beim Antippen */
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.lle-filter__select:focus-visible {
	outline: 2px solid var(--lle-accent);
	outline-offset: 2px;
}
.lle-filter .lle-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.lle-events--empty .lle-filter + p { margin-top: 0; }

@media (min-width: 601px) {
	.lle-filter__select { flex: 0 1 auto; min-width: 260px; }
}

/* Buttons */
/* Die Spezifitaet ist Absicht: Themes faerben Links im Inhalt oft ueber
   ".entry-content a" ein. Ohne den hoeheren Selektor gewinnt diese Regel und
   der Ticket-Button steht rot auf rot. */
.lle-events a.lle-btn,
.lle-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	background: var(--lle-accent);
	color: var(--lle-accent-ink);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.lle-events a.lle-btn:hover,
.lle-events a.lle-btn:focus,
.lle-btn:hover { filter: brightness(.93); color: var(--lle-accent-ink); text-decoration: none; }
.lle-events a.lle-btn--small,
.lle-btn--small { padding: 5px 11px; font-size: 13px; }

/* Status */
.lle-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	/* Eckenradius 8 px wie Kicker und Buttons im CI – keine runde Pille. */
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	background: var(--lle-surface);
	color: var(--lle-muted);
}
.lle-badge--sold_out { background: #fdf3e7; color: #8a4b08; }
.lle-badge--cancelled { background: #fdecea; color: #8a1f11; }
.lle-badge--postponed,
.lle-badge--relocated { background: #e7f1fb; color: #0b4a81; }

/* Liste – mobile first ------------------------------------------------
   Die Aufteilung ist auf jedem Geraet dieselbe: Datum links, Angaben in der
   Mitte, Ticket rechts. Auf dem Telefon nur enger gesetzt.

   Vorher rutschte der Ticket-Button unter den Text, sobald es schmal wurde.
   Jede Zeile war damit fast zweihundert Pixel hoch, und auf einen Bildschirm
   passten drei Termine. Jetzt sind es rund neunzig Pixel.
   ------------------------------------------------------------------- */
.lle-row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 2px 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--lle-line);
}
.lle-row__date {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 2px;
	border: 1px solid var(--lle-line);
	border-radius: 8px;
	background: var(--lle-surface);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.lle-row__day { font-size: 1.2rem; font-weight: 900; letter-spacing: -.02em; }
.lle-row__month { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lle-accent); }
.lle-row__year { font-size: 10px; color: var(--lle-muted); }

.lle-row__main {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.lle-row__title { margin: 0 0 2px; font-size: 1rem; line-height: 1.25; }
.lle-row__title a { text-decoration: none; }
.lle-row__meta { margin: 0; font-size: 13px; line-height: 1.35; }
.lle-row__extra { margin: 2px 0 0; font-size: 12px; color: var(--lle-muted); }

/* Der Ticket-Button steht rechts in derselben Zeile, nicht darunter. */
.lle-row__action {
	grid-column: 3;
	grid-row: 1;
	align-self: center;
}

/* Karten */
.lle-cards {
	/* Flexbox statt Raster: eine angebrochene letzte Reihe steht mittig,
	   statt links zu kleben und rechts tote Flaeche zu lassen. */
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}
.lle-cards > * {
	flex: 0 1 calc((100% - 48px) / 3);
	min-width: min(100%, 260px);
}
.lle-card {
	border: 1px solid var(--lle-line);
	border-radius: var(--lle-radius);
	overflow: hidden;
	background: var(--c-canvas, #fff);
	display: flex;
	flex-direction: column;
}
.lle-card__media { aspect-ratio: 16 / 10; background: var(--lle-surface); }
.lle-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lle-card__body { padding: 16px 18px 20px; }
.lle-card__kicker {
	font-size: 11px; font-weight: 700; letter-spacing: .09em;
	text-transform: uppercase; color: var(--lle-accent);
}
.lle-card__title { margin: 6px 0 8px; font-size: 1.1rem; }
.lle-card__title a { text-decoration: none; }
.lle-card__date { margin: 0 0 2px; font-weight: 600; color: var(--lle-accent); font-size: 15px; }
.lle-card__place { margin: 0; font-size: 15px; color: var(--lle-muted); }
.lle-card__extra { margin: 8px 0 0; font-size: 14px; color: var(--lle-muted); }
.lle-card__action { margin: 14px 0 0; }

/* Kompakt */
.lle-compact { list-style: none; margin: 0; padding: 0; }
.lle-compact__item {
	padding: 8px 0;
	border-bottom: 1px solid var(--lle-line);
	font-size: 15px;
}
.lle-compact__date { font-weight: 700; color: var(--lle-accent); margin-right: 6px; }
.lle-compact__city { color: var(--lle-muted); }

/* Tabelle */
.lle-table { width: 100%; border-collapse: collapse; }
.lle-table th {
	text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
	color: var(--lle-muted); border-bottom: 2px solid var(--lle-line); padding: 8px 10px;
}
.lle-table td { padding: 10px; border-bottom: 1px solid var(--lle-line); font-size: 15px; }
.lle-table a { text-decoration: none; }

/* Auf dem Telefon steht eine Tabelle als Bloecke – Spalten gibt es dort
   nicht genug Platz fuer. */
.lle-table thead { display: none; }
.lle-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--lle-line); }
.lle-table td { display: block; border: 0; padding: 2px 0; }

/* Ab Tablet: mehr Luft, groessere Schrift, echte Tabelle. ------------- */
@media (min-width: 783px) {
	.lle-row {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		gap: 18px;
		padding: 16px 0;
	}
	.lle-row__date { padding: 8px 4px; }
	.lle-row__day { font-size: 1.55rem; }
	.lle-row__month { font-size: 12px; }
	.lle-row__year { font-size: 11px; }
	.lle-row__title { margin-bottom: 4px; font-size: 1.15rem; }
	.lle-row__meta { font-size: 15px; }
	.lle-row__extra { margin-top: 4px; font-size: 14px; }

	.lle-table thead { display: table-header-group; }
	.lle-table tr { display: table-row; padding: 0; border-bottom: 0; }
	.lle-table td { display: table-cell; border-bottom: 1px solid var(--lle-line); padding: 10px; }
}

/* Karten: einspaltig, ab Tablet zwei, ab Schreibtisch drei. */
.lle-cards > * { flex-basis: 100%; }

@media (min-width: 601px) {
	.lle-cards > * { flex-basis: calc((100% - 24px) / 2); }
}

/* Kennzeichnung frisch hinzugekommener Termine */
.lle-badge--neu {
	background: var(--ll-accent, #e11d2e);
	color: var(--ll-on-accent, #fff);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.lle-card__kicker + .lle-badge--neu {
	margin-left: .5rem;
}

.lle-row__promoter,
.lle-card__promoter {
	margin: .15rem 0 0;
	font-size: .8rem;
	opacity: .7;
}

.lle-events--empty p {
	margin: 0;
	opacity: .7;
}

/* ------------------------------------------------------------------ */
/* Kompakte Liste – fuer die schmale Spalte neben einem Beitragsraster  */
/* ------------------------------------------------------------------ */

.lle-events--kompakt {
	padding: 4px 18px 18px;
	border: 1px solid var(--lle-line);
	border-radius: 12px;
	background: var(--lle-surface, transparent);
}

.lle-events--kompakt .lle-events__title {
	margin: 18px 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--lle-accent);
	font-size: 1.05rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.lle-compact__item {
	display: grid;
	/* Breit genug fuer einen Festivalzeitraum wie "26.–28.09." – mit 54px
	   lief der Titel sonst in das Datum hinein. */
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 2px 12px;
	align-items: baseline;
	padding: 11px 0;
}

.lle-compact__item:last-child {
	border-bottom: 0;
}

.lle-compact__date {
	margin: 0;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.lle-compact__title {
	font-weight: 600;
	line-height: 1.3;
}

.lle-compact__city {
	grid-column: 2;
	display: block;
	font-size: 13px;
	margin-top: 1px;
}


.lle-compact__title {
	grid-column: 2;
}

/*
 * Die kompakte Liste steht in einer schmalen Spalte. Dort ist neben Datum und
 * Titel kein Platz mehr fuer einen Knopf – er steht unter der Stadt. Erst wenn
 * die Spalte breit genug ist, rueckt er in dieselbe Zeile.
 */
.lle-compact__ticket {
	grid-column: 2;
	justify-self: start;
	margin: 6px 0 2px;
}

@media (min-width: 481px) {
	.lle-compact__item {
		grid-template-columns: 78px minmax(0, 1fr) auto;
	}

	.lle-compact__ticket {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
		justify-self: end;
		margin: 0 0 0 10px;
	}
}

.lle-events--kompakt .lle-events__more {
	margin: 14px 0 4px;
}

.lle-events--kompakt .lle-events__more .lle-btn {
	display: block;
	text-align: center;
}

/*
 * Der Ticket-Button in der Zeile: schmal genug, dass daneben noch Titel und
 * Ort stehen, und hoch genug, um ihn mit dem Daumen zu treffen.
 */
.lle-row__action .lle-btn {
	white-space: nowrap;
	padding: 7px 12px;
	font-size: 13px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
}

@media (min-width: 783px) {
	.lle-row__action .lle-btn {
		padding: 9px 16px;
		font-size: 15px;
		min-height: 0;
		display: inline-block;
	}
}

.lle-events--liste .lle-row:last-child {
	border-bottom: 0;
}

/* Suchleiste */
.lle-suche {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
}

.lle-suche__feld {
	flex: 1 1 260px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid currentColor;
	border-radius: 4px;
	font: inherit;
	background: transparent;
	color: inherit;
}

.lle-suche__knopf {
	flex: 0 0 auto;
}

.lle-suche__reset {
	flex: 0 0 auto;
	font-size: 0.9em;
	text-decoration: underline;
}

/* -------------------------------------------------------------------
   Nichts ragt aus dem Seitenrahmen heraus. Lange Titel, breite
   Auswahlfelder und der Ticket-Button haben auf schmalen Bildschirmen
   sonst die ganze Seite in die Breite gezogen.
   ------------------------------------------------------------------- */
.lle-events,
.lle-suche {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.lle-events *,
.lle-suche * {
	box-sizing: border-box;
	max-width: 100%;
}

.lle-filter,
.lle-filter__select,
.lle-suche__feld {
	max-width: 100%;
}

@media (max-width: 600px) {
	.lle-filter__select,
	.lle-suche__feld {
		width: 100%;
		flex: 1 1 100%;
	}

	/* Ticket-Button auf eigene Zeile, statt die Zeile breiter zu machen. */
	.lle-row {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.lle-row__action {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: start;
		margin-top: 8px;
	}

	.lle-events a.lle-btn {
		white-space: normal;
	}
}
