/*
 * Testimonials (inc/testimonials.php) – Grundgerüst des Sliders.
 * Wird vor style.css geladen; die Feinheiten je Einsatzort stehen dort
 * (.testimonials-slider …, aside .block.testimonials …).
 */

.cf-tr:before,
.cf-tr:after { content: " "; display: table; }
.cf-tr:after { clear: both; }

.testimonial_rotator_wrap {
	position: relative;
	margin: 20px 10px;
	padding: 10px;
	overflow: hidden;
}
.testimonial_rotator_wrap.with-prevnext { padding: 10px 40px; }
.testimonial_rotator_wrap *,
.testimonial_rotator_wrap *:before,
.testimonial_rotator_wrap *:after { box-sizing: border-box; }

/* Vor dem Start von Slick nur die erste Bewertung zeigen */
.testimonial_rotator:not(.slick-initialized) .slide + .slide { display: none; }

.testimonial_rotator .slick-slide { outline: none; }
.testimonial_rotator h1,
.testimonial_rotator h2 { margin: 10px 0 0; padding: 0; }
.testimonial_rotator .testimonial_rotator_slide_title { margin: 0 0 5px; }

/* Sterne */
.testimonial_rotator_stars { padding: 10px 0; }
.testimonial_rotator_star {
	float: left;
	width: 20px;
	height: 20px;
	margin: 0 3px 0 0;
	color: #f9ca24;
	font-size: 20px;
	line-height: 20px;
}

/* Pfeile */
.testimonial_rotator_prev,
.testimonial_rotator_next {
	position: absolute;
	top: 35%;
	z-index: 10;
	padding: 0;
	border: 0;
	background: none;
	font-size: 20px;
	line-height: 20px;
	color: rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: color 0.35s;
}
.testimonial_rotator_prev:hover,
.testimonial_rotator_next:hover,
.testimonial_rotator_prev:focus-visible,
.testimonial_rotator_next:focus-visible { color: #f97c31; }
.testimonial_rotator_prev { left: 3px; }
.testimonial_rotator_next { right: 3px; }

/* Default-Layout */
.testimonial_rotator.template-default .slide { width: 100%; height: auto; }
.testimonial_rotator.template-default .has-image .img { float: left; width: 20%; margin-right: 5%; padding: .5em 0 0; }
.testimonial_rotator.template-default .has-image .img img { width: 100%; max-width: 150px; height: auto; }
.testimonial_rotator.template-default .has-image .text { float: left; width: 75%; margin: 0; padding: 0; }
.testimonial_rotator.template-default .testimonial_rotator_author_info {
	margin: 10px 0;
	padding: 10px 0 10px 15px;
	border-left: solid 3px #efefef;
	font-style: italic;
	line-height: 1.2em;
}
.testimonial_rotator.template-default .testimonial_rotator_author_info p { font-size: 1.1em; line-height: 1.2em; }
