/* Smart Event Banner
---------------------------------------- */
.smart-event-container {
	display: flex;
	justify-content: center;
	column-gap: 12px;
	row-gap: 4px;
	margin: 6px 0 8px 0;
	flex-wrap: wrap;
	width: 100%;
}

.smart-event-banner {
	box-sizing: border-box;
	width: var(--smart-event-grid-width, 48%);
	min-width: var(--smart-event-min-width, 300px);
	max-width: var(--smart-event-max-width, 700px);
	margin: 0;
	padding: 10px 34px 10px 14px;
	background: #dfdfdf;
	background-image: linear-gradient(#777 1%, #ccc 10%, #dfdfdf 25%, #dfdfdf 60%, #ccc 75%, #bbb 80%, #888 85%, #555 90%, #444 95%, #333 100%);
	border: 2px solid #505050;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
	line-height: 1.25;
	text-align: center;
	position: relative;
	z-index: 0;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.smart-event-banner.smart-event-has-gradient {
	background-image: var(--smart-event-gradient);
}

.smart-event-banner.smart-event-has-hover:hover {
	color: var(--smart-event-text-hover) !important;
	background-color: var(--smart-event-bg-hover) !important;
	border-color: var(--smart-event-border-hover) !important;
}

.smart-event-banner a,
.smart-event-banner a:visited {
	text-decoration: none;
	display: block;
}

.smart-event-banner.smart-event-has-hover:hover a {
	color: var(--smart-event-text-hover) !important;
}

.smart-event-banner-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--smart-event-image-gap, 8px);
	max-width: 100%;
}

.smart-event-banner-text {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.smart-event-banner-main {
	display: inline-block;
	max-width: 100%;
}

.smart-event-countdown {
	display: block;
	font-size: 60%;
	line-height: 1.15;
	margin-top: 2px;
	opacity: 0.9;
}

.smart-event-banner-img {
	display: inline-block;
	width: auto;
	height: 1.6em;
	max-height: var(--smart-event-img-max-size, 64px);
	flex: 0 0 auto;
	object-fit: contain;
}

.smart-event-img-right .smart-event-banner-inner {
	flex-direction: row-reverse;
}

.smart-event-img-top .smart-event-banner-inner {
	flex-direction: column;
	gap: 4px;
}

.smart-event-img-top .smart-event-banner-img {
	width: auto;
	height: 2.2em;
	max-height: var(--smart-event-img-max-size, 64px);
}

.smart-event-width-auto .smart-event-banner {
	width: fit-content;
	width: -moz-fit-content;
	min-width: var(--smart-event-min-width, 300px);
	max-width: min(var(--smart-event-max-width, 700px), 95%);
}

.smart-event-width-auto .smart-event-slider-track {
	width: fit-content;
	width: -moz-fit-content;
	min-width: var(--smart-event-min-width, 300px);
	max-width: min(var(--smart-event-max-width, 700px), 95%);
}

.smart-event-width-auto.smart-event-slider .smart-event-banner {
	width: 100%;
}

.smart-event-slider {
	position: relative;
	width: 100%;
	margin: 6px 0 8px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.smart-event-slider-track {
	width: var(--smart-event-slider-width, 48%);
	min-width: var(--smart-event-min-width, 300px);
	max-width: var(--smart-event-max-width, 700px);
	position: relative;
}

.smart-event-slider .smart-event-banner {
	display: none;
	width: 100%;
	min-width: 0;
	max-width: none;
}

.smart-event-slider .smart-event-banner.is-active {
	display: block;
}

.smart-event-slider-prev,
.smart-event-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #505050;
	background: #dfdfdf;
	color: #c00;
	font-size: 22px;
	font-weight: bold;
	line-height: 22px;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.smart-event-slider-prev {
	left: calc(-1 * var(--smart-event-arrow-offset, 5px));
	transform: translate(-100%, -50%);
}

.smart-event-slider-next {
	right: calc(-1 * var(--smart-event-arrow-offset, 5px));
	transform: translate(100%, -50%);
}

.smart-event-slider-prev:hover,
.smart-event-slider-next:hover {
	color: #000;
	box-shadow: 0 2px 8px rgba(0,0,0,.45);
}


@media only screen and (min-width: 701px) and (max-width: 1024px) {
	.smart-event-tablet-hide {
		display: none !important;
	}

	.smart-event-banner {
		padding-right: 36px;
	}

	.smart-event-slider-track {
		width: 90%;
		min-width: 0;
		max-width: none;
	}

	.smart-event-tablet-custom .smart-event-banner {
		width: var(--smart-event-tablet-width, 90%) !important;
		max-width: var(--smart-event-tablet-width, 90%) !important;
		min-width: 0 !important;
		font-size: calc(1em * var(--smart-event-tablet-font-scale, 85) / 100) !important;
	}

	.smart-event-tablet-custom .smart-event-slider-track {
		width: var(--smart-event-tablet-width, 90%) !important;
		max-width: var(--smart-event-tablet-width, 90%) !important;
		min-width: 0 !important;
	}

	.smart-event-tablet-custom .smart-event-countdown {
		font-size: calc(60% * var(--smart-event-tablet-countdown-scale, 85) / 100) !important;
	}

	.smart-event-tablet-custom .smart-event-banner-img {
		max-height: calc(var(--smart-event-img-max-size, 64px) * var(--smart-event-tablet-image-scale, 85) / 100) !important;
	}

	.smart-event-tablet-custom .smart-event-close-visual {
		width: calc(24px * var(--smart-event-tablet-close-scale, 100) / 100);
		height: calc(24px * var(--smart-event-tablet-close-scale, 100) / 100);
		font-size: calc(16px * var(--smart-event-tablet-close-scale, 100) / 100);
	}
}

@media only screen and (max-width: 700px) {
	.smart-event-mobile-hide {
		display: none !important;
	}

	.smart-event-banner {
		width: 90%;
		min-width: 0;
		max-width: none;
		font-size: 13px;
		padding: 9px 32px 9px 10px;
	}

	.smart-event-slider-track {
		width: 90%;
		min-width: 0;
		max-width: none;
	}

	.smart-event-mobile-custom .smart-event-banner {
		width: var(--smart-event-mobile-width, 100%) !important;
		max-width: var(--smart-event-mobile-width, 100%) !important;
		min-width: 0 !important;
		font-size: calc(1em * var(--smart-event-mobile-font-scale, 50) / 100) !important;
	}

	.smart-event-mobile-custom .smart-event-slider-track {
		width: var(--smart-event-mobile-width, 100%) !important;
		max-width: var(--smart-event-mobile-width, 100%) !important;
		min-width: 0 !important;
	}

	.smart-event-mobile-custom .smart-event-countdown {
		font-size: calc(60% * var(--smart-event-mobile-countdown-scale, 50) / 100) !important;
	}

	.smart-event-mobile-custom .smart-event-banner-img {
		max-height: calc(var(--smart-event-img-max-size, 64px) * var(--smart-event-mobile-image-scale, 50) / 100) !important;
	}

	.smart-event-mobile-custom .smart-event-close-visual {
		width: calc(26px * var(--smart-event-mobile-close-scale, 100) / 100);
		height: calc(26px * var(--smart-event-mobile-close-scale, 100) / 100);
		font-size: calc(17px * var(--smart-event-mobile-close-scale, 100) / 100);
	}

	.smart-event-slider-prev {
		left: 2px;
		transform: translate(0, -50%);
	}

	.smart-event-slider-next {
		right: 2px;
		transform: translate(0, -50%);
	}
}

/* Benutzer-Ausblendung: visuelles Schliessen-Symbol
---------------------------------------- */

/* Desktop: dezent, erst bei Hover sichtbar */
.smart-event-close-visual,
.smart-event-close-visual:visited {
	position: absolute;
	top: 5px;
	right: 7px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #8f0000;
	background: linear-gradient(to bottom, rgba(255,255,255,.96), rgba(225,225,225,.88));
	border: 1px solid rgba(70,70,70,.72);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.9),
		0 1px 4px rgba(0,0,0,.35);
	font-size: 16px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: scale(.92);
	transition:
		opacity .18s ease,
		visibility .18s ease,
		transform .18s ease,
		color .18s ease,
		background .18s ease,
		box-shadow .18s ease;
	pointer-events: auto;
}

.smart-event-banner:hover .smart-event-close-visual {
	opacity: 1 !important;
	visibility: visible !important;
	transform: scale(1);
	color: #d00000;
	background: linear-gradient(to bottom, #ffffff, #eeeeee);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,1),
		0 2px 7px rgba(0,0,0,.45);
}

.smart-event-banner:hover .smart-event-close-visual:hover {
	color: #ff0000;
	transform: scale(1.08);
}

/* Tablet: sichtbar, da Hover nicht zuverlässig ist */
@media only screen and (min-width: 701px) and (max-width: 1024px) {
	.smart-event-banner {
		padding-right: 36px;
	}

	.smart-event-close-visual {
		width: 24px;
		height: 24px;
		font-size: 16px;
		top: 5px;
		right: 7px;
		opacity: .9 !important;
		visibility: visible !important;
		transform: scale(1);
	}
}

/* Smartphone: sichtbar und gut antippbar */
@media only screen and (max-width: 700px) {
	.smart-event-banner {
		padding-right: 34px;
	}

	.smart-event-close-visual {
		width: 26px;
		height: 26px;
		font-size: 17px;
		top: 4px;
		right: 5px;
		opacity: .95 !important;
		visibility: visible !important;
		transform: scale(1);
		background: linear-gradient(to bottom, #ffffff, #eeeeee);
	}
}

/* ACP dev13a Hilfen */
.smart-event-hide-mode-live-help,
.smart-event-tablet-info {
    margin: 8px 0;
    padding: 8px 10px;
    border-left: 4px solid rgba(120,120,120,.55);
    background: rgba(220,220,220,.18);
}
.smart-event-tablet-info h3 {
    margin-top: 0;
}
