/* Divi Carousel Maker 3 on phones: one full-width slide with slim overlay arrows, like before Divi 5 */
@media (max-width: 767px) {
	body #page-container .pac-dcm-carousel-outer {
		position: relative !important;
	}

	body #page-container .pac-dcm-carousel-outer.nav--reserve.nav--reserve .carousel-stage {
		display: block !important;
		position: static !important;
	}

	body #page-container .pac-dcm-carousel-outer .carousel-clip {
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body #page-container .pac-dcm-carousel-outer .carousel {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body #page-container .pac-dcm-carousel-outer .swiper-slide {
		width: 100% !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body #page-container .pac-dcm-carousel-outer.pac-dcm-carousel-outer .swiper-button-prev,
	body #page-container .pac-dcm-carousel-outer.pac-dcm-carousel-outer .swiper-button-next {
		position: absolute !important;
		top: 50% !important;
		z-index: 5;
		box-sizing: border-box;
		width: 15px !important;
		height: 55px !important;
		margin: 0 !important;
		padding: 0 !important;
		background: var(--color-green) no-repeat center / 100% !important;
		transform: translateY(-50%) !important;
		translate: none !important;
	}

	body #page-container .pac-dcm-carousel-outer.pac-dcm-carousel-outer .swiper-button-prev {
		left: -15px !important;
		right: auto !important;
		background-image: url(/wp-content/themes/child-theme/images/pfeil_swipe_links.svg) !important;
	}

	body #page-container .pac-dcm-carousel-outer.pac-dcm-carousel-outer .swiper-button-next {
		right: -15px !important;
		left: auto !important;
		background-image: url(/wp-content/themes/child-theme/images/pfeil_swipe_rechts.svg) !important;
	}

	body #page-container .pac-dcm-carousel-outer .swiper-button-prev::after,
	body #page-container .pac-dcm-carousel-outer .swiper-button-next::after {
		display: none !important;
	}
}

/* Timeline: the Divi 4 module set the years to 40px, the conversion dropped that */
body #page-container .dnxte-timline-content .dnxte-timline-date {
	font-size: 40px;
}

/* Flipbox tiles: the module class changed from dnxte_3d_flipbox to dnxte_flipbox3d */
body #page-container .dnxte_flipbox3d.flip-icon .dnext-3d-transform-flpb-flip-box-front {
	background-color: var(--color-dark-grey);
	background-size: auto 70% !important;
	background-position: 93% 50%;
}

/* Search results: featured images fill the column */
body.search-results .et_pb_post .entry-featured-image-url img {
	width: 100%;
}

/* Accordions on archive pages: Divi resolves the English templates there and skips the module CSS */
body.post-type-archive .et_pb_toggle_close .et_pb_toggle_content {
	display: none;
}

body.post-type-archive .et_pb_toggle_content {
	position: relative;
	padding-top: 20px;
}

body.post-type-archive .et_pb_accordion.et_block_module .et_pb_toggle {
	position: relative;
	margin-bottom: 10px;
	padding: 20px;
}

body.post-type-archive .et_pb_accordion .et_pb_toggle:last-child {
	margin-bottom: 0;
}

body.post-type-archive .et_pb_toggle_open {
	z-index: 1;
	background-color: #fff;
}

body.post-type-archive .et_pb_toggle .et_pb_toggle_title {
	position: relative;
	padding: 0 50px 0 0;
	cursor: pointer;
}

body.post-type-archive .et_pb_toggle .et_pb_toggle_title::before {
	position: absolute;
	top: 50%;
	right: 0;
	left: auto;
	margin-top: -0.5em;
}

body.post-type-archive .et_pb_accordion .et_pb_accordion_item.et_pb_toggle_open > .et_pb_toggle_title::before {
	display: none;
}
