/* Tour Plugin – Frontend-Styles
   ------------------------------------------------------------------ */

.tour-plugin {
	--tour-plugin-color: #8B0000;
	--tour-plugin-font-size: 16px;
	--tour-plugin-muted: rgba(139, 0, 0, 0.75);
	color: var(--tour-plugin-color);
	font-size: var(--tour-plugin-font-size);
	line-height: 1.5;
	box-sizing: border-box;
}

/* Erzwinge einheitliche Farbe für alle Textelemente —
   manche Themes setzen z. B. h3 { color: #1f2430 } mit höherer Spezifität,
   !important hebelt das zuverlässig aus. */
.tour-plugin,
.tour-plugin h1,
.tour-plugin h2,
.tour-plugin h3,
.tour-plugin h4,
.tour-plugin h5,
.tour-plugin h6,
.tour-plugin p,
.tour-plugin a,
.tour-plugin span,
.tour-plugin strong,
.tour-plugin em,
.tour-plugin time {
	color: var(--tour-plugin-color) !important;
}

.tour-plugin *,
.tour-plugin *::before,
.tour-plugin *::after {
	box-sizing: border-box;
}

.tour-plugin__notice {
	padding: 0.75em 1em;
	border: 1px solid #c3c4c7;
	background: #fff;
	border-left: 4px solid #d63638;
	color: #1d2327;
}

.tour-plugin__empty {
	text-align: center;
	font-style: italic;
	opacity: 0.8;
}

/* Suchfeld
   ------------------------------------------------------------------ */
.tour-plugin__search {
	margin: 0 auto 1.75em;
	text-align: center;
	max-width: 480px;
}
.tour-plugin--cards .tour-plugin__search {
	text-align: left;
	max-width: 100%;
}
.tour-plugin__search-input {
	display: inline-block;
	width: 100%;
	padding: 0.65em 1.1em;
	font: inherit;
	line-height: 1.4;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(139, 0, 0, 0.28);
	border-radius: 999px;
	outline: none;
	box-shadow: 0 1px 2px rgba(139, 0, 0, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.tour-plugin__search-input::placeholder {
	color: var(--tour-plugin-muted);
}
.tour-plugin__search-input:hover {
	border-color: rgba(139, 0, 0, 0.55);
}
.tour-plugin__search-input:focus {
	border-color: var(--tour-plugin-color);
	box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.15);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Classic-Stil (Bild-Stil: zentriert, einfarbig)
   ------------------------------------------------------------------ */
.tour-plugin--classic {
	max-width: min(720px, 100%);
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	text-align: center;
}

.tour-plugin--classic .tour-plugin__date {
	font-size: 1.5em;
	font-weight: 700;
	margin: 1.4em 0 0.4em;
	line-height: 1.1;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__city {
	font-size: 1.18em;
	font-weight: 700;
	margin: 0 0 0.4em;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__venue {
	margin: 0 0 0.4em;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__time {
	font-size: 0.95em;
	opacity: 0.95;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__info {
	margin: 0.4em 0;
	white-space: pre-line;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__artist {
	font-weight: 700;
	margin: 0 0 0.3em;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__ticket {
	margin: 0.8em 0 0;
}

.tour-plugin--classic .tour-plugin__ticket-link {
	display: inline-block;
	padding: 0.5em 1.2em;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.tour-plugin--classic .tour-plugin__ticket-link:hover {
	background: currentColor;
	color: #fff;
}

.tour-plugin--classic .tour-plugin__sep {
	letter-spacing: 0.25em;
	margin: 1.4em 0 0;
	font-weight: 700;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__ical {
	text-align: center;
	margin-top: 1.5em;
	font-size: 0.9em;
	color: var(--tour-plugin-color);
}

.tour-plugin--classic .tour-plugin__ical a {
	color: inherit;
}

/* Cards-Stil
   ------------------------------------------------------------------ */
.tour-plugin--cards .tour-plugin__search {
	text-align: left;
}
.tour-plugin--cards .tour-plugin__search-input {
	max-width: none;
}
.tour-plugin--cards .tour-plugin__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25em;
}
.tour-plugin--cards .tour-plugin__card {
	border: 1px solid currentColor;
	border-radius: 6px;
	padding: 1em 1.1em 1.1em;
	background: #fff;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}
.tour-plugin--cards .tour-plugin__card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5em;
	font-weight: 700;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__card-weekday {
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.8;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__card-title {
	font-size: 1.05em;
	margin: 0.2em 0 0.1em;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__card-artist {
	font-weight: 700;
	margin: 0;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__card-city {
	font-weight: 700;
	margin: 0;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__card-venue,
.tour-plugin--cards .tour-plugin__card-time,
.tour-plugin--cards .tour-plugin__card-info {
	margin: 0;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__card-ticket {
	margin-top: auto;
	display: inline-block;
	padding: 0.5em 1.1em;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
	align-self: flex-start;
}
.tour-plugin--cards .tour-plugin__card-ticket:hover {
	background: currentColor;
	color: #fff;
}
.tour-plugin--cards .tour-plugin__ical {
	margin-top: 1.25em;
	font-size: 0.9em;
	color: var(--tour-plugin-color);
}
.tour-plugin--cards .tour-plugin__ical a {
	color: inherit;
}

.tour-plugin__no-results {
	margin: 1em 0;
	font-style: italic;
	opacity: 0.8;
	color: var(--tour-plugin-color);
}

/* Filterzustand
   ------------------------------------------------------------------ */
.tour-plugin__event[hidden],
.tour-plugin__card[hidden] {
	display: none !important;
}
