/* =============================================================================
 * ce_image_text_box — modernized nuances (close to mockup signatures)
 * ========================================================================== */

.ce_image_text_box {
	overflow: visible;
}

.ce_image_text_box:focus-within {
	overflow: visible;
}

.ce_image_text_box_inside {
	position: relative;
	overflow: visible;
	display: inline-block;
}

.ce_image_text_box .ce_image_text_box_content {
	margin-top: 1.75rem;
}

/* Image wrapper: handles radius + shadow + clips the diagonal banner */
.ce_image_text_box .ce_image_text_box_image {
	position: relative;
	overflow: hidden;
	border-radius: var(--shape-media-radius, 0px);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 6px 18px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ce_image_text_box:hover .ce_image_text_box_image {
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 12px 28px rgba(15, 23, 42, 0.10);
}

.ce_image_text_box .image_container img {
	width: auto;
	max-width: 100%;
	display: inline-block;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ce_image_text_box:hover .image_container img {
	transform: scale(1.04);
}

.ce_image_text_box a {
	display: inline-block;
}

.ce_image_text_box a:focus {
	outline-offset: 0;
}

.ce_image_text_box .ce_image_text_box_inside > a.hyperlink_txt {
	margin-top: 22px;
}

.ce_image_text_box a.hyperlink_txt {
	display: inline-block;
	padding: var(--button-system-padding-top, 9px) var(--button-system-padding-right, 18px) var(--button-system-padding-bottom, 9px) var(--button-system-padding-left, 18px);
	border: var(--button-system-border-width, 1px) solid rgba(0, 0, 0, 0.1);
	border-radius: var(--shape-action-radius, 0px);
	font-weight: var(--button-system-font-weight, 600);
	transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
	-webkit-transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
	font-size: var(--button-system-font-size, inherit);
	line-height: var(--button-system-line-height, inherit);
	min-width: var(--button-system-min-width, 0px);
}

.ce_image_text_box a.hyperlink_txt:hover {
	border-color: var(--accentColor);
	color: var(--accentColor);
	transform: translateY(-1px);
}

/* Diagonal accent banner */
.ce_image_text_box .ce_image_text_box_banner {
	transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	color: rgb(255, 255, 255);
	background: var(--accentColor);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	position: absolute;
	right: -2.4rem;
	top: 2rem;
	text-align: center;
	min-width: 11rem;
	z-index: 30;
	padding: 0.3rem 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Stil 2 — Rahmen um Inhalt (Card-Look) */
.ce_image_text_box.version2 {
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--shape-surface-radius, 6px);
	height: 100%;
	background: #ffffff;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.03),
		0 6px 18px rgba(15, 23, 42, 0.05);
	transition: box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
				transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	overflow: hidden;
}

.ce_image_text_box.version2:hover {
	transform: translateY(-3px);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 14px 32px rgba(15, 23, 42, 0.10);
}

.ce_image_text_box.version2 .ce_image_text_box_image {
	border-radius: 0;
	box-shadow: none;
}

.ce_image_text_box.version2 .ce_image_text_box_content_outside {
	padding: 26px 28px 28px;
}

.ce_image_text_box.version2 .ce_image_text_box_content {
	margin-top: 0;
}

.ce_image_text_box.version2 a.hyperlink_txt {
	text-decoration: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--accentColor);
	font-weight: 600;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	font-size: inherit;
	line-height: inherit;
	min-width: 0;
}

.ce_image_text_box.version2 a.hyperlink_txt:hover {
	transform: none;
	border-bottom-color: var(--accentColor);
}

/* Stil 3 — Rahmen um Bild */
.ce_image_text_box.version3 .ce_image_text_box_image {
	padding: 6px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.ce_image_text_box.version3 .image_container {
	overflow: hidden;
	border-radius: var(--shape-media-radius, 0px);
}

.ce_image_text_box.version3 img {
	border: 0;
	display: block;
}

.ce_image_text_box.version3 a.hyperlink_txt {
	margin-top: 26px;
}

/* Stil 4 — zentriert */
.ce_image_text_box.version4 {
	text-align: center;
}

.ce_image_text_box.version4 a.hyperlink_txt {
	margin-top: 26px;
}

.ce_image_text_box ul {
	padding-left: 4px;
	margin: 0;
}

.ce_image_text_box ul li {
	list-style-type: circle;
	list-style-position: inside;
	line-height: 1.5;
}