/*
 * TM Testimonials 1.20.6
 * TechMinds Corporate Design: Hauptfarbe #046289, Markenverlauf #022D44 zu #046289 (135deg).
 * Signalgrün #81B61D ausschließlich für die Zitatzeichen (Vorgabe Florenz, wie die Original-Sektion).
 */

.tmt {
	--tmt-blau: #046289;
	--tmt-nacht: #022D44;
	--tmt-blau-deep: #03506F;
	--tmt-blau-bright: #4FA3C7;
	--tmt-gruen: #81B61D;
	--tmt-grad: linear-gradient(135deg, #022D44 0%, #046289 100%);
	--tmt-ink: #1C2833;
	--tmt-muted: #5A6B7A;
	--tmt-muted-light: #A7BFD2;
	--tmt-line: #E1EAF0;
	--tmt-sky: #E8F1F6;
	--tmt-paper: #FFFFFF;
	--tmt-radius-bild: 18px;
	--tmt-shadow-sm: 0 14px 30px -18px rgba(4, 98, 137, 0.30);
	--tmt-sans: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif);
	--tmt-head: var(--h2_typography-font-family, var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif));

	position: relative;
	width: 100%;
	box-sizing: border-box;
	font-family: var(--tmt-sans) !important;
}

.tmt *,
.tmt *::before,
.tmt *::after {
	box-sizing: inherit;
}

/* Avada-Resets im Plugin-Bereich */
.tmt blockquote,
.tmt blockquote.tmt-zitat {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
	quotes: none;
	box-shadow: none;
}
.tmt blockquote::before,
.tmt blockquote::after {
	content: none;
}
.tmt p {
	margin: 0;
}
.tmt figure {
	margin: 0;
}
.tmt figure.tmt-slide {
	padding: 0;
	border: 0;
	background: none;
}
.tmt img {
	box-shadow: none;
	border: 0;
}
.tmt button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	text-transform: none;
}
.tmt button:hover {
	background-image: none;
}

/* ---------- Stil: Markenverlauf-Karte (Standard) ---------- */

.tmt--verlauf {
	background: var(--tmt-grad);
	color: #fff;
	border-radius: 20px;
	padding: clamp(36px, 5.2vw, 72px);
	overflow: hidden;
}

/* ---------- Stil: Plain (Einbettung in bestehende dunkle Sektion) ---------- */

.tmt--plain {
	background: transparent;
	color: #fff;
	padding: 0;
}

/* ---------- Zweispalter: Foto links, Inhalt rechts (wie die Original-Sektion) ---------- */

.tmt-inner {
	display: grid;
	grid-template-columns: minmax(240px, 4fr) 8fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: stretch;
	position: relative;
	z-index: 1;
}

.tmt-fotos {
	position: relative;
	align-self: stretch;
	max-width: 420px;
	width: 100%;
	min-height: 300px;
}

/* Ohne JavaScript: nur das erste Foto statisch anzeigen */
.tmt-bild { display: none; }
.tmt-fotos .tmt-bild:first-child {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
}

.tmt--init .tmt-bild {
	display: block;
	position: absolute;
	inset: 0;
	height: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.tmt--init .tmt-bild.is-aktiv {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease, visibility 0s;
}

.tmt-bild img.tmt-bild-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: var(--tmt-radius-bild);
	margin: 0;
}
.tmt-fotos .tmt-bild:first-child img.tmt-bild-img {
	position: absolute;
}

/* Dezente Navy-Tönung, gleicht unterschiedliche Fotostile an (fotostil="original" schaltet ab) */
.tmt--fotomono .tmt-bild img.tmt-bild-img {
	filter: grayscale(1) contrast(1.04) brightness(1.03);
}
.tmt--fotomono .tmt-bild {
	overflow: hidden;
	border-radius: var(--tmt-radius-bild);
}
.tmt--fotomono .tmt-bild::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--tmt-radius-bild);
	background: linear-gradient(135deg, rgba(2, 45, 68, 0.5) 0%, rgba(4, 98, 137, 0.42) 100%);
	mix-blend-mode: color;
	pointer-events: none;
}
.tmt--fotomono .tmt-bild-platzhalter::after {
	content: none;
}

/* Platzhalter, solange noch kein Kundenfoto gepflegt ist */
.tmt-bild-platzhalter {
	position: absolute;
	inset: 0;
	border-radius: var(--tmt-radius-bild);
	display: grid;
	place-items: center;
	padding: 24px;
}
.tmt--dunkel .tmt-bild-platzhalter {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
}
.tmt-platzhalter-logo {
	width: 58%;
	max-width: 230px;
	height: auto;
	opacity: 0.92;
}
.tmt--dunkel .tmt-platzhalter-logo {
	filter: brightness(0) invert(1);
}
.tmt-initialen {
	font-size: clamp(40px, 5vw, 60px);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.tmt--dunkel .tmt-initialen { color: rgba(255, 255, 255, 0.85); }
/* ---------- Kopf: Overline (Website-Stil, ohne Linie) und Titel ---------- */

.tmt-kopf {
	margin: 0 0 clamp(16px, 2.2vw, 24px);
	position: relative;
	z-index: 1;
}

.tmt-overline {
	/* Angeglichen an die sitewide Pre-Überschriften (Customizer-CSS):
	   17px, normale Strichstärke, Versalien, 14px Abstand. */
	font-family: var(--tmt-head) !important;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.5;
	display: block;
	margin: 0 0 14px !important;
}
/* Marker exakt wie Avadas awb-highlight-marker auf der Website:
   die unteren 40% der Textzeile liegen auf dem halbtransparenten Grün,
   der Balken überlappt die Buchstaben. */
.tmt-overline-marker {
	background: linear-gradient(to top, rgba(129, 182, 29, 0.3) 40%, transparent 40%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.tmt--dunkel .tmt-overline { color: rgba(255, 255, 255, 0.92); }
.tmt-titel {
	font-family: var(--tmt-head) !important;
	font-size: clamp(26px, 3.2vw, 38px) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	line-height: 1.15 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
}
.tmt--dunkel .tmt-titel { color: #fff !important; }
/* ---------- Bühne und Textslides ---------- */

.tmt-buehne {
	position: relative;
	z-index: 1;
}
.tmt--init .tmt-buehne {
	transition: min-height 0.4s ease;
	cursor: grab;
	touch-action: pan-y;
}
.tmt--init .tmt-buehne.is-greift {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

/* Ohne JavaScript: nur das erste Testimonial statisch anzeigen */
.tmt--slider .tmt-slide { display: none; }
.tmt--slider:not(.tmt--init) .tmt-buehne .tmt-slide:first-child { display: block; }

.tmt--init .tmt-slide {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
	pointer-events: none;
}
.tmt--init .tmt-slide.is-aktiv {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
	pointer-events: auto;
}

/* ---------- Zitat: grüne Zitatzeichen und »...« ---------- */

.tmt-zitatzeichen {
	display: block;
	width: 30px;
	height: 21px;
	margin: 0 0 12px;
	fill: var(--tmt-gruen);
}

.tmt-zitat p {
	font-family: var(--tmt-sans) !important;
	font-size: clamp(17px, 1.6vw, 21px) !important;
	line-height: 1.6 !important;
	font-weight: 400;
	letter-spacing: 0;
	max-width: 60ch;
}
.tmt--dunkel .tmt-zitat p { color: #fff !important; }
/* ---------- Trennlinie, Person und Kundenlogo ---------- */

/* Kurze Zitate: Freiraum symmetrisch verteilen, das Zitat steht mittig im Feld,
   die Personenzeile bleibt bei jeder Länge unten auf gleicher Höhe. */
.tmt--init .tmt-slide .tmt-zitat { margin-top: auto; margin-bottom: 24px; }
.tmt--init .tmt-slide .tmt-sep { margin-top: auto; }

.tmt-sep {
	height: 1px;
	margin: clamp(20px, 3vw, 30px) 0 16px;
	max-width: 560px;
}
.tmt--dunkel .tmt-sep { background: rgba(255, 255, 255, 0.22); }
.tmt-fuss {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 32px;
	flex-wrap: wrap;
	max-width: 560px;
}

.tmt-person {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.tmt-name {
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.tmt--dunkel .tmt-name { color: #fff; }
.tmt-meta {
	font-size: 14px;
	font-weight: 400;
}
.tmt--dunkel .tmt-meta { color: var(--tmt-muted-light); }
.tmt-logo {
	line-height: 0;
}
.tmt-logo img {
	display: block;
	height: 40px; /* feste Höhe: auch SVG-Logos ohne intrinsische Größe bleiben sichtbar */
	width: auto;
	max-width: min(190px, 100%);
	object-fit: contain;
	margin: 0;
}
/* ---------- Steuerleiste: Punkte wie im Original, dazu Pfeile und Pause ---------- */

.tmt-leiste {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	margin-top: 34px;
}

.tmt-punkte {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tmt-punkt {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	transition: background-color 0.25s ease, transform 0.25s ease;
}
.tmt--dunkel .tmt-punkt { background: rgba(255, 255, 255, 0.42); }
.tmt--dunkel .tmt-punkt:hover { background: rgba(255, 255, 255, 0.65); }
.tmt--dunkel .tmt-punkt.is-aktiv { background: #fff; }
.tmt-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tmt-knopf {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tmt-knopf svg {
	width: 19px;
	height: 19px;
	display: block;
}
.tmt--dunkel .tmt-knopf {
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
}
.tmt--dunkel .tmt-knopf:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.55);
}
.tmt-pause .tmt-icon-play { display: none; }
.tmt-pause[aria-pressed="true"] .tmt-icon-pause { display: none; }
.tmt-pause[aria-pressed="true"] .tmt-icon-play { display: block; }

/* ---------- Anordnungen (nur Slider) ---------- */

/* Bild rechts: gespiegelter Zweispalter */
.tmt--a-bild-rechts .tmt-inner {
	grid-template-columns: 8fr minmax(240px, 4fr);
}
.tmt--a-bild-rechts .tmt-fotos {
	order: 2;
	justify-self: end;
}

/* Avatar und Zentriert: keine Fotoebene, einspaltig */
.tmt--a-avatar .tmt-inner,
.tmt--a-zentriert .tmt-inner {
	grid-template-columns: 1fr;
}

/* Kleines rundes Foto in der Personenzeile */
.tmt-avatar {
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
	border-radius: 20px;
	overflow: hidden;
	display: grid;
	place-items: center;
}
/* Heller Innenrahmen nur für den Initialen-Platzhalter, nie über echten Fotos */
.tmt--dunkel .tmt-avatar.tmt-avatar--leer {
	background: rgba(255, 255, 255, 0.10);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.tmt-avatar img.tmt-avatar-img {
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	margin: 0;
}
.tmt-avatar-initialen {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.tmt--dunkel .tmt-avatar-initialen { color: rgba(255, 255, 255, 0.85); }
.tmt--a-avatar .tmt-fuss {
	align-items: center;
}
.tmt--a-avatar .tmt-person {
	margin-right: auto;
}

/* Zentriert: alles mittig, rundes Foto über dem Namen */
.tmt--a-zentriert .tmt-kopf { text-align: center; }
.tmt--a-zentriert .tmt-zitatzeichen { margin-left: auto; margin-right: auto; }
.tmt--a-zentriert .tmt-zitat p {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	max-width: 58ch;
}
.tmt--a-zentriert .tmt-sep {
	margin-left: auto;
	margin-right: auto;
	max-width: 320px;
}
.tmt--a-zentriert .tmt-fuss {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: none;
	text-align: center;
}
.tmt--a-zentriert .tmt-avatar {
	width: 72px;
	height: 72px;
}
.tmt--a-zentriert .tmt-person { align-items: center; }
.tmt--a-zentriert .tmt-logo img { max-height: 30px; height: 30px; }
.tmt--a-zentriert .tmt-leiste { justify-content: center; }

/* ---------- Raster: helle Karten (z.B. Stadtseiten) ---------- */

.tmt--raster {
	color: var(--tmt-ink);
}
/* Fokus-Sichtbarkeit laut CI */
.tmt :focus-visible {
	outline: 3px solid var(--tmt-blau-bright);
	outline-offset: 3px;
	border-radius: 999px;
}

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
	.tmt-inner,
	.tmt--a-bild-rechts .tmt-inner {
		grid-template-columns: 1fr;
		gap: 26px;
	}
	.tmt--a-bild-rechts .tmt-fotos {
		order: 0;
		justify-self: stretch;
	}
	.tmt-fotos {
		min-height: 0;
		max-width: none;
		aspect-ratio: 4 / 3;
		max-height: 380px;
	}
	.tmt-fotos .tmt-bild:first-child {
		height: 100%;
	}
}

@media (max-width: 767px) {
	/* CI-Regel: Kappe mobil ausblenden, Karte rundet dann alle vier Ecken */
}

@media (max-width: 640px) {
	.tmt-leiste {
		flex-direction: column;
		align-items: flex-start;
	}
	.tmt-fuss {
		flex-direction: column;
		align-items: flex-start;
	}
	.tmt--a-zentriert .tmt-fuss,
	.tmt--a-avatar .tmt-fuss {
		flex-direction: column;
		align-items: center;
	}
	.tmt--a-avatar .tmt-fuss {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
	}
	.tmt-avatar {
		width: 96px;
		height: 96px;
		border-radius: 18px;
	}
	.tmt--a-avatar .tmt-person { margin-right: 0; }
	.tmt-logo img { height: 32px; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
	.tmt--init .tmt-buehne { transition: none; }
	.tmt--init .tmt-slide { transform: none; }
}

/* ---------- Druck ---------- */

@media print {
	.tmt--init .tmt-slide {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		margin-bottom: 24px;
		pointer-events: auto;
	}
	.tmt-inner { grid-template-columns: 1fr; }
	.tmt--init .tmt-bild { position: static; opacity: 1; visibility: visible; }
	.tmt-leiste { display: none; }
	.tmt-buehne { min-height: 0 !important; }
}

/* ---------- Desktop: Kopf links, Zitate rechts ---------- */

@media (min-width: 981px) {
	.tmt--slider .tmt-inhalt {
		display: grid;
		grid-template-columns: minmax(240px, 330px) 1fr;
		column-gap: clamp(40px, 5vw, 72px);
		align-items: start;
	}
	.tmt--slider .tmt-inhalt .tmt-kopf {
		grid-column: 1;
		grid-row: 1 / span 2;
		margin-bottom: 0;
		position: sticky;
		top: 0;
	}
	.tmt--slider .tmt-inhalt .tmt-buehne {
		grid-column: 2;
	}
	.tmt--slider .tmt-inhalt .tmt-leiste {
		grid-column: 2;
	}
}
