/* ---------------------------------------------------------------
   KKB Spieltermine – Tabelle der Vorstellungen
   Farben hier anpassen:
   --------------------------------------------------------------- */
.kkb-termine {
	--kkb-kopf: #287acc;       /* Kopfzeile – euer Blau */
	--kkb-kopf-text: #ffffff;
	--kkb-link: #ff7e0d;       /* „anmelden“ – euer Orange */
	--kkb-linie: #e6eef6;      /* Trennlinien */
	--kkb-grau: #9a9a9a;       /* ausgebuchte Zeilen */
	--kkb-info: #2e7d4f;       /* Info-Spalte */

	margin: 1.5em 0;
}

/* Filterleiste (nur Gesamtübersicht) */
.kkb-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 18px;
}

.kkb-filter label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 200px;
	font-weight: 700;
	color: var(--kkb-kopf);
}

.kkb-filter select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-weight: 400;
	color: #333;
}

/* Tabelle */
.kkb-termine table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 6px;
	overflow: hidden;
	font-size: 1rem;
}

.kkb-termine th,
.kkb-termine td {
	padding: 13px 16px;
	text-align: left;
	border: 1px solid var(--kkb-linie);
	vertical-align: top;
}

.kkb-termine th {
	background: var(--kkb-kopf);
	color: var(--kkb-kopf-text);
	font-weight: 700;
	border-color: rgba(255, 255, 255, .25);
}

.kkb-termine tbody tr:nth-child(even) {
	background: #fafcfe;
}

.kkb-termine tbody tr:hover {
	background: #f2f7fc;
}

.kkb-termine .kkb-film {
	font-weight: 600;
}

.kkb-termine .kkb-kino {
	text-transform: uppercase;
}

.kkb-termine .kkb-info {
	font-size: .9em;
	color: var(--kkb-info);
}

.kkb-termine td:last-child {
	white-space: nowrap;
}

.kkb-termine a {
	color: var(--kkb-link);
	font-weight: 600;
	text-decoration: none;
}

.kkb-termine a:hover,
.kkb-termine a:focus {
	text-decoration: underline;
}

.kkb-termine tr.kkb-ausgebucht td {
	color: var(--kkb-grau);
}

.kkb-termine tr[hidden] {
	display: none !important;
}

/* Hinweise */
.kkb-hinweis,
.kkb-keine-treffer {
	padding: 12px 0;
	color: #666;
}

.kkb-zurueck {
	margin-bottom: 12px;
}

.kkb-zurueck a {
	color: #287acc;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px dotted #287acc;
}

/* Button „Alle … Termine anzeigen“ unter der Tabelle */
.kkb-mehr-zeile {
	margin: 12px 0 0;
	text-align: center;
}

.kkb-mehr {
	padding: 10px 22px;
	border: 2px solid var(--kkb-kopf);
	border-radius: .5em;
	background: #fff;
	color: var(--kkb-kopf);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.kkb-mehr:hover,
.kkb-mehr:focus-visible {
	background: var(--kkb-kopf);
	color: #fff;
}

/* Sprungziel auf der Kartenbestellung: Abstand, damit eine feste Kopfzeile nichts verdeckt */
#kkb-anmeldung {
	scroll-margin-top: 120px;
}

/* Handy: jede Vorstellung als Karte statt breiter Tabelle */
@media (max-width: 680px) {
	.kkb-termine thead {
		display: none;
	}

	.kkb-termine table,
	.kkb-termine tbody,
	.kkb-termine tr,
	.kkb-termine td {
		display: block;
		width: 100%;
	}

	.kkb-termine tr {
		margin-bottom: 14px;
		border: 1px solid var(--kkb-linie);
		border-left: 4px solid var(--kkb-kopf);
		border-radius: 6px;
		background: #fff;
	}

	.kkb-termine td {
		border: 0;
		padding: 5px 14px;
	}

	.kkb-termine td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}

	.kkb-termine td:first-child {
		padding-top: 12px;
		font-weight: 700;
		font-size: 1.05em;
	}

	.kkb-termine td:first-child::before {
		content: "";
	}

	.kkb-termine td:last-child {
		padding-bottom: 12px;
	}

	.kkb-termine td.kkb-info:empty {
		display: none;
	}
}

/* Eigene Anmeldeseite [kkb_formular]: optionaler Kopf über dem Formular */
.kkb-formular-kopf {
	margin: 0 0 16px;
	padding: 14px 18px;
	border-left: 4px solid #287acc;
	background: #f2f7fc;
}

.kkb-formular-kopf h2 {
	margin: 0 0 6px;
	color: #287acc;
	font-size: 1.3em;
}

.kkb-formular-kopf p {
	margin: 0;
}
