/* Google-Bewertungen — styled after the previous review widget (WP Review Slider Pro).
   Selectors are scoped under .itkfm-gb with extra weight so the Elementor kit
   (.elementor-kit-5 a / button) and Hello theme link underlines do not leak in. */
.itkfm-gb {
	--itkfm-gb-blau: #164b84;
	--itkfm-gb-text: #555;
	--itkfm-gb-gelb: #fbbc05;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	color: var(--itkfm-gb-text);
}
.itkfm-gb p { margin: 0; }
.itkfm-gb .itkfm-gb-badge a,
.itkfm-gb .itkfm-gb-karte a { text-decoration: none; }

/* Badge */
.itkfm-gb .itkfm-gb-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 32px 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	text-align: center;
}
.itkfm-gb .itkfm-gb-badge a.itkfm-gb-firma,
.itkfm-gb .itkfm-gb-badge a.itkfm-gb-firma:visited { font-size: 20px; font-weight: 700; color: #050505; }
.itkfm-gb .itkfm-gb-badge a.itkfm-gb-firma:hover { color: var(--itkfm-gb-blau); }
.itkfm-gb .itkfm-gb-summe { font-size: 20px; color: var(--itkfm-gb-text); }
.itkfm-gb .itkfm-gb-badge .itkfm-gb-sterne { gap: 2px; }
.itkfm-gb .itkfm-gb-badge .itkfm-gb-stern { width: 24px; height: 24px; }
.itkfm-gb .itkfm-gb-maps { display: inline-flex; line-height: 0; }

/* Stars */
.itkfm-gb .itkfm-gb-sterne { display: inline-flex; gap: 1px; vertical-align: -2px; }
.itkfm-gb .itkfm-gb-stern { width: 18px; height: 18px; fill: var(--itkfm-gb-gelb); }
.itkfm-gb .itkfm-gb-stern.leer { fill: #ddd; }

/* Slider */
.itkfm-gb .itkfm-gb-slider { margin-top: 24px; }
.itkfm-gb .itkfm-gb-spur {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 20px) / 3);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 6px;
	scrollbar-width: none;
	padding: 6px;
	margin: -6px;
}
.itkfm-gb .itkfm-gb-spur::-webkit-scrollbar { display: none; }
.itkfm-gb .itkfm-gb-spur:focus-visible { outline: 2px solid var(--itkfm-gb-blau); outline-offset: 2px; }

.itkfm-gb .itkfm-gb-karte {
	scroll-snap-align: start;
	display: flex;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.14);
	position: relative;
	transition: box-shadow 0.2s, transform 0.2s;
}
.itkfm-gb .itkfm-gb-karte:has(.itkfm-gb-link:hover) {
	box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}
/* Whole card opens the review on Google; the "mehr anzeigen" button sits above the link. */
.itkfm-gb .itkfm-gb-karte a.itkfm-gb-link { position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.itkfm-gb .itkfm-gb-karte a.itkfm-gb-link:focus-visible { outline: 2px solid var(--itkfm-gb-blau); outline-offset: 2px; }
.itkfm-gb .itkfm-gb-karte button.itkfm-gb-mehr { position: relative; z-index: 2; }
.itkfm-gb .itkfm-gb-avatar {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 40px;
	line-height: 1;
}
.itkfm-gb .itkfm-gb-inhalt { min-width: 0; }
.itkfm-gb .itkfm-gb-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	overflow: hidden;
}
.itkfm-gb .itkfm-gb-text .itkfm-gb-sterne { margin-right: 6px; }
.itkfm-gb .itkfm-gb-karte.offen .itkfm-gb-text { -webkit-line-clamp: unset; line-clamp: unset; }

.itkfm-gb .itkfm-gb-karte button.itkfm-gb-mehr,
.itkfm-gb .itkfm-gb-karte button.itkfm-gb-mehr:hover,
.itkfm-gb .itkfm-gb-karte button.itkfm-gb-mehr:focus {
	display: inline;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--itkfm-gb-blau);
	font: inherit;
	font-size: 16px;
	line-height: 1.2;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}
.itkfm-gb .itkfm-gb-karte button.itkfm-gb-mehr:hover { text-decoration: underline; }
.itkfm-gb .itkfm-gb-karte button.itkfm-gb-mehr[hidden] { display: none; }

.itkfm-gb .itkfm-gb-autor { margin-top: 18px; }
.itkfm-gb .itkfm-gb-autor strong { font-weight: 700; }
.itkfm-gb .itkfm-gb-autor span { display: block; }

/* Dots */
.itkfm-gb .itkfm-gb-punkte { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.itkfm-gb .itkfm-gb-punkte[hidden] { display: none; }
.itkfm-gb .itkfm-gb-punkte button,
.itkfm-gb .itkfm-gb-punkte button:hover,
.itkfm-gb .itkfm-gb-punkte button:focus {
	position: relative;
	width: 16px;
	height: 16px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	cursor: pointer;
}
.itkfm-gb .itkfm-gb-punkte button::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: #bbb;
}
.itkfm-gb .itkfm-gb-punkte button[aria-current="true"]::after { background: #333; }

@media (max-width: 1024px) {
	.itkfm-gb .itkfm-gb-spur { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
	.itkfm-gb .itkfm-gb-spur { grid-auto-columns: 100%; }
	.itkfm-gb .itkfm-gb-avatar { width: 56px; height: 56px; font-size: 28px; }
	.itkfm-gb .itkfm-gb-summe { font-size: 17px; }
}
