/* Ringelbach Hexen - Bildslider (Vanilla JS, kein jQuery/Flexslider mehr noetig) */

.rh-slider {
	position: relative;
	overflow: hidden;
	margin: 0 0 20px;
	background: #fff;
	border: 4px solid #fff;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	aspect-ratio: 16 / 9;
}

.rh-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.rh-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	background-color: #f2f2f2;
}

.rh-slide.is-active {
	opacity: 1;
	z-index: 1;
}

.rh-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.rh-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 18px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease, background 0.3s ease;
}

.rh-slider:hover .rh-slider-arrow,
.rh-slider-arrow:focus-visible {
	opacity: 0.85;
}

.rh-slider-arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}

.rh-slider-prev {
	left: 10px;
}

.rh-slider-next {
	right: 10px;
}

.rh-slider-dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.rh-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.rh-slider-dot.is-active {
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 860px) {
	.rh-slider-arrow {
		opacity: 0.7;
	}
}

@media screen and (max-width: 550px) {
	.rh-slider {
		aspect-ratio: 4 / 3;
		border-radius: 0;
	}
}
