/* Schmiedhof Bewertungen – Design passend zu schmiedhof.it
 * Übernimmt automatisch die Elementor-Globals (Primärfarbe, Inter).
 * Anpassen z. B. unter Elementor → Website-Einstellungen → Eigenes CSS:
 *   .shr, .shr-badges { --shr-accent:#CA412C; }
 */
.shr,
.shr-badges {
	--shr-accent: var(--e-global-color-primary, #CA412C);
	--shr-accent-dark: var(--e-global-color-59f8dda, #AF3826);
	--shr-heading: var(--e-global-color-text, #000000);
	--shr-text: #333333;
	--shr-muted: #656565;
	--shr-card: #F5F5F5;
	--shr-line: rgba(0, 0, 0, .09);
	--shr-star: var(--shr-accent);
	--shr-star-empty: var(--e-global-color-secondary, #D9D9D9);
	--shr-radius: 25px;
	--shr-gap: 20px;
	--shr-pad: 32px;
	--shr-font: var(--e-global-typography-text-font-family, "Inter"), "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
	font-family: var(--shr-font);
	color: var(--shr-text);
	-webkit-font-smoothing: antialiased;
}
.shr ::selection,
.shr-badges ::selection { background: var(--shr-accent); color: #fff; }

/* Variante für graue Sektionen: card="white" */
.shr--card-white,
.shr-badges--card-white { --shr-card: #FFFFFF; --shr-line: rgba(0, 0, 0, .08); }

.shr {
	--shr-c: var(--shr-cols-d, 3);
	position: relative;
}

/* Raster und Slider teilen sich dieselbe Kartenbreite */
.shr-track {
	display: flex;
	gap: var(--shr-gap);
}
.shr--grid .shr-track { flex-wrap: wrap; }
.shr--slider .shr-track {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	outline: none;
}
.shr--slider .shr-track::-webkit-scrollbar { display: none; }
.shr-track:focus-visible { outline: 2px solid var(--shr-accent); outline-offset: 4px; border-radius: var(--shr-radius); }

.shr-card {
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--shr-c) - 1) * var(--shr-gap)) / var(--shr-c));
	min-width: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: var(--shr-pad);
	background: var(--shr-card);
	border-radius: var(--shr-radius);
	margin: 0;
}

@media (max-width: 1024px) {
	.shr { --shr-c: min(var(--shr-cols-d, 3), 2); --shr-pad: 28px; }
}
@media (max-width: 680px) {
	.shr { --shr-c: 1; --shr-pad: 24px; --shr-gap: 12px; }
	.shr--slider { --shr-c: 1.1; } /* nächste Karte schaut leicht hervor */
}

/* Kopf: Logo + Bewertung */
.shr-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
	margin-bottom: 22px;
}
.shr-card__platform { display: inline-flex; align-items: center; min-width: 0; }

.shr-logo {
	display: block;
	height: 24px !important;
	width: auto !important;
	max-width: 120px;
	object-fit: contain;
}

.shr-logo-fallback {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--shr-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.shr-logo-fallback__dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	flex: none;
}

/* Sterne (5er-Skala) – SVG, Füllgrad per clip-path */
.shr-stars {
	position: relative;
	display: inline-block;
	flex: none;
	line-height: 0;
}
.shr-stars svg { display: block; width: 104px; height: 18px; }
.shr-stars__bg { fill: var(--shr-star-empty); }
.shr-stars__fg {
	position: absolute;
	inset: 0;
	fill: var(--shr-star);
}

/* Punktenote (10er/6er-Skala) – Pill wie die Buttons der Website */
.shr-score {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	white-space: nowrap;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.shr-card .shr-score:not(.shr-score--stars) {
	background: var(--shr-accent);
	color: #fff;
	padding: 7px 14px 6px;
	border-radius: 50px;
}
.shr-score__num { font-size: 15px; font-weight: 700; }
.shr-score__max { font-size: 12px; font-weight: 400; opacity: .8; }

/* Inhalt */
.shr-card__title {
	margin: 0 0 10px;
	font-family: var(--shr-font);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--shr-heading);
	text-wrap: balance;
}
.shr-card__body { flex: 1 1 auto; }
.shr-card__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--shr-font);
	font-size: 16px;
	line-height: 27px;
	font-style: normal;
	font-weight: 400;
	color: var(--shr-text);
	quotes: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--shr-lines, 6);
	overflow: hidden;
	text-wrap: pretty;
}
.shr-card__text::before,
.shr-card__text::after { content: none; }
.shr-card__body.is-open .shr-card__text { -webkit-line-clamp: unset; display: block; }

/* Buttons: Theme- und Elementor-Button-Stile (Kit) gezielt neutralisieren */
.shr button.shr-more[hidden] { display: none; }
.shr button.shr-more,
.shr button.shr-more:hover,
.shr button.shr-more:focus,
.shr button.shr-more:active {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 10px 0 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	font-family: var(--shr-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--shr-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color .2s;
}
.shr button.shr-more:hover { color: var(--shr-accent-dark); }
.shr button.shr-more:focus { outline: none; }
.shr button.shr-more:focus-visible { outline: 2px solid var(--shr-accent); outline-offset: 3px; border-radius: 2px; }

/* Fuß */
.shr-card__foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--shr-line);
}
.shr-card__author { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shr-card__author strong { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--shr-heading); }
.shr-card__author span { color: var(--shr-muted); font-size: 14px; line-height: 1.4; }

/* Link = Outline-Pill wie „Details“ auf der Website */
.shr .shr-card__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	padding: 5px 18px;
	border: 1px solid var(--shr-accent);
	border-radius: 50px;
	font-size: 13px;
	line-height: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--shr-accent);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.shr a.shr-card__link:link,
.shr a.shr-card__link:visited { color: var(--shr-accent); text-decoration: none; }
.shr a.shr-card__link:hover,
.shr a.shr-card__link:focus-visible { background: var(--shr-accent); color: #fff; text-decoration: none; }
.shr a.shr-card__link:focus-visible { outline: 2px solid var(--shr-accent); outline-offset: 3px; }
.shr .shr-card__link--plain {
	padding: 0;
	border: 0;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	color: var(--shr-muted);
}

/* Slider-Navigation */
.shr-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}
.shr-nav[hidden] { display: none; }
.shr button.shr-nav__btn,
.shr button.shr-nav__btn:hover,
.shr button.shr-nav__btn:focus,
.shr button.shr-nav__btn:active,
.shr button.shr-nav__btn:disabled {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 48px;
	min-width: 0;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--shr-accent);
	border-radius: 50%;
	box-shadow: none;
	color: var(--shr-accent);
	font-size: 0;
	line-height: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s, transform .15s cubic-bezier(.2, .8, .2, 1);
}
.shr button.shr-nav__btn svg { width: 20px; height: 20px; flex: none; }
.shr button.shr-nav__btn:hover:not(:disabled) { background: var(--shr-accent); color: #fff; }
.shr button.shr-nav__btn:active:not(:disabled) { transform: scale(.94); }
.shr button.shr-nav__btn:disabled { opacity: .3; cursor: default; }
.shr button.shr-nav__btn:focus { outline: none; }
.shr button.shr-nav__btn:focus-visible { outline: 2px solid var(--shr-accent); outline-offset: 3px; }

/* Plattform-Überblick */
.shr-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--shr-gap);
}
.shr-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	flex: 0 1 200px;
	box-sizing: border-box;
	padding: 28px 24px 26px;
	background: var(--shr-card);
	border-radius: var(--shr-radius);
	color: var(--shr-text);
	text-decoration: none;
	transition: background-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
a.shr-badge:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .18);
	text-decoration: none;
}
a.shr-badge:focus-visible { outline: 2px solid var(--shr-accent); outline-offset: 3px; }
/* Link-Stile von Theme/Elementor (Unterstreichung, Linkfarbe) neutralisieren */
.shr-badges a.shr-badge,
.shr-badges a.shr-badge:link,
.shr-badges a.shr-badge:visited,
.shr-badges a.shr-badge:hover,
.shr-badges a.shr-badge:focus,
.shr-badges a.shr-badge:active {
	color: var(--shr-text);
	text-decoration: none;
	border-bottom: 0;
	box-shadow: none;
}
.shr-badges a.shr-badge:hover { box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .18); }
.shr-badges a.shr-badge * { text-decoration: none; }
.shr-badge__logo { min-height: 28px; display: flex; align-items: center; }
.shr-badge .shr-logo { height: 28px !important; }
.shr-badge__score { display: inline-flex; }
.shr-badge .shr-score { flex-direction: column; align-items: center; gap: 8px; }
.shr-badge .shr-score:not(.shr-score--stars) { flex-direction: row; align-items: baseline; gap: 1px; }
.shr-badge .shr-score__num { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--shr-heading); }
.shr-badge .shr-score__max { font-size: 16px; color: var(--shr-muted); opacity: 1; }
.shr-badge__count { font-size: 14px; color: var(--shr-muted); }

@media (max-width: 680px) {
	.shr-badges { --shr-gap: 10px; }
	.shr-badge { flex: 1 1 calc(50% - 5px); min-width: 0; padding: 22px 10px 20px; }
	.shr-badge .shr-score__num { font-size: 32px; }
	.shr-badge .shr-stars svg { width: 88px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.shr--slider .shr-track { scroll-behavior: auto; }
	.shr-badge, .shr button.shr-nav__btn, .shr button.shr-more, .shr-card__link { transition: none; }
}
