/**
 * Kundenstimmen shortcode – minimal, modern
 *
 * @package HelloElementor
 */

@font-face {
	font-family: 'BrandonText';
	src: url('/wp-content/uploads/2022/01/BrandonText-Bold.woff2') format('woff2'),
	     url('/wp-content/uploads/2022/01/BrandonText-Bold.woff') format('woff'),
	     url('/wp-content/uploads/2022/01/BrandonText-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Section */
.hello-testimonials {
	--testimonials-gap: 1.5rem;
	--testimonials-radius: 0px;
	--testimonials-color-text: #ffffff;
	--testimonials-color-muted: rgba(255, 255, 255, 0.65);
	--testimonials-border: 1px solid rgba(255, 255, 255, 1);
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 1rem;
	font-family: inherit;
}

/* ========== Featured (top 3): under each other, full width, full text, round image beside ========== */
.hello-testimonials__featured {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	margin-bottom: 3rem;
}

.hello-testimonials__card--featured {
	width: 100%;
	background: transparent;
	border: var(--testimonials-border);
	border-radius: var(--testimonials-radius);
	box-shadow: none;
	overflow: visible;
}

.hello-testimonials__card--featured .hello-testimonials__card-inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 3rem;
	padding: 6rem;
}

.hello-testimonials__card--featured .hello-testimonials__card-image {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
}

.hello-testimonials__card-image--round {
	border-radius: 50%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.06);
}

.hello-testimonials__card-image--round img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hello-testimonials__card--featured .hello-testimonials__card-body {
	flex: 1;
	min-width: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	position: relative;
}

.hello-testimonials__card--featured .hello-testimonials__card-location {
	margin-bottom: 1.5rem;
}

/* Anführungszeichen als halbtransparenter Hintergrund hinter dem Text */
.hello-testimonials__card--featured .hello-testimonials__card-body::before {
	content: "\201C";
	position: absolute;
	top: 2rem;
	left: -3.5rem;
	font-size: 31.5rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.12);
	font-family: Georgia, serif;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}

/* Wenn Foto rechts: Apostroph rechtsbündig */
.hello-testimonials__card--featured:nth-child(even) .hello-testimonials__card-body::before {
	content: "\201D";
	left: auto;
	right: -1.5rem;
}

.hello-testimonials__card--featured .hello-testimonials__card-title,
.hello-testimonials__card--featured .hello-testimonials__card-location,
.hello-testimonials__card--featured .hello-testimonials__card-content {
	position: relative;
	z-index: 1;
}

.hello-testimonials__card--featured .hello-testimonials__card-title {
	margin: 0 0 0.15em;
	font-size: 2.5rem;
	font-weight: 400;
	color: var(--testimonials-color-text);
	line-height: 1.2;
}

.hello-testimonials__card--featured .hello-testimonials__card-content {
	margin: 0;
	font-size: 1em;
	line-height: 1.65;
	color: var(--testimonials-color-text);
}

.hello-testimonials__card--featured .hello-testimonials__card-content p {
	margin: 0 0 0.75em;
}

.hello-testimonials__card--featured .hello-testimonials__card-content p:last-child {
	margin-bottom: 0;
}

/* Datum ausblenden */
.hello-testimonials__card-date {
	display: none;
}

/* Abwechselnd: gerade Karten → Foto rechts, Text rechtsbündig */
.hello-testimonials__card--featured:nth-child(even) .hello-testimonials__card-inner {
	flex-direction: row-reverse;
}

.hello-testimonials__card--featured:nth-child(even) .hello-testimonials__card-body {
	text-align: right;
}

@media (max-width: 640px) {
	.hello-testimonials__card--featured .hello-testimonials__card-inner,
	.hello-testimonials__card--featured:nth-child(even) .hello-testimonials__card-inner {
		flex-direction: column;
		align-items: center;
		padding: 2rem 1.5rem;
	}

	.hello-testimonials__card--featured .hello-testimonials__card-body,
	.hello-testimonials__card--featured:nth-child(even) .hello-testimonials__card-body {
		text-align: center;
	}

	.hello-testimonials__card--featured .hello-testimonials__card-image {
		width: 120px;
		height: 120px;
	}
}

/* ========== Carousel Heading ========== */
.hello-testimonials__carousel-heading {
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--testimonials-color-muted);
	font-family: 'BrandonText', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 2rem;
}

/* ========== Reveal-Animationen ========== */
.hello-testimonials__card--featured,
.hello-testimonials__card--carousel {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hello-testimonials__card--featured.is-visible,
.hello-testimonials__card--carousel.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Verzögerung für featured Karten */
.hello-testimonials__card--featured:nth-child(1) { transition-delay: 0s; }
.hello-testimonials__card--featured:nth-child(2) { transition-delay: 0.12s; }
.hello-testimonials__card--featured:nth-child(3) { transition-delay: 0.24s; }

/* ========== Carousel: Autoplay Slider ========== */
.hello-testimonials__carousel-wrap {
	position: relative;
	width: 100%;
	padding: 0;
	overflow: hidden;
}

.hello-testimonials__carousel-viewport {
	overflow: hidden;
	width: 100%;
	flex: 1;
}

.hello-testimonials__carousel {
	display: flex;
	gap: var(--testimonials-gap);
	transition: transform 0.5s ease;
	will-change: transform;
	padding: 0.5rem 0 1rem;
}

/* Carousel card */
.hello-testimonials__card--carousel {
	flex: 0 0 auto;
	background: transparent;
	border: none;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	min-width: 0;
	padding-bottom: 1rem;
}

.hello-testimonials__card--carousel:focus {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

/* Sprechblase */
.hello-testimonials__card-bubble {
	border-top: 1px solid rgba(255, 255, 255, 1);
	border-left: 1px solid rgba(255, 255, 255, 1);
	border-right: 1px solid rgba(255, 255, 255, 1);
	border-bottom: none;
	padding: 1.5rem 1.75rem;
	position: relative;
	flex: 1;
	overflow: visible;
}

/* Untere Border mit Lücke für den Zacken */
.hello-testimonials__card-bubble::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	/* Lücke von 22px bis 50px – dort sitzt der Zacken */
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 1) 0,
		rgba(255, 255, 255, 1) 42px,
		transparent 42px,
		transparent 70px,
		rgba(255, 255, 255, 1) 70px,
		rgba(255, 255, 255, 1) 100%
	);
}

/* Zacken: rotiertes Quadrat, nur border-bottom + border-left sichtbar */
.hello-testimonials__card-bubble::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 46px;
	width: 21px;
	height: 21px;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 1);
	border-left: 1px solid rgba(255, 255, 255, 1);
	transform: rotate(-45deg);
	z-index: 1;
}

.hello-testimonials__card--carousel .hello-testimonials__card-excerpt {
	margin: 0;
	font-size: 1em;
	line-height: 1.6;
	color: var(--testimonials-color-text);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Speaker: Bild + Name + Ort unterhalb der Blase */
.hello-testimonials__card-speaker {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.5rem 1.75rem 0 1rem;
	gap: 0.3rem;
}

.hello-testimonials__card--carousel .hello-testimonials__card-image {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	margin-bottom: 0.5rem;
}

.hello-testimonials__card--carousel .hello-testimonials__card-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--testimonials-color-text);
	line-height: 1.3;
}

.hello-testimonials__card-location {
	font-size: 0.8rem;
	color: var(--testimonials-color-muted);
	font-family: 'BrandonText', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}


/* Carousel nav buttons – absolut, außerhalb des Viewports, vertikal zentriert */
.hello-testimonials__carousel-prev,
.hello-testimonials__carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: none;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
	transition: opacity 0.2s;
	padding: 0;
	border-radius: 0;
	z-index: 2;
}

.hello-testimonials__carousel-prev:hover,
.hello-testimonials__carousel-next:hover {
	opacity: 1;
	background: transparent !important;
}

.hello-testimonials__carousel-prev {
	left: 0.5rem;
}

.hello-testimonials__carousel-next {
	right: 0.5rem;
}

.hello-testimonials__carousel-prev::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-left: 1.5px solid #ffffff;
	border-top: 1.5px solid #ffffff;
	transform: rotate(-45deg);
}

.hello-testimonials__carousel-next::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-right: 1.5px solid #ffffff;
	border-top: 1.5px solid #ffffff;
	transform: rotate(45deg);
}

/* Modal */
.hello-testimonials__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	box-sizing: border-box;
}

.hello-testimonials__modal[hidden] {
	display: none;
}

/* Backdrop – hell */
.hello-testimonials__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 33, 30, 0.45);
	opacity: 0;
	transition: opacity 0.35s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.hello-testimonials__modal.is-open .hello-testimonials__modal-backdrop {
	opacity: 1;
}

/* Content – zentriert, grüner Hintergrund */
.hello-testimonials__modal-content {
	position: relative;
	background: #78927F;
	border: none;
	border-radius: 0;
	box-shadow: none;
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.hello-testimonials__modal.is-open .hello-testimonials__modal-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Inner: alles untereinander, zentriert */
.hello-testimonials__modal-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 3.5rem 3rem;
	gap: 0;
	text-align: center;
}

/* Rundes Foto oben */
.hello-testimonials__modal-image-wrap {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.hello-testimonials__modal-image-wrap[hidden] {
	display: none;
}

.hello-testimonials__modal-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hello-testimonials__modal-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
}

/* Close button */
.hello-testimonials__modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent !important;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s;
	padding: 0;
}

.hello-testimonials__modal-close:hover {
	opacity: 1;
}

.hello-testimonials__modal-close::before,
.hello-testimonials__modal-close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 1px;
	background: #ffffff;
}

.hello-testimonials__modal-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.hello-testimonials__modal-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.hello-testimonials__modal-title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.2;
}

.hello-testimonials__modal-meta {
	margin: 0 0 1.5rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.65);
	font-family: 'BrandonText', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.hello-testimonials__modal-text {
	font-size: 1em;
	line-height: 1.7;
	color: #ffffff;
	text-align: left;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding-top: 1.5rem;
	width: 100%;
}

/* ========== Mobile: Pfeile über dem Carousel ========== */
@media (max-width: 640px) {
	.hello-testimonials__carousel-wrap {
		padding-top: 3rem;
	}

	.hello-testimonials__carousel-prev,
	.hello-testimonials__carousel-next {
		top: 0;
		transform: none;
	}

	.hello-testimonials__carousel-prev {
		left: auto;
		right: 3rem;
	}

	.hello-testimonials__carousel-next {
		right: 0;
	}
}
