/* =====================================================================
   Programmseite: Eventkarten im neuen Kartendesign (17.11.2026)
   Wird nur von home/templates/programm.tpl.php geladen. Alle Klassen
   beginnen mit pk-, damit keine andere Seite beeinflusst wird.

   Aufbau einer Karte:
     .pk-img     Foto mit Datumsfeld (.pk-date) und Bildnachweis (.pk-copyright)
     .pk-body    Wochentag + Uhrzeit (.pk-meta), darunter der Titel (.pk-title)
     .pk-ecken   Marken unten in den Ecken: links Anmeldung, rechts Buchungsstand
                 (.pk-marke, Stufen: ohne = ruhig, .eng = es wird knapp, .zu = vorbei)
   Die Texte der Marken kommen aus get_karten_hinweise() in home/php/programm.php.
   ===================================================================== */

.pk-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin: 20px 10px 10px 10px;
}

.pk-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	background-color: white;
	box-shadow: 2px 2px 6px rgba(0,0,0, 0.10);
	transition: transform 0.25s, box-shadow 0.25s;
}
.pk-card:hover {
	transform: translateY(-2px) scale(1.015);
	box-shadow: 2px 6px 16px rgba(0,0,0, 0.14);
}
.pk-card > a {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}
.pk-card > a:hover {
	text-decoration: none;
}
.pk-card > a:focus-visible {
	outline: 3px solid var(--color-green, #678201);
	outline-offset: -3px;
}

/* ---------- Foto ---------- */

.pk-img {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #ddeebb, #edf6ca);
}
.pk-img > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Datumsfeld: schmal, nur Tag und Monat */
.pk-date {
	position: absolute;
	top: 12px;
	left: 12px;
	box-sizing: border-box;
	min-width: 56px;
	padding: 8px 12px;
	border-radius: 8px;
	background-color: white;
	text-align: center;
	box-shadow: 0 4px 12px -4px rgba(0,0,0, 0.25);
}
.pk-date .d {
	display: block;
	font-size: 21px;
	font-weight: bold;
	line-height: 1;
	color: #1d1d1d;
}
.pk-date .m {
	display: block;
	margin-top: 3px;
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b6b6b;
}

.pk-copyright {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0 7px 1px 5px;
	border-top-left-radius: 1px;
	background-color: rgba(128,128,128, 0.33);
	color: #f3f3f3;
	font-size: 10px;
	font-weight: 500;
	text-shadow: 0 0 1px rgba(0,0,0, 0.45);
}

/* ---------- Text ---------- */

.pk-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 16px 16px 14px 16px;
}
.pk-meta {
	font-size: 13px;
	line-height: 1.3;
	color: #535353;
}
.pk-card .pk-title {
	margin: 0;
	padding: 0;
	font-size: 16.5px;
	font-weight: bold;
	font-style: normal;
	line-height: 1.25;
	text-align: left;
	color: #1d1d1d;
}

/* ---------- Marken in den Ecken ---------- */

.pk-ecken {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 8px;
	padding: 0 12px 12px 12px;
}
.pk-marke {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background-color: #f0f0f0;
	color: #535353;
	font-size: 11.5px;
	font-weight: bold;
	line-height: 1.3;
	white-space: nowrap;
}
.pk-marke svg {
	flex: none;
}
.pk-marke.rechts {
	margin-left: auto;
}
.pk-marke.eng {
	background-color: #fbefc0;
	color: #6b4a00;
}
.pk-marke.zu {
	background-color: #e6e6e6;
	color: #6b6b6b;
	font-weight: normal;
}

/* ---------- schmalere Bildschirme ---------- */

@media all and (max-width: 1050px) {
	.pk-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media all and (max-width: 850px) {
	.pk-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}
@media all and (max-width: 500px) {
	.pk-grid {
		grid-template-columns: 1fr;
		margin-left: 6px;
		margin-right: 6px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pk-card {
		transition: none;
	}
}
