/* inRostock Event-Slider
   Desktop: links großes 1:1-Bild, rechts slidebare 2×2-Kachelfläche.
   Mobil: Kacheln unter dem großen Bild. Abstand überall 1rem. */

.inres-slider {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-items: start;
}

/* ── Kacheln ─────────────────────────────────────────────── */
.inres-tile {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 0;
	text-decoration: none;
}
.inres-tile:focus-visible {
	outline: 3px solid #C80010;
	outline-offset: 2px;
}
.inres-img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0 !important;
	transition: transform .35s ease;
}
a.inres-tile:hover .inres-img {
	transform: scale(1.04);
}

/* Hover-Overlay für Events: Titel + Datum */
.inres-hover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: .15rem;
	padding: 1rem;
	box-sizing: border-box;
	background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%);
	color: #fff;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.inres-tile:hover .inres-hover,
.inres-tile:focus-visible .inres-hover {
	opacity: 1;
}
.inres-hover-title {
	display: block;
	font-weight: 700;
	line-height: 1.25;
}
.inres-tile-small .inres-hover-title {
	font-size: .95rem;
}
.inres-tile-large .inres-hover-title {
	font-size: 1.35rem;
}
.inres-hover-date {
	display: block;
	font-size: .85rem;
	opacity: .9;
}

/* Farbkachel mit Auto-Fit-Text */
.inres-color {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8%;
	box-sizing: border-box;
}
.inres-fit {
	display: block;
	width: 100%;
	color: #fff;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	overflow-wrap: break-word;
	font-size: 1rem; /* wird per JS eingepasst */
}

/* ── Rechte Spalte: Slider ───────────────────────────────── */
.inres-right {
	min-width: 0;
}
.inres-viewport {
	overflow: hidden;
}
.inres-track {
	display: flex;
	transition: transform .4s ease;
}
.inres-page {
	flex: 0 0 100%;
	min-width: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-content: start;
}

/* ── Controls ────────────────────────────────────────────── */
.inres-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	margin-top: 1rem;
}
.inres-arrow {
	border: 0;
	border-radius: 0;
	background: none;
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	padding: .1rem .3rem;
	transition: opacity .2s ease;
}
.inres-arrow:hover {
	opacity: .7;
}
.inres-arrow:disabled {
	opacity: .3;
	cursor: default;
}
.inres-dots {
	display: flex;
	gap: .5rem;
}
.inres-dot {
	width: .325rem;
	height: .325rem;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	padding: 0;
	box-sizing: border-box;
}
.inres-dot.is-active {
	background: #fff;
}

/* ── Mobil: Kacheln unter dem großen Bild ────────────────── */
@media (max-width: 767px) {
	.inres-slider {
		grid-template-columns: 1fr;
	}
}
