/* =========================================================
   VIVA Monaco – Artikel-Kacheln (Nachbau ECS-Pro-Vorlagen
   139, 146, 224, 233, 229)
   ========================================================= */

.vm-kacheln {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
}

.vm-kachel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
}

.vm-kachel:hover,
.vm-kachel:focus { color: inherit; text-decoration: none; }

.vm-kachel:focus-visible {
	outline: 3px solid #b90078;
	outline-offset: -3px;
}

/* Spaltenreihenfolge */
.vm-kachel--bild-links .vm-kachel__bild { order: 1; }
.vm-kachel--bild-links .vm-kachel__text { order: 2; }

/* Textspalte */
.vm-kachel__text {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	padding: 20px;
}

.vm-kachel--schwarz .vm-kachel__text { background: #000; color: #fff; }
.vm-kachel--gelb .vm-kachel__text { background: #ff0; color: #000; }
.vm-kachel--cyan .vm-kachel__text { background: #0ff; color: #000; }
.vm-kachel--magenta .vm-kachel__text { background: #f0f; color: #000; }

.vm-kachel .vm-kachel__titel {
	margin: 0 0 20px;
	padding: 0;
	color: inherit;
	font-family: "Montserrat", sans-serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	white-space: normal;
	overflow-wrap: anywhere;
}

.vm-kachel__untertitel,
.vm-kachel__untertitel p {
	margin: 0;
	color: inherit;
	font-family: "Montserrat", sans-serif;
	font-size: 29px;
	font-weight: 500;
	line-height: 1;
	overflow-wrap: anywhere;
}

.vm-kachel__plus {
	position: absolute;
	left: 50%;
	bottom: 20px;
	width: 50px;
	height: 50px;
	margin-left: -25px;
	line-height: 0;
	transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}

/* Die weißen Plus-Symbole saßen bisher 6px höher */
.vm-kachel--plus-weiss .vm-kachel__plus { bottom: 26px; }

.vm-kachel .vm-kachel__plus img { width: 100%; height: 100%; max-width: none; display: block; }

/* Bildspalte */
.vm-kachel__bild {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: #111;
}

.vm-kachel .vm-kachel__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

/* Moderner Hover: Bild zoomt sanft, Plus dreht sich */
.vm-kachel:hover .vm-kachel__img,
.vm-kachel:focus-visible .vm-kachel__img { transform: scale(1.05); }

.vm-kachel:hover .vm-kachel__plus,
.vm-kachel:focus-visible .vm-kachel__plus { transform: rotate(90deg); }

/* Seitennummern */
.vm-seiten {
	margin-top: 23px;
	text-align: center;
	font-size: 16px;
}

.vm-seiten .page-numbers {
	display: inline-block;
	margin: 0 8.5px;
	color: #cc3366;
	text-decoration: none;
	transition: transform .2s;
}

.vm-seiten .page-numbers:first-child { margin-left: 0; }
.vm-seiten .page-numbers:last-child { margin-right: 0; }
.vm-seiten .page-numbers.current { color: #333; }
.vm-seiten a.page-numbers:hover { transform: translateY(-2px); text-decoration: underline; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 1024px) {
	.vm-kacheln { grid-template-columns: minmax(0, 1fr); }

	.vm-kachel { min-block-size: clamp(270px, 69vw, 328px); }

	.vm-kachel__bild { aspect-ratio: auto !important; }

	.vm-kachel__text {
		gap: 8px;
		padding: clamp(14px, 4vw, 20px);
	}

	.vm-kachel .vm-kachel__titel {
		margin: 0;
		font-size: clamp(16px, 4.9vw, 24px);
		line-height: 1.08;
	}

	.vm-kachel__untertitel,
	.vm-kachel__untertitel p {
		font-size: clamp(15px, 4.6vw, 20px);
		line-height: 1.18;
	}

	.vm-kachel__plus {
		position: static;
		margin: auto auto 0;
		padding-top: 4px;
		box-sizing: content-box;
	}

	.vm-kachel--plus-weiss .vm-kachel__plus { margin-bottom: 6px; }
}

@media (max-width: 767px) {
	.vm-kachel__plus { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.vm-kachel__img, .vm-kachel__plus { transition: none; }
}
