:root {
	--smgr-blue: var(--sm-color-blue, #0057b5);
	--smgr-navy: var(--sm-color-navy, #071f34);
	--smgr-ink: var(--sm-color-ink, #132330);
	--smgr-muted: var(--sm-color-body, #52616c);
	--smgr-gold: var(--sm-color-gold, #e7b23a);
	--smgr-line: #dce3e8;
}

.smgr-average-stars,
.smgr-star {
	display: inline-block;
	background: #c9d0d5;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20512'%3E%3Cpath%20d='M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3%205.1-21.4%2013.1l-73.6%20144.2L33.2%20150.7c-8.9%201.4-16.3%207.7-19.1%2016.3s-.5%2018%205.8%2024.4l114.4%20114.5-25.2%20159.9c-1.4%208.9%202.3%2017.9%209.6%2023.2s16.9%206.1%2025%202L288.1%20417.6%20432.4%20491c8%204.1%2017.7%203.3%2025-2s11-14.2%209.6-23.2l-25.3-159.9%20114.4-114.5c6.4-6.4%208.6-15.8%205.8-24.4s-10.1-14.9-19.1-16.3L383%20125.3%20309.5-18.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20512'%3E%3Cpath%20d='M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3%205.1-21.4%2013.1l-73.6%20144.2L33.2%20150.7c-8.9%201.4-16.3%207.7-19.1%2016.3s-.5%2018%205.8%2024.4l114.4%20114.5-25.2%20159.9c-1.4%208.9%202.3%2017.9%209.6%2023.2s16.9%206.1%2025%202L288.1%20417.6%20432.4%20491c8%204.1%2017.7%203.3%2025-2s11-14.2%209.6-23.2l-25.3-159.9%20114.4-114.5c6.4-6.4%208.6-15.8%205.8-24.4s-10.1-14.9-19.1-16.3L383%20125.3%20309.5-18.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.smgr-average-stars {
	position: relative;
	width: 65px;
	height: 13px;
	background: linear-gradient(90deg, var(--smgr-gold) var(--smgr-fill, 0%), #c9d0d5 var(--smgr-fill, 0%));
	-webkit-mask-position: left center;
	-webkit-mask-size: 13px 13px;
	-webkit-mask-repeat: repeat-x;
	mask-position: left center;
	mask-size: 13px 13px;
	mask-repeat: repeat-x;
}

.smgr-hero-rating a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.smgr-hero-rating .smgr-average-stars {
	display: block;
	margin-bottom: 5px;
}

.smgr-hero-rating b {
	display: block;
	color: #fff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 30px;
	line-height: .92;
}

.smgr-reviews {
	width: 100%;
	margin: 0 auto;
	padding: 0;
	font-family: var(--sm-font-body, "Source Sans 3", sans-serif);
	text-align: left;
}

.smgr-intro {
	margin: 0 0 clamp(36px, 5vw, 60px);
	text-align: left;
}

.smgr-eyebrow {
	margin: 0 0 12px;
	color: var(--smgr-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.smgr-reviews .smgr-intro h2 {
	margin: 0 0 18px;
	text-wrap: balance;
	hyphens: manual;
	overflow-wrap: normal;
}

/* Retain global heading sizes, but avoid a three-letter orphan in Kundenstimmen. */
.sm-service-page:has(.smgr-reviews) .sm-service-heading h1 {
	hyphenate-limit-chars: 12 6 6;
}

.smgr-place-name {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}

.smgr-summary {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	color: var(--smgr-muted);
}

.smgr-score {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.smgr-review-count {
	white-space: nowrap;
}

.smgr-summary strong {
	color: var(--smgr-navy);
	font-size: 20px;
}

.smgr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.smgr-card {
	display: flex;
	min-width: 0;
	min-block-size: 30rem;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--sm-card-border, #b7c5d0);
	box-shadow: var(--sm-shadow-card, 0 14px 40px rgba(7, 31, 52, .07));
}

.smgr-card-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.smgr-initial {
	display: grid;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	place-items: center;
	border-radius: 50%;
	background: #e9f2fb;
	color: var(--smgr-blue);
	font-weight: 700;
}

.smgr-card .smgr-reviewer-name {
	margin: 0 0 5px;
	color: var(--smgr-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.smgr-card .smgr-source {
	margin: 0;
	color: var(--smgr-muted);
	font-size: 14px;
	line-height: 1.5;
}

.smgr-card-stars {
	display: inline-flex;
	gap: 3px;
}

.smgr-star {
	width: 14px;
	height: 14px;
}

.smgr-star.is-filled {
	background: var(--smgr-gold);
}

.smgr-media {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	overflow: hidden;
}

.smgr-media-1 {
	grid-template-columns: 1fr;
}

.smgr-media-2 {
	grid-template-columns: repeat(2, 1fr);
}

.smgr-media img {
	display: block;
	width: 100%;
	height: 96px;
	object-fit: cover;
	object-position: center;
}

.smgr-copy,
.smgr-copy p {
	margin: 0;
}

.smgr-copy {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	gap: 12px;
}

.smgr-copy p {
	color: var(--smgr-muted);
	font-size: var(--sm-text-body, 18px);
	font-weight: 400;
	line-height: var(--sm-leading-body, 1.65);
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

/* Progressive enhancement: without JS the complete original text stays visible. */
.smgr-copy.is-ready:not(.is-expanded) .smgr-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
}

.smgr-media + .smgr-copy.is-ready:not(.is-expanded) .smgr-excerpt {
	-webkit-line-clamp: 3;
}

.smgr-more {
	align-self: flex-start;
	margin-top: auto;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--smgr-navy);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.smgr-more:hover {
	color: var(--smgr-ink);
	background: none;
}

.smgr-more:focus-visible,
.smgr-card:focus-visible,
.smgr-google-links a:focus-visible,
.smgr-hero-rating a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.smgr-reviews [hidden] {
	display: none !important;
}

.smgr-card footer {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--smgr-line);
	color: var(--smgr-muted);
	font-size: 13px;
}

.smgr-google-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px 24px;
	margin: 44px 0 0;
	text-align: left;
}

.smgr-reviews .smgr-google-links a {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	color: var(--smgr-navy);
	text-decoration: none;
	hyphens: manual;
	overflow-wrap: normal;
	text-wrap: pretty;
}

.smgr-google-links a:hover {
	color: var(--smgr-ink);
}

.smgr-google-link-tail {
	white-space: nowrap;
}

.smgr-external-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-inline-start: 10px;
	vertical-align: -.05em;
}

.smgr-empty {
	width: min(100% - 44px, 760px);
	margin: 80px auto;
	padding: 24px;
	background: #f4f7f9;
	text-align: left;
}

@media (max-width: 1024px) {
	.smgr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 689px) {
	.smgr-profile-name {
		display: block;
	}

	.smgr-profile-separator {
		display: none;
	}

	.smgr-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.smgr-card {
		padding: 22px;
	}

}
