/**
 * KK Content Tiles - Basis-Styles.
 *
 * Instanz-spezifische Werte (Spaltenzahl, Abstand, Höhe, Eckenradius,
 * Overlay-/Hover-Farben, Anhebung, Animationsdauer) werden pro Shortcode-
 * Aufruf per Inline-<style> gesetzt, siehe render_shortcode() in
 * includes/class-kk-content-tiles.php.
 */

.kkct-wrapper {
	margin: 30px 0;
}

.kkct-grid {
	display: grid;
	/* grid-template-columns und gap werden pro Instanz inline gesetzt */
}

.kkct-item {
	position: relative;
	display: block;
	background-size: cover;
	background-position: center center;
	background-color: #2b2b2b; /* Fallback, falls kein Beitragsbild vorhanden ist */
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	text-decoration: none;
	color: #fff;
}

.kkct-item:hover {
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.kkct-item:focus-visible {
	outline: 2px solid #ce8935;
	outline-offset: 2px;
}

.kkct-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.kkct-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	text-align: center;
	box-sizing: border-box;
}

.kkct-title {
	display: block;
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.3;
	color: #fff;
}

.kkct-excerpt {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

/* Responsives Verhalten, unabhängig von der eingestellten Spaltenzahl */
@media (max-width: 900px) {
	.kkct-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.kkct-grid {
		grid-template-columns: 1fr !important;
	}
}
