/*
 * RS Google-Bewertungen – Plugin-Design (skin.css).
 * Gilt nur für Widgets mit der Klasse .rsgb--skin, also ohne eigene Design-Vorlage
 * oder mit Vorlage plus „Plugin-Design zusätzlich laden“.
 * Erzeugt aus dem ursprünglichen frontend.css; Mechanik steckt in core.css.
 */
.rsgb.rsgb--skin,
.rsgb.rsgb--skin *,
.rsgb.rsgb--skin *::before,
.rsgb.rsgb--skin *::after {
	box-sizing: border-box;
}

.rsgb.rsgb--skin {
	--rsgb-panel: color-mix(in srgb, var(--rsgb-card) 94%, var(--rsgb-text));
	position: relative;
	width: 100%;
	max-width: var(--rsgb-maxw, none);
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	background: var(--rsgb-bg, transparent);
	color: var(--rsgb-text);
	font-family: var(--rsgb-font, inherit);
	font-size: var(--rsgb-fs, 15px);
	line-height: 1.55;
	text-align: left;
}

.rsgb.rsgb--skin:not(.rsgb--schwebend):not(.rsgb--badge) {
	container-type: inline-size;
	container-name: rsgb;
}

.rsgb.rsgb--skin[style*="--rsgb-bg:#"] {
	padding: 24px;
	border-radius: var(--rsgb-radius);
}

.rsgb.rsgb--skin a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.rsgb.rsgb--skin img {
	max-width: none;
	border: 0;
	box-shadow: none;
}

.rsgb.rsgb--skin .rsgb-hide,
.rsgb.rsgb--skin [hidden] {
	display: none !important;
}

/* Sterne ---------------------------------------------------------- */

.rsgb--skin .rsgb-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	white-space: nowrap;
	vertical-align: middle;
}

.rsgb--skin .rsgb-stars svg {
	width: var(--rsgb-star-size, 18px);
	height: var(--rsgb-star-size, 18px);
	margin-right: 1px;
	display: inline-block;
}

.rsgb--skin .rsgb-stars__bg svg {
	fill: var(--rsgb-star-empty, color-mix(in srgb, var(--rsgb-muted, #999) 30%, transparent));
}

.rsgb--skin .rsgb-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}

.rsgb--skin .rsgb-stars__fill svg {
	fill: var(--rsgb-star, #fbbc04);
}

.rsgb--skin .rsgb-g {
	width: 20px;
	height: 20px;
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.rsgb.rsgb--skin .rsgb-wordmark,
.rsgb.rsgb--skin .rsgb-wordmark span {
	font-family: "Product Sans", "Google Sans", Arial, Helvetica, sans-serif !important;
	font-weight: 500 !important;
	font-style: normal;
}

.rsgb--skin .rsgb-wordmark {
	font-size: var(--rsgb-logo-size, 20px);
	letter-spacing: -0.3px;
	line-height: 1;
}

/* Knöpfe ---------------------------------------------------------- */

.rsgb.rsgb--skin .rsgb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 0;
	width: auto;
	margin: 0;
	padding: 11px 22px;
	border: 1px solid var(--rsgb-btn-bg);
	border-radius: var(--rsgb-btn-radius, 999px);
	background: var(--rsgb-btn-bg);
	color: var(--rsgb-btn-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}

.rsgb.rsgb--skin .rsgb-btn:hover {
	filter: brightness(1.08);
}

.rsgb.rsgb--skin .rsgb-btn:focus-visible,
.rsgb.rsgb--skin .rsgb-more:focus-visible,
.rsgb.rsgb--skin .rsgb-arrow:focus-visible,
.rsgb.rsgb--skin .rsgb-float__btn:focus-visible {
	outline: 2px solid var(--rsgb-accent);
	outline-offset: 2px;
}

.rsgb.rsgb--skin .rsgb-btn--soft {
	background: var(--rsgb-more-bg, color-mix(in srgb, var(--rsgb-text) 7%, transparent));
	border-color: transparent;
	border-radius: var(--rsgb-more-radius, 999px);
	color: var(--rsgb-more-text, var(--rsgb-text));
}

/* Kopfbereich ----------------------------------------------------- */

.rsgb--skin .rsgb-head {
	margin-bottom: 24px;
}

.rsgb.rsgb--skin .rsgb-title {
	margin: 0 0 16px;
	padding: 0;
	color: inherit;
}

.rsgb--skin .rsgb-head__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}

.rsgb--skin .rsgb-head__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 4px;
}

.rsgb--skin .rsgb-head__score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.rsgb--skin .rsgb-head__value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.rsgb--skin .rsgb-head__count {
	color: var(--rsgb-muted);
	font-size: 14px;
}

.rsgb--skin a.rsgb-head__count:hover {
	color: var(--rsgb-accent);
	text-decoration: underline;
}

.rsgb--skin .rsgb-head--zentriert,
.rsgb--skin .rsgb-head--zentriert .rsgb-head__row {
	text-align: center;
	flex-direction: column;
	justify-content: center;
}

.rsgb--skin .rsgb-head--zentriert .rsgb-head__brand,
.rsgb--skin .rsgb-head--zentriert .rsgb-head__score {
	justify-content: center;
}

.rsgb--skin .rsgb-head--kompakt .rsgb-head__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.rsgb--skin .rsgb-head--kompakt .rsgb-head__brand {
	margin: 0;
}

.rsgb--skin .rsgb-head--kompakt .rsgb-head__value {
	font-size: 20px;
}

.rsgb--skin .rsgb-head--kompakt .rsgb-btn {
	padding: 8px 16px;
	font-size: 13px;
}

/* Kachel ---------------------------------------------------------- */

.rsgb--skin .rsgb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--rsgb-pad, 22px);
	background: var(--rsgb-card);
	border: 1px solid var(--rsgb-border);
	border-radius: var(--rsgb-radius);
	color: var(--rsgb-text);
}

.rsgb--skin .rsgb-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}

.rsgb--skin.rsgb--shadow-leicht .rsgb-card,
.rsgb--skin.rsgb--shadow-leicht .rsgb-badge,
.rsgb--skin.rsgb--shadow-leicht .rsgb-arrow { box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04); }
.rsgb--skin.rsgb--shadow-mittel .rsgb-card,
.rsgb--skin.rsgb--shadow-mittel .rsgb-badge { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.rsgb--skin.rsgb--shadow-stark .rsgb-card,
.rsgb--skin.rsgb--shadow-stark .rsgb-badge { box-shadow: 0 16px 42px rgba(0, 0, 0, .14); }

.rsgb--skin.rsgb--card-schatten .rsgb-card {
	border-color: transparent;
}

.rsgb--skin.rsgb--card-schatten.rsgb--shadow-keiner .rsgb-card {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.rsgb--skin.rsgb--card-flach .rsgb-card {
	background: transparent;
	border-color: transparent;
	padding: 4px 0;
	box-shadow: none !important;
}

/* Sprechblase: Text oben in der Blase, Person darunter. */
.rsgb--skin.rsgb--card-sprechblase .rsgb-card {
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none !important;
	gap: 16px;
}

.rsgb--skin.rsgb--card-sprechblase .rsgb-card__head {
	order: 2;
	padding-left: 8px;
}

.rsgb--skin.rsgb--card-sprechblase .rsgb-card__body {
	order: 1;
	position: relative;
	padding: 22px;
	background: var(--rsgb-card);
	border: 1px solid var(--rsgb-border);
	border-radius: var(--rsgb-radius);
}

.rsgb--skin.rsgb--card-sprechblase .rsgb-card__body::after {
	content: "";
	position: absolute;
	left: 26px;
	bottom: -9px;
	width: 16px;
	height: 16px;
	background: var(--rsgb-card);
	border-right: 1px solid var(--rsgb-border);
	border-bottom: 1px solid var(--rsgb-border);
	transform: rotate(45deg);
}

.rsgb--skin.rsgb--card-sprechblase.rsgb--shadow-leicht .rsgb-card__body { box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.rsgb--skin.rsgb--card-sprechblase.rsgb--shadow-mittel .rsgb-card__body { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.rsgb--skin.rsgb--card-sprechblase.rsgb--shadow-stark .rsgb-card__body { box-shadow: 0 16px 42px rgba(0, 0, 0, .14); }

.rsgb--skin.rsgb--equal .rsgb-item,
.rsgb--skin.rsgb--equal .rsgb-slide {
	display: flex;
}

.rsgb--skin.rsgb--equal .rsgb-card {
	width: 100%;
	height: 100%;
}

.rsgb--skin .rsgb-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.rsgb.rsgb--skin .rsgb-avatar {
	width: var(--rsgb-avatar, 44px);
	height: var(--rsgb-avatar, 44px);
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: color-mix(in srgb, var(--rsgb-text) 8%, transparent);
}

.rsgb--skin .rsgb-avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
	font-size: calc(var(--rsgb-avatar, 44px) * .42);
	line-height: 1;
}

.rsgb--skin .rsgb-card__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.rsgb.rsgb--skin .rsgb-name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	color: var(--rsgb-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rsgb.rsgb--skin a.rsgb-name:hover {
	color: var(--rsgb-accent);
}

.rsgb--skin .rsgb-date {
	color: var(--rsgb-muted);
	font-size: 13px;
	line-height: 1.3;
}

.rsgb--skin .rsgb-card__src {
	flex: none;
	align-self: flex-start;
	line-height: 0;
}

.rsgb--skin .rsgb-text {
	overflow-wrap: anywhere;
}

.rsgb--skin.rsgb--clamp .rsgb-card:not(.is-open) .rsgb-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--rsgb-lines, 4);
	line-clamp: var(--rsgb-lines, 4);
	overflow: hidden;
}

.rsgb--skin.rsgb--clamp .rsgb-card:not(.is-open) .rsgb-reply,
.rsgb--skin.rsgb--clamp .rsgb-card:not(.is-open) .rsgb-photos {
	display: none;
}

.rsgb.rsgb--skin .rsgb-more {
	align-self: flex-start;
	display: inline-block;
	width: auto;
	min-height: 0;
	margin: -4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--rsgb-accent);
	font: inherit;
	font-size: var(--rsgb-fs, 15px);
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.rsgb--skin.rsgb--indent:not(.rsgb--card-sprechblase) .rsgb-card__body {
	margin-left: calc(var(--rsgb-avatar, 44px) + 12px);
}

.rsgb.rsgb--skin .rsgb-more:hover {
	text-decoration: underline;
	background: none;
	color: var(--rsgb-accent);
}

.rsgb--skin .rsgb-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rsgb--skin .rsgb-photos img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.rsgb--skin .rsgb-reply {
	padding: 12px 14px;
	border-left: 3px solid var(--rsgb-border);
	background: color-mix(in srgb, var(--rsgb-text) 4%, transparent);
	border-radius: 0 8px 8px 0;
	font-size: .93em;
}

.rsgb--skin .rsgb-reply__label {
	font-weight: 600;
	margin-bottom: 4px;
}

.rsgb--skin .rsgb-card__logo {
	margin-top: auto;
	padding-top: 6px;
	line-height: 1;
}

/* Raster, Mauerwerk, Liste ---------------------------------------- */

.rsgb--skin .rsgb-grid {
	display: grid;
	grid-template-columns: repeat(var(--rsgb-cols, 3), minmax(0, 1fr));
	gap: var(--rsgb-gap, 24px);
	align-items: start;
}

.rsgb--skin.rsgb--equal .rsgb-grid {
	align-items: stretch;
}

.rsgb--skin.rsgb--masonry .rsgb-grid {
	display: block;
	column-count: var(--rsgb-cols, 3);
	column-gap: var(--rsgb-gap, 24px);
}

.rsgb--skin.rsgb--masonry .rsgb-item {
	break-inside: avoid;
	margin-bottom: var(--rsgb-gap, 24px);
}

.rsgb--skin.rsgb--liste .rsgb-grid {
	grid-template-columns: minmax(0, 1fr);
}

.rsgb--skin .rsgb-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

/* Karussell und Galerie ------------------------------------------- */

.rsgb--skin .rsgb-carousel {
	position: relative;
}

.rsgb--skin .rsgb-track {
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--rsgb-cols, 3) - 1) * var(--rsgb-gap, 24px)) / var(--rsgb-cols, 3));
	gap: var(--rsgb-gap, 24px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 6px 2px 14px;
	align-items: start;
}

.rsgb--skin.rsgb--equal .rsgb-track {
	align-items: stretch;
}

.rsgb--skin .rsgb-track::-webkit-scrollbar {
	display: none;
}

.rsgb--skin .rsgb-track:focus-visible {
	outline: 2px solid var(--rsgb-accent);
	outline-offset: 4px;
}

.rsgb--skin .rsgb-slide {
	scroll-snap-align: start;
	min-width: 0;
}

.rsgb--skin .rsgb-carousel--focus .rsgb-track {
	grid-auto-columns: min(560px, 70cqw);
	padding-left: calc((100cqw - min(560px, 70cqw)) / 2);
	padding-right: calc((100cqw - min(560px, 70cqw)) / 2);
}

.rsgb--skin .rsgb-carousel--focus .rsgb-slide {
	scroll-snap-align: center;
	opacity: .45;
	transform: scale(.92);
	transition: opacity .35s ease, transform .35s ease;
}

.rsgb--skin .rsgb-carousel--focus .rsgb-slide.is-active {
	opacity: 1;
	transform: none;
}

.rsgb.rsgb--skin .rsgb-arrow {
	position: absolute;
	top: calc(50% - 26px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--rsgb-border);
	border-radius: 50%;
	background: var(--rsgb-card);
	color: var(--rsgb-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
	cursor: pointer;
	transition: opacity .2s ease;
}

.rsgb.rsgb--skin .rsgb-arrow svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rsgb.rsgb--skin .rsgb-arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.rsgb.rsgb--skin .rsgb-arrow--prev { left: -16px; }
.rsgb.rsgb--skin .rsgb-arrow--next { right: -16px; }

.rsgb--skin .rsgb-carousel--focus .rsgb-arrow--prev { left: calc((100cqw - min(560px, 70cqw)) / 2 - 22px); }
.rsgb--skin .rsgb-carousel--focus .rsgb-arrow--next { right: calc((100cqw - min(560px, 70cqw)) / 2 - 22px); }

.rsgb--skin .rsgb-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
}

.rsgb.rsgb--skin .rsgb-dot {
	width: 8px;
	height: 8px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rsgb-text) 22%, transparent);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.rsgb.rsgb--skin .rsgb-dot.is-active {
	background: var(--rsgb-accent);
	transform: scale(1.25);
}

/* Laufband -------------------------------------------------------- */

.rsgb--skin .rsgb-ticker {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	padding: 6px 0 14px;
}

.rsgb--skin .rsgb-ticker__track {
	display: flex;
	width: max-content;
	animation: rsgb-tick calc(var(--rsgb-n, 6) * var(--rsgb-ticker-s, 6s)) linear infinite;
}

.rsgb--skin .rsgb-ticker:hover .rsgb-ticker__track,
.rsgb--skin .rsgb-ticker:focus-within .rsgb-ticker__track {
	animation-play-state: paused;
}

.rsgb--skin .rsgb-ticker__set {
	display: flex;
	gap: var(--rsgb-gap, 24px);
	padding-right: var(--rsgb-gap, 24px);
}

.rsgb--skin .rsgb-ticker .rsgb-slide {
	width: var(--rsgb-ticker-w, 340px);
	flex: none;
}

@keyframes rsgb-tick {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.rsgb--skin .rsgb-ticker { overflow-x: auto; }
	.rsgb--skin .rsgb-ticker__track { animation: none; }
	.rsgb--skin .rsgb-ticker__set[aria-hidden] { display: none; }
	.rsgb--skin .rsgb-track { scroll-behavior: auto; }
	.rsgb--skin .rsgb-carousel--focus .rsgb-slide { transition: none; }
}

/* Badge ----------------------------------------------------------- */

.rsgb--skin.rsgb--badge {
	background: transparent;
	padding: 0 !important;
	max-width: none;
}

.rsgb--skin .rsgb-badge-wrap {
	display: flex;
}

.rsgb--skin .rsgb-badge-wrap--mitte { justify-content: center; }
.rsgb--skin .rsgb-badge-wrap--rechts { justify-content: flex-end; }

.rsgb.rsgb--skin .rsgb-badge {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px;
	background: var(--rsgb-card);
	border: 1px solid var(--rsgb-border);
	border-radius: var(--rsgb-radius);
	color: var(--rsgb-text);
	transition: transform .15s ease;
}

.rsgb.rsgb--skin a.rsgb-badge:hover {
	transform: translateY(-1px);
}

.rsgb--skin .rsgb-badge__top {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.rsgb--skin .rsgb-badge__mid {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rsgb--skin .rsgb-badge__value {
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.rsgb--skin .rsgb-badge__count {
	color: var(--rsgb-muted);
	font-size: 13px;
}

.rsgb.rsgb--skin .rsgb-badge--kompakt {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: var(--rsgb-btn-radius, 999px);
}

.rsgb--skin .rsgb-badge--kompakt .rsgb-badge__value {
	font-size: 17px;
}

.rsgb.rsgb--skin .rsgb-badge--siegel {
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 168px;
	height: 168px;
	padding: 18px;
	border-radius: 50%;
	border-width: 4px;
	border-color: var(--rsgb-star);
	gap: 4px;
}

.rsgb--skin .rsgb-badge--siegel .rsgb-badge__value {
	font-size: 38px;
}

.rsgb--skin .rsgb-badge--siegel .rsgb-stars svg {
	width: 16px;
	height: 16px;
}

.rsgb--skin .rsgb-badge--siegel .rsgb-g {
	width: 24px;
	height: 24px;
	margin-top: 2px;
}

.rsgb--skin .rsgb-badge--siegel .rsgb-badge__label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

/* Schwebendes Widget ---------------------------------------------- */

.rsgb--skin.rsgb--schwebend {
	position: static;
	max-width: none;
	padding: 0 !important;
	background: transparent;
}

.rsgb--skin .rsgb-float {
	position: fixed;
	bottom: var(--rsgb-float-y, 20px);
	z-index: 99990;
}

.rsgb--skin .rsgb-float--rechts { right: var(--rsgb-float-x, 20px); }
.rsgb--skin .rsgb-float--links { left: var(--rsgb-float-x, 20px); }

.rsgb.rsgb--skin .rsgb-float__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 0;
	width: auto;
	margin: 0;
	padding: 10px 18px 10px 14px;
	border: 1px solid var(--rsgb-border);
	border-radius: var(--rsgb-btn-radius, 999px);
	background: var(--rsgb-card);
	color: var(--rsgb-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}

.rsgb.rsgb--skin .rsgb-float__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
	background: var(--rsgb-card);
	color: var(--rsgb-text);
}

.rsgb--skin .rsgb-float__btn .rsgb-g {
	width: 26px;
	height: 26px;
}

.rsgb--skin .rsgb-float__text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rsgb--skin .rsgb-float__text strong {
	font-size: 17px;
}

.rsgb--skin .rsgb-float__count {
	color: var(--rsgb-muted);
	font-size: 12px;
}

.rsgb--skin .rsgb-float__btn .rsgb-stars svg {
	width: 15px;
	height: 15px;
}

.rsgb--skin .rsgb-panel__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(15, 17, 20, .35);
	opacity: 0;
	transition: opacity .25s ease;
}

.rsgb--skin .rsgb-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 99992;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: var(--rsgb-panel);
	color: var(--rsgb-text);
	box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
	transform: translateX(100%);
	transition: transform .3s ease;
}

.rsgb--skin .rsgb-float--links .rsgb-panel {
	right: auto;
	left: 0;
	transform: translateX(-100%);
	box-shadow: 12px 0 40px rgba(0, 0, 0, .18);
}

.rsgb--skin .rsgb-float.is-open .rsgb-panel { transform: none; }
.rsgb--skin .rsgb-float.is-open .rsgb-panel__backdrop { opacity: 1; }

.rsgb--skin .rsgb-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--rsgb-border);
	background: var(--rsgb-card);
}

.rsgb--skin .rsgb-panel__title {
	font-weight: 700;
	font-size: 17px;
}

.rsgb.rsgb--skin .rsgb-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rsgb-text) 7%, transparent);
	color: var(--rsgb-text);
	cursor: pointer;
}

.rsgb.rsgb--skin .rsgb-panel__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.rsgb--skin .rsgb-panel__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px;
}

.rsgb--skin .rsgb-panel__body .rsgb-head {
	margin-bottom: 18px;
}

.rsgb--skin .rsgb-panel__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

@media (max-width: 640px) {
	.rsgb--skin .rsgb-float--no-mobile { display: none; }
	.rsgb.rsgb--skin .rsgb-float__btn { padding: 8px 14px 8px 10px; }
	.rsgb--skin .rsgb-float__count { display: none; }
}

/* Vorschau im Backend: schwebendes Widget bleibt im Vorschaufenster. */
.rsgb--skin.rsgb--preview .rsgb-float {
	position: static;
}

.rsgb--skin.rsgb--preview .rsgb-float__btn,
.rsgb--skin.rsgb--preview .rsgb-panel,
.rsgb--skin.rsgb--preview .rsgb-panel__backdrop {
	position: absolute;
}

.rsgb--skin.rsgb--preview .rsgb-float__btn {
	bottom: var(--rsgb-float-y, 20px);
	z-index: 1;
}

.rsgb--skin.rsgb--preview .rsgb-float--rechts .rsgb-float__btn { right: var(--rsgb-float-x, 20px); }
.rsgb--skin.rsgb--preview .rsgb-float--links .rsgb-float__btn { left: var(--rsgb-float-x, 20px); }
.rsgb--skin.rsgb--preview .rsgb-panel__backdrop { z-index: 2; }
.rsgb--skin.rsgb--preview .rsgb-panel { z-index: 3; }

.rsgb--skin.rsgb--preview .rsgb-panel {
	width: min(440px, 100%);
}

/* Hinweis --------------------------------------------------------- */

.rsgb--skin .rsgb-notice {
	padding: 14px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 14px;
}

/* Breiten (nach Platz des Widgets, nicht nach Bildschirm) ----------- */

@container rsgb (max-width: 1023px) {
	.rsgb--skin .rsgb-grid { grid-template-columns: repeat(var(--rsgb-cols-t, 2), minmax(0, 1fr)); }
	.rsgb--skin.rsgb--masonry .rsgb-grid { column-count: var(--rsgb-cols-t, 2); }
	.rsgb--skin.rsgb--liste .rsgb-grid { grid-template-columns: minmax(0, 1fr); }
	.rsgb--skin .rsgb-track { grid-auto-columns: calc((100% - (var(--rsgb-cols-t, 2) - 1) * var(--rsgb-gap, 24px)) / var(--rsgb-cols-t, 2)); }
	.rsgb--skin .rsgb-carousel--focus .rsgb-track { grid-auto-columns: 78cqw; padding-left: 11cqw; padding-right: 11cqw; }
	.rsgb.rsgb--skin .rsgb-arrow--prev { left: 0; }
	.rsgb.rsgb--skin .rsgb-arrow--next { right: 0; }
}

@container rsgb (max-width: 639px) {
	.rsgb--skin .rsgb-grid { grid-template-columns: repeat(var(--rsgb-cols-m, 1), minmax(0, 1fr)); }
	.rsgb--skin.rsgb--masonry .rsgb-grid { column-count: var(--rsgb-cols-m, 1); }
	.rsgb--skin .rsgb-track { grid-auto-columns: calc((100% - (var(--rsgb-cols-m, 1) - 1) * var(--rsgb-gap, 24px)) / var(--rsgb-cols-m, 1)); }
	.rsgb--skin .rsgb-carousel--focus .rsgb-track { grid-auto-columns: 86cqw; padding-left: 7cqw; padding-right: 7cqw; }
	.rsgb.rsgb--skin .rsgb-arrow { display: none; }
	.rsgb--skin .rsgb-head__row { flex-direction: column; align-items: flex-start; }
	.rsgb--skin .rsgb-head--zentriert .rsgb-head__row { align-items: center; }
	.rsgb--skin .rsgb-card { padding: 18px; }
	.rsgb.rsgb--skin[style*="--rsgb-bg:#"] { padding: 16px; }
}
