/* Google Bewertungen Pro – Frontend */

.gbp-reviews {
	--gbp-accent: #4285f4;
	--gbp-star: #fbbc05;
	--gbp-bg: #ffffff;
	--gbp-card-bg: #ffffff;
	--gbp-text: #202124;
	--gbp-muted: #5f6368;
	--gbp-border: #e4e7eb;
	--gbp-radius: 14px;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--gbp-text);
	box-sizing: border-box;
}

.gbp-reviews *,
.gbp-reviews *::before,
.gbp-reviews *::after {
	box-sizing: border-box;
}

.gbp-reviews.gbp-dark {
	--gbp-bg: #1f1f1f;
	--gbp-card-bg: #2a2a2a;
	--gbp-text: #e8eaed;
	--gbp-muted: #9aa0a6;
	--gbp-border: #3c4043;
}

/* Header */
.gbp-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.gbp-header-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.gbp-header-name {
	font-weight: 600;
	font-size: 1.05rem;
}
.gbp-header-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gbp-muted);
	font-size: .95rem;
}
.gbp-header-rating strong {
	color: var(--gbp-text);
	font-size: 1.05rem;
}

/* Stars */
.gbp-stars {
	display: inline-flex;
	letter-spacing: 1px;
	font-size: 1rem;
	line-height: 1;
}
.gbp-star { color: var(--gbp-border); }
.gbp-star-full { color: var(--gbp-star); }
.gbp-star-half {
	background: linear-gradient(90deg, var(--gbp-star) 50%, var(--gbp-border) 50%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Card */
.gbp-card {
	background: var(--gbp-card-bg);
	border: 1px solid var(--gbp-border);
	border-radius: var(--gbp-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.gbp-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.gbp-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.gbp-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gbp-accent);
	color: #fff;
	font-weight: 600;
	font-size: 1.1rem;
	text-transform: uppercase;
}
.gbp-card-author {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	flex: 1 1 auto;
	min-width: 0;
}
.gbp-author-name { font-weight: 600; font-size: .98rem; }
.gbp-author-name a { color: inherit; text-decoration: none; }
.gbp-author-name a:hover { text-decoration: underline; }
.gbp-card-date { color: var(--gbp-muted); font-size: .82rem; }
.gbp-card-glogo { margin-left: auto; opacity: .9; flex: 0 0 auto; }

.gbp-text {
	color: var(--gbp-text);
	font-size: .95rem;
	line-height: 1.55;
}
.gbp-readmore {
	border: none;
	background: none;
	color: var(--gbp-accent);
	cursor: pointer;
	padding: 0;
	font-size: .9rem;
	font-weight: 600;
}

.gbp-reply {
	margin-top: 4px;
	padding: 10px 12px;
	background: rgba(66, 133, 244, .06);
	border-radius: 10px;
	font-size: .9rem;
}
.gbp-reply-label {
	display: block;
	font-weight: 600;
	color: var(--gbp-muted);
	margin-bottom: 3px;
}

/* GRID layout */
.gbp-layout-grid .gbp-track {
	display: grid;
	gap: 18px;
}
@media (max-width: 900px) {
	.gbp-layout-grid .gbp-track { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.gbp-layout-grid .gbp-track { grid-template-columns: 1fr !important; }
}

/* LIST layout */
.gbp-layout-list .gbp-track {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.gbp-loadmore-wrap { text-align: center; margin-top: 18px; }
.gbp-loadmore {
	border: 1px solid var(--gbp-border);
	background: var(--gbp-card-bg);
	color: var(--gbp-text);
	border-radius: 999px;
	padding: 10px 22px;
	cursor: pointer;
	font-weight: 600;
}
.gbp-loadmore:hover { border-color: var(--gbp-accent); color: var(--gbp-accent); }

/* "Alle Bewertungen auf Google ansehen" footer link */
.gbp-allreviews-wrap { text-align: center; margin-top: 18px; }
.gbp-allreviews {
	display: inline-block;
	color: var(--gbp-accent);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.gbp-allreviews:hover { border-bottom-color: var(--gbp-accent); }

/* SLIDER layout */
.gbp-layout-slider { padding: 0 38px; }
.gbp-layout-slider .gbp-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding-bottom: 6px;
}
.gbp-layout-slider .gbp-track::-webkit-scrollbar { display: none; }
.gbp-layout-slider .gbp-card {
	scroll-snap-align: start;
	flex: 0 0 320px;
	max-width: 85%;
}
.gbp-nav {
	position: absolute;
	top: 55%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--gbp-border);
	background: var(--gbp-card-bg);
	color: var(--gbp-text);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gbp-nav:hover { border-color: var(--gbp-accent); color: var(--gbp-accent); }
.gbp-prev { left: 0; }
.gbp-next { right: 0; }

/* BADGE layout */
.gbp-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: var(--gbp-card-bg);
	border: 1px solid var(--gbp-border);
	border-radius: var(--gbp-radius);
	padding: 18px 26px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
	text-align: center;
}
.gbp-badge-rating { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gbp-badge-score { font-size: 2rem; font-weight: 700; line-height: 1; }
.gbp-badge .gbp-stars { font-size: 1.2rem; }
.gbp-badge-count { color: var(--gbp-muted); font-size: .9rem; }
.gbp-badge-btn {
	margin-top: 6px;
	background: var(--gbp-accent);
	color: #fff !important;
	text-decoration: none;
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .9rem;
}
.gbp-badge-btn:hover { filter: brightness(1.05); }

/* Logos */
.gbp-google-logo svg { display: block; }

/* ENTRANCE ANIMATIONS (reveal on scroll) */
.gbp-animate .gbp-card {
	opacity: 0;
	transition: opacity .6s ease, transform .6s ease;
	will-change: opacity, transform;
}
.gbp-animate-slideup .gbp-card { transform: translateY(26px); }
.gbp-animate-fadein .gbp-card { transform: none; }
.gbp-animate .gbp-card.gbp-in {
	opacity: 1;
	transform: none;
}

/* MARQUEE layout (endless ticker) */
.gbp-layout-marquee { overflow: hidden; }
.gbp-layout-marquee .gbp-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 18px;
	width: max-content;
	animation: gbp-marquee var(--gbp-duration, 40s) linear infinite;
}
.gbp-layout-marquee .gbp-marquee-dup {
	display: flex;
	flex-wrap: nowrap;
	gap: 18px;
	margin-left: 18px;
}
.gbp-layout-marquee .gbp-card {
	flex: 0 0 320px;
	max-width: 320px;
}
.gbp-layout-marquee:hover .gbp-track { animation-play-state: paused; }
@keyframes gbp-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Interactive marquee (JS-enhanced): drag with the mouse or swipe on touch.
   The track itself becomes the horizontal scroll container. */
.gbp-layout-marquee.gbp-marquee-interactive .gbp-track {
	width: auto;
	animation: none;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-x;
	cursor: grab;
	scroll-behavior: auto;
}
.gbp-layout-marquee.gbp-marquee-interactive .gbp-track::-webkit-scrollbar { display: none; }
.gbp-layout-marquee.gbp-marquee-interactive .gbp-track.gbp-grabbing { cursor: grabbing; }
.gbp-layout-marquee.gbp-marquee-interactive .gbp-card { user-select: none; }

/* FADE layout (crossfade carousel) */
.gbp-layout-fade { padding: 0 38px; }
.gbp-layout-fade .gbp-track {
	position: relative;
	display: block;
}
.gbp-layout-fade .gbp-card {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity .8s ease;
}
.gbp-layout-fade .gbp-card.gbp-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}
.gbp-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}
.gbp-dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: var(--gbp-border);
	cursor: pointer;
	padding: 0;
}
.gbp-dots button.gbp-dot-active { background: var(--gbp-accent); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.gbp-animate .gbp-card { opacity: 1 !important; transform: none !important; transition: none; }
	.gbp-layout-marquee .gbp-track { animation: none; }
	.gbp-layout-fade .gbp-card { transition: none; }
}

/* Admin notice */
.gbp-notice {
	border: 1px dashed #f0ad4e;
	background: #fff8ec;
	color: #8a6d3b;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: .9rem;
}
