/* CSS-Grid-Elemente (Elementor Loop Grid) haben per Default min-width:auto,
   wodurch sich die Grid-Spalte an eine (anfangs evtl. instabile) Breiten-
   messung im Inneren anpassen und aufschaukeln kann. Das ist die eigentliche
   Ursache der riesigen Breiten weiter unten im Baum - daher hier am
   Grid-Element selbst fixen, nicht nur an dessen Nachfahren. */
.elementor-loop-container.elementor-grid > * {
	min-width: 0;
}

.e-loop-item,
.e-loop-item .e-con,
.e-loop-item .elementor-widget,
.e-loop-item .elementor-widget-container {
	min-width: 0;
}

/* Elementors eigener Widget-Wrapper ist der Flex-Container, in dem der
   Chromium aspect-ratio-Bug auftreten kann - daher auch hier absichern. */
.elementor-widget-agc_carousel,
.elementor-widget-agc_carousel > .elementor-widget-container {
	min-width: 0;
	min-height: 0;
}

.agc-carousel {
	--agc-accent: #ffffff;
	--agc-caption-bg: rgba(0, 0, 0, 0.55);
	--agc-caption-color: #ffffff;

	width: 100%;
	min-width: 0;
	height: 400px;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.agc-carousel .swiper-wrapper {
	width: 100%;
	min-width: 0;
	min-height: 0;
}

.agc-carousel .swiper-slide {
	position: relative;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.agc-carousel .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.agc-carousel .agc-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0 14px;
	display: flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
	background: var(--agc-caption-bg);
	color: var(--agc-caption-color);
}

/* Navigation Pfeile */
.agc-carousel .swiper-button-prev,
.agc-carousel .swiper-button-next {
	color: var(--agc-accent);
	background: var(--agc-nav-bg, rgba(0, 0, 0, 0.3));
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Wir rendern eigene Icons (Font-Icon oder SVG) - Swipers eingebauten
   Pfeil-Glyph (::after) daher deaktivieren, sonst erscheinen zwei Pfeile. */
.agc-carousel .swiper-button-prev:after,
.agc-carousel .swiper-button-next:after {
	display: none;
}

.agc-carousel .swiper-button-prev i,
.agc-carousel .swiper-button-next i {
	line-height: 1;
}

.agc-carousel .swiper-button-prev svg,
.agc-carousel .swiper-button-next svg {
	fill: currentColor;
}

/* Pagination Punkte */
.agc-carousel .swiper-pagination-bullet {
	background: var(--agc-accent);
	opacity: 0.6;
}

.agc-carousel .swiper-pagination-bullet-active {
	opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.agc-carousel .agc-caption {
		font-size: 12px;
		padding: 0 10px;
	}

	.agc-carousel .swiper-button-prev,
	.agc-carousel .swiper-button-next {
		width: 26px;
		height: 26px;
		--swiper-navigation-size: 13px;
	}
}

@media (max-width: 480px) {
	.agc-carousel .swiper-button-prev,
	.agc-carousel .swiper-button-next {
		display: none; /* auf sehr kleinen Screens reicht Swipe-Gestik + Punkte */
	}
}
