/* SG5 InsightHub — reviews slider ([sg5_reviews]).
   Namespaced under .sg5r; defensive resets so host themes don't leak in. */

.sg5r {
	--sg5r-star: #e8730c;
	--sg5r-border: #e5e7eb;
	--sg5r-text: #1f2937;
	--sg5r-muted: #6b7280;
	--sg5r-link: #1d4ed8;
	--sg5r-card-bg: #ffffff;
	--sg5r-radius: 10px;
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5rem 0;
	font-family: inherit;
	color: var(--sg5r-text);
}
.sg5r *,
.sg5r *::before,
.sg5r *::after {
	box-sizing: border-box;
}
/* Many host themes force-uppercase / letter-space headings, meta text and links
   (e.g. `h2, h3 { text-transform: uppercase }`). The slider shows every string
   exactly as authored/returned, so reset it defensively with !important — the
   theme's rules would otherwise leak in and shout "UNSERE BEWERTUNGEN". */
.sg5r,
.sg5r * {
	text-transform: none !important;
	letter-spacing: normal !important;
}
/* A long unbroken string (a pasted URL, or degenerate "ffff…"/"dddd…" input)
   must WRAP inside its card / modal instead of bleeding into neighbouring
   tiles or the page background. `anywhere` also shrinks the intrinsic width so
   a fixed-width card can't be forced wider by an unbreakable word. */
.sg5r-head,
.sg5r-label,
.sg5r-title,
.sg5r-body,
.sg5r-intro-title,
.sg5r-intro-text,
.sg5r-d-title,
.sg5r-d-body,
.sg5r-d-google,
.sg5r-d-reply-head,
.sg5r-d-reply-body {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.sg5r-head {
	text-align: center;
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: inherit;
}

.sg5r-viewport {
	display: flex;
	align-items: stretch;
	gap: 14px;
	position: relative;
}

/* Summary card (left) */
.sg5r-summary {
	flex: 0 0 auto;
	width: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 18px 12px;
	border: 1px solid var(--sg5r-border);
	border-radius: var(--sg5r-radius);
	background: var(--sg5r-card-bg);
	text-align: center;
}
.sg5r-avg {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
}
.sg5r-label {
	font-size: 0.95rem;
	color: var(--sg5r-text);
}
.sg5r-count {
	font-size: 0.75rem;
	color: var(--sg5r-muted);
}

/* Stars */
.sg5r-stars {
	display: inline-flex;
	line-height: 1;
	white-space: nowrap;
}
.sg5r-star {
	color: #d1d5db;
	font-size: 1.05rem;
}
.sg5r-star.is-on {
	color: var(--sg5r-star);
}

/* Sliding cards */
.sg5r-scroller {
	flex: 1 1 auto;
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 2px;
	min-width: 0;
}
.sg5r-scroller::-webkit-scrollbar {
	display: none;
}
.sg5r-card {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 230px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border: 1px solid var(--sg5r-border);
	border-radius: var(--sg5r-radius);
	background: var(--sg5r-card-bg);
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	appearance: none;
	/* Belt-and-braces: clip anything that still exceeds the fixed card width so
	   it can never spill onto the page behind the slider. */
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sg5r-card:hover {
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.08 );
	transform: translateY( -1px );
}
.sg5r-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.sg5r-verified {
	display: inline-flex;
	align-items: center;
	color: #2563eb;
}
.sg5r-google {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	padding: 3px 8px;
	border: 1px solid #dadce0;
	border-radius: 999px;
	color: #4285f4;
	white-space: nowrap;
}
.sg5r-vseal {
	flex: none;
	width: 14px;
	height: 14px;
	vertical-align: middle;
}
.sg5r-date {
	font-size: 0.78rem;
	color: var(--sg5r-muted);
}
.sg5r-title {
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sg5r-body {
	font-size: 0.86rem;
	line-height: 1.4;
	color: var(--sg5r-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sg5r-more {
	margin-top: auto;
	color: var(--sg5r-link);
	font-size: 0.82rem;
}

/* Nav arrows */
.sg5r-nav {
	flex: 0 0 auto;
	align-self: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--sg5r-border);
	border-radius: 50%;
	background: var(--sg5r-card-bg);
	color: var(--sg5r-text);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sg5r-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Intro block (right) */
.sg5r-intro {
	flex: 0 0 auto;
	width: 210px;
	align-self: center;
	padding-left: 14px;
	border-left: 1px solid var(--sg5r-border);
}
.sg5r-intro-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
}
.sg5r-intro-text {
	margin: 0;
	font-size: 0.85rem;
	color: var(--sg5r-muted);
	line-height: 1.4;
}

/* Detail modal */
.sg5r-detail {
	display: none;
}
.sg5r-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 0, 0, 0, 0.5 );
}
.sg5r-modal[hidden] {
	display: none;
}
body.sg5r-modal-open {
	overflow: hidden;
}
.sg5r-modal-box {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 85vh;
	overflow-y: auto;
	background: var(--sg5r-card-bg);
	border-radius: var(--sg5r-radius);
	padding: 24px 24px 20px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.3 );
	color: var(--sg5r-text);
}
.sg5r-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--sg5r-muted);
}
.sg5r-d-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.sg5r-d-top .sg5r-star {
	font-size: 1.3rem;
}
.sg5r-d-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85rem;
	color: #2563eb;
}
.sg5r-d-verified .sg5r-vseal {
	width: 15px;
	height: 15px;
}
.sg5r-d-google {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #4285f4;
}
.sg5r-d-google .sg5r-vseal {
	width: 15px;
	height: 15px;
}
.sg5r-d-title {
	margin: 4px 0 2px;
	font-size: 1.1rem;
	font-weight: 700;
}
.sg5r-d-date {
	font-size: 0.8rem;
	color: var(--sg5r-muted);
	margin-bottom: 8px;
}
.sg5r-d-body {
	margin: 0 0 14px;
	font-size: 0.95rem;
	line-height: 1.5;
}
.sg5r-d-reply {
	border-left: 3px solid #2563eb;
	background: #f8fafc;
	border-radius: 6px;
	padding: 12px 14px;
}
.sg5r-d-reply-head {
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 4px;
}
.sg5r-d-reply-body {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--sg5r-text);
}

/* Responsive: stack on narrow screens; intro drops below */
@media ( max-width: 782px ) {
	.sg5r-summary {
		width: 130px;
	}
	.sg5r-intro {
		display: none;
	}
}
@media ( max-width: 560px ) {
	.sg5r-viewport {
		flex-wrap: wrap;
	}
	/* Summary takes its own row; the prev/next arrows flank the sliding cards
	   on the row below (kept visible on mobile, like the reference). */
	.sg5r-summary {
		width: 100%;
		flex-direction: row;
		justify-content: center;
		gap: 12px;
	}
	.sg5r-scroller {
		flex: 1 1 0;
		min-width: 0;
	}
}
