/* Sponsoring Verwaltung – Homepage Widget */

.sv-widget-root {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.sv-widget-root *,
.sv-widget-root *::before,
.sv-widget-root *::after {
	box-sizing: border-box;
}

/* Desktop: Karussell */
.sv-widget-root--desktop {
	display: block;
}

.sv-homepage-sponsors--mobile {
	display: none;
}

.sv-homepage-sponsors {
	display: block;
	width: 100%;
	max-width: 100%;
	text-align: center;
	padding: 1rem 0;
}

.sv-homepage-sponsors__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.35;
	padding: 0 1rem;
}

.sv-carousel {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	overflow: hidden;
	padding: 0 1rem;
}

.sv-carousel__track {
	position: relative;
	width: 100%;
	height: 100px;
}

.sv-carousel__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.sv-carousel__slide--active {
	opacity: 1;
	pointer-events: auto;
}

.sv-carousel__slide img {
	display: block;
	max-width: 100%;
	max-height: 90px;
	object-fit: contain;
	margin: 0 auto;
}

.sv-carousel__slide a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 44px;
}

.sv-carousel__dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.sv-carousel__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: #ccc;
	cursor: pointer;
	padding: 0;
}

.sv-carousel__dot--active,
.sv-carousel__dot:hover {
	background: #2c6faa;
}

/* Mobil: Grid statt Karussell */
.sv-sponsors-mobile-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	width: 100%;
	padding: 0 1rem;
}

.sv-sponsors-mobile-grid__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}

.sv-sponsors-mobile-grid__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.sv-sponsors-mobile-grid__item img {
	display: block;
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Footer-Leiste auf Mobil (Hauptseite) */
.sv-mobile-sponsors-footer {
	display: none;
}

@media (max-width: 1024px) {
	/* Sidebar-Karussell auf Mobil ausblenden – Footer-Leiste übernimmt */
	.sv-widget-root--desktop,
	.elementor-widget-wp-widget-sv_homepage_sponsors {
		display: none !important;
	}

	.sv-mobile-sponsors-footer {
		display: block;
		width: 100%;
		background: #f4f6f8;
		border-top: 1px solid #e0e0e0;
		padding: 1.25rem 0 1.5rem;
		margin: 0;
		clear: both;
	}

	.sv-mobile-sponsors-footer .sv-homepage-sponsors {
		padding: 0;
	}

	.sv-mobile-sponsors-footer .sv-sponsors-mobile-grid {
		padding: 0 1.25rem;
	}

	.sv-mobile-sponsors-footer .sv-sponsors-mobile-grid__item img {
		max-height: 80px;
	}
}

@media (max-width: 480px) {
	.sv-sponsors-mobile-grid {
		grid-template-columns: 1fr;
	}
}
