/* CIS Trusted Siegel – Frontend (Karte wie CIS Google Siegel, dazu die kompakte Zeile) */

.cis-trs-seal {
	--cis-trs-accent: #f5b50a;
	--cis-trs-hover: var(--cis-trs-accent);
	--cis-trs-card-bg: #16181c;
	--cis-trs-card-bg2: #1e2127;
	--cis-trs-inner-bg: #23262d;
	--cis-trs-border: rgba(255, 255, 255, .09);
	--cis-trs-text: #f4f5f7;
	--cis-trs-muted: #a7adba;
	--cis-trs-star-empty: rgba(255, 255, 255, .16);
	--cis-trs-shadow: 0 24px 60px -22px rgba(0, 0, 0, .7);

	display: block;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	color: var(--cis-trs-text);
}

.cis-trs-seal *,
.cis-trs-seal *::before,
.cis-trs-seal *::after { box-sizing: border-box; }

.cis-trs-theme-light {
	--cis-trs-card-bg: #ffffff;
	--cis-trs-card-bg2: #f7f8fa;
	--cis-trs-inner-bg: #ffffff;
	--cis-trs-border: rgba(20, 23, 28, .10);
	--cis-trs-text: #1a1d23;
	--cis-trs-muted: #5a6473;
	--cis-trs-star-empty: rgba(20, 23, 28, .14);
	--cis-trs-shadow: 0 22px 50px -24px rgba(20, 30, 50, .35);
}

.cis-trs-headline {
	margin: 0 0 16px;
	font-size: clamp(18px, 2.4vw, 24px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--cis-trs-text);
}

/* ---------- Karte ---------- */
.cis-trs-card {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 360px;
	padding: 26px 26px 24px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	border: var(--cis-trs-bw, 1px) solid var(--cis-trs-border);
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, .06), transparent 60%),
		linear-gradient(180deg, var(--cis-trs-card-bg2), var(--cis-trs-card-bg));
	box-shadow: var(--cis-trs-shadow);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

/* Link-Siegel: Theme-Linkfarben (z.B. blauer Hover) neutralisieren */
a.cis-trs-card,
a.cis-trs-card:hover,
a.cis-trs-card:focus,
a.cis-trs-card:active {
	color: var(--cis-trs-text);
	text-decoration: none;
}

a.cis-trs-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 70px -22px rgba(0, 0, 0, .75);
	border-color: var(--cis-trs-hover);
}
a.cis-trs-card:hover::before {
	background: linear-gradient(90deg, transparent, var(--cis-trs-hover), transparent);
	opacity: 1;
}

/* dezenter Goldschimmer oben */
.cis-trs-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--cis-trs-accent), transparent);
	opacity: .8;
}

.cis-trs-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--cis-trs-muted);
	margin-bottom: 12px;
}
.cis-trs-badge .cis-trs-logo { display: block; }

/* ---------- Sterne ---------- */
.cis-trs-stars {
	position: relative;
	display: inline-flex;
	white-space: nowrap;
	line-height: 0;
}
.cis-trs-stars-bg,
.cis-trs-stars-fg {
	display: inline-flex;
	gap: var(--cis-trs-star-gap, 3px);
}
/* Die gefüllte Ebene ist auf die Note gekürzt (z.B. 95 %). Ohne flex: none
   würden ihre Sterne in diese Breite gestaucht statt abgeschnitten und lägen
   versetzt über den grauen; max-width gegen Theme-Regeln wie svg{max-width:100%}. */
.cis-trs-stars svg { flex: none; max-width: none; }
.cis-trs-stars-bg svg { fill: var(--cis-trs-star-empty); }
.cis-trs-stars-fg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.cis-trs-stars-fg svg {
	fill: var(--cis-trs-accent);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

.cis-trs-top > .cis-trs-stars { margin: 2px 0 10px; }

.cis-trs-rating {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1;
	color: var(--cis-trs-text);
}
.cis-trs-rating strong { font-weight: 800; }
.cis-trs-rating span {
	font-size: 19px;
	font-weight: 600;
	color: var(--cis-trs-muted);
	margin-left: 4px;
}

.cis-trs-based {
	margin-top: 8px;
	font-size: 14px;
	color: var(--cis-trs-muted);
}

/* ---------- Innere Rezensions-Karte ---------- */
.cis-trs-review {
	position: relative;
	margin-top: 22px;
	padding: 18px 18px 16px;
	text-align: left;
	border: 1px solid var(--cis-trs-border);
	border-radius: 16px;
	background: var(--cis-trs-inner-bg);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}

.cis-trs-review-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}
.cis-trs-review-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--cis-trs-text);
}

.cis-trs-text {
	margin: 4px 0 14px;
	font-size: 14.5px;
	color: var(--cis-trs-text);
}
.cis-trs-text::before { content: "\201C"; }
.cis-trs-text::after  { content: "\201D"; }

.cis-trs-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}
.cis-trs-author {
	font-size: 13px;
	font-weight: 600;
	color: var(--cis-trs-text);
}
.cis-trs-date {
	font-weight: 400;
	color: var(--cis-trs-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
	.cis-trs-card { padding: 22px 18px 20px; }
	.cis-trs-rating { font-size: 34px; }
}

/* ---------- Notenbeschreibung (Karte) ---------- */
.cis-trs-grade {
	margin-top: 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--cis-trs-text);
}

/* ---------- Kompakte Zeile ----------
   Ohne Kartenhintergrund: Schrift und Farbe kommen aus der Umgebung (etwa dem
   Footer), damit die Zeile wie gesetzt wirkt und nicht wie ein Fremdkörper. */
.cis-trs-layout-compact {
	display: flex;
	font-family: inherit;
	color: inherit;
}
.cis-trs-layout-compact.cis-trs-own-text { color: var(--cis-trs-text); }
.cis-trs-align-left   { justify-content: flex-start; }
.cis-trs-align-center { justify-content: center; }
.cis-trs-align-right  { justify-content: flex-end; }

.cis-trs-row {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 15px;
	line-height: 1.3;
	color: inherit;
	text-decoration: none;
}
a.cis-trs-row,
a.cis-trs-row:hover,
a.cis-trs-row:focus,
a.cis-trs-row:active {
	color: inherit;
	text-decoration: none;
}
a.cis-trs-row:hover .cis-trs-row-count { text-decoration: underline; }

.cis-trs-row .cis-trs-stars-bg svg { fill: currentColor; opacity: .22; }
.cis-trs-row-rating { font-weight: 700; }
.cis-trs-row-count { opacity: .75; }
.cis-trs-row .cis-trs-logo { flex: 0 0 auto; }

.cis-trs-empty { font-style: italic; opacity: .7; }
