/* Salettiner Gottesdienste - Liste nach Vorbild kath-balgach.ch/gottesdienste */

.sal-gd { margin: 20px 0 30px; color: #333; }

.sal-gd-filter {
	display: flex; justify-content: center; align-items: center; gap: 15px;
	margin-bottom: 25px; padding: 10px 0;
}
.sal-gd-filter label { font-size: 17px; font-weight: 600; margin: 0; white-space: nowrap; }
.sal-gd-filter select {
	padding: 8px 12px; font-size: 16px; border: 1px solid #999; border-radius: 4px;
	background: #fff; min-width: 180px; max-width: 260px; height: auto; margin: 0;
}

.sal-gd-liste { display: flex; flex-direction: column; gap: 10px; }

.sal-gd-item { border-left: 5px solid #8fa41d; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Theme-Stile für <button> (Skeleton) neutralisieren */
.sal-gd .sal-gd-kopf {
	display: grid; grid-template-columns: 270px 1fr auto; gap: 15px; align-items: center;
	width: 100%; height: auto; margin: 0; padding: 15px 20px;
	background: #fff; border: 0; border-radius: 0; box-shadow: none;
	font: inherit; line-height: 1.4; letter-spacing: normal; text-transform: none; text-align: left;
	color: #333; cursor: pointer; white-space: normal;
}
.sal-gd .sal-gd-kopf:disabled { cursor: default; opacity: 1; }
.sal-gd .sal-gd-kopf:focus-visible { outline: 2px solid #8fa41d; outline-offset: -2px; }

.sal-gd-datum { font-size: 17px; font-weight: 600; white-space: nowrap; }
.sal-gd-titel { font-size: 19px; font-weight: 700; color: #202737; }
.sal-gd-hinweis { display: block; font-size: 14px; font-weight: 400; font-style: italic; color: #8fa41d; margin-top: 2px; }
.sal-gd-badge {
	display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 3px;
	background: #a33b3b; color: #fff; font-size: 12px; font-weight: 600; vertical-align: middle;
}
.sal-gd-entfaellt .sal-gd-datum,
.sal-gd-entfaellt .sal-gd-titel { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .45); color: #888; }
.sal-gd-entfaellt .sal-gd-badge,
.sal-gd-entfaellt .sal-gd-hinweis { text-decoration: none; display: inline-block; }

.sal-gd-toggle {
	font-size: 14px; font-weight: 400; white-space: nowrap;
	padding: 5px 12px; border: 1px solid #202737; border-radius: 4px; transition: background-color .2s ease;
}
.sal-gd-kopf:hover .sal-gd-toggle { background: #f2f2f2; }
.sal-gd-icon { margin-left: 4px; font-size: 16px; font-weight: 700; }

.sal-gd-details { display: flex; gap: 30px; padding: 20px; background: #f5f5f5; }
.sal-gd-details[hidden] { display: none; }
.sal-gd-info { flex: 1; }
.sal-gd-info > div { margin-bottom: 10px; line-height: 1.6; }
.sal-gd-info > div:last-child { margin-bottom: 0; }
.sal-gd-text { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ddd; }
.sal-gd-text p:last-child { margin-bottom: 0; }
.sal-gd-bild { width: 250px; flex-shrink: 0; }
.sal-gd-bild img { width: 100%; height: auto; border-radius: 4px; }

.sal-gd-seiten { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 25px; }
.sal-gd-seiten[hidden] { display: none; }
.sal-gd-nummern { display: flex; flex-wrap: wrap; gap: 6px; }
.sal-gd .sal-gd-seiten button {
	height: auto; margin: 0; padding: 7px 14px; min-width: 40px; line-height: 1.4;
	font: inherit; font-size: 14px; letter-spacing: normal; text-transform: none;
	border: 1px solid #999; border-radius: 4px; background: #f5f5f5; color: #333; cursor: pointer;
}
.sal-gd .sal-gd-seiten .sal-gd-zurueck,
.sal-gd .sal-gd-seiten .sal-gd-weiter,
.sal-gd .sal-gd-seiten button.aktiv { background: #8fa41d; border-color: #8fa41d; color: #fff; }
.sal-gd .sal-gd-seiten button:disabled { background: #ccc; border-color: #ccc; color: #fff; cursor: not-allowed; opacity: .7; }

@media (max-width: 768px) {
	.sal-gd .sal-gd-kopf { grid-template-columns: 1fr; gap: 6px; padding: 14px 15px; }
	.sal-gd-datum { white-space: normal; font-size: 15px; }
	.sal-gd-titel { font-size: 17px; }
	.sal-gd-toggle { justify-self: start; margin-top: 4px; }
	.sal-gd-details { flex-direction: column; padding: 15px; gap: 15px; }
	.sal-gd-bild { width: 100%; order: -1; }
	.sal-gd-filter { flex-direction: column; gap: 8px; }
}
