.ssz {
	--ssz-accent: #1b9aaa;
	--ssz-border: rgba(128, 128, 128, 0.32);
	--ssz-bg: rgba(128, 128, 128, 0.08);
	margin: 1.5em 0;
	color: inherit;
	font-family: inherit;
	box-sizing: border-box;
}
.ssz *,
.ssz *::before,
.ssz *::after {
	box-sizing: inherit;
}

.ssz-title {
	margin: 0 0 0.75em;
}

/* ---------- Liste / Kacheln ---------- */
.ssz-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ssz--list .ssz-list {
	grid-template-columns: 1fr;
	gap: 10px;
}

.ssz-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--ssz-border);
	border-left: 4px solid var(--ssz-accent);
	border-radius: 12px;
	background: var(--ssz-bg);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ssz-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ssz-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 460 / 215;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}
.ssz-body {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	padding: 12px 14px 14px;
	min-width: 0;
}
.ssz-name {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.ssz-count {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4em;
}
.ssz-num {
	font-size: 1.9em;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.ssz-label {
	font-size: 0.85em;
	opacity: 0.75;
}

/* Listen-Darstellung & Suchergebnisse: Zeile statt Kachel */
.ssz--list .ssz-card,
.ssz-result {
	flex-direction: row;
	align-items: center;
}
.ssz--list .ssz-img,
.ssz-result .ssz-img {
	width: 140px;
	flex: 0 0 140px;
}
.ssz--list .ssz-body,
.ssz-result .ssz-body {
	flex: 1 1 auto;
	padding: 10px 14px;
}
.ssz--list .ssz-num,
.ssz-result .ssz-num {
	font-size: 1.5em;
}

/* Live-Punkt */
.ssz-dot {
	align-self: center;
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
	animation: ssz-pulse 2s infinite;
	flex: 0 0 auto;
}
.is-loading .ssz-dot,
.is-stale .ssz-dot,
.is-nodata .ssz-dot,
.is-error .ssz-dot {
	background: #9aa0a6;
	animation: none;
}
.is-loading .ssz-num {
	opacity: 0.45;
}
@keyframes ssz-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
	70%  { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* 24-h-Verlauf */
.ssz-trend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.2em 0.7em;
	margin-top: 0.25em;
	font-size: 0.8em;
}
.ssz-spark {
	flex: 0 0 auto;
	width: 120px;
	height: 28px;
	overflow: visible;
	color: var(--ssz-accent); /* Linie nutzt currentColor */
}
.ssz-peak {
	opacity: 0.7;
}

.ssz-link {
	font-size: 0.85em;
	text-decoration: underline;
}

.ssz-note,
.ssz-status,
.ssz-empty {
	margin: 0.75em 0 0;
	font-size: 0.85em;
	opacity: 0.75;
}

/* ---------- Suche ---------- */
.ssz-search {
	margin-top: 2em;
	padding-top: 1.25em;
	border-top: 1px solid var(--ssz-border);
}
.ssz-search-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}
.ssz-search-input {
	width: 100%;
	max-width: 520px;
	padding: 0.65em 0.9em;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid var(--ssz-border);
	border-radius: 8px;
}
.ssz-search-input:focus {
	outline: 2px solid var(--ssz-accent);
	outline-offset: 1px;
	border-color: var(--ssz-accent);
}
.ssz-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 10px;
	margin-top: 1em;
}

/* ---------- Inline-Shortcode ---------- */
.ssz-inline .ssz-num {
	font-size: 1em;
	font-weight: 700;
}
.ssz-inline .ssz-label {
	font-size: 1em;
	opacity: 1;
}

@media (max-width: 520px) {
	.ssz--list .ssz-img,
	.ssz-result .ssz-img {
		width: 96px;
		flex-basis: 96px;
	}
	.ssz-results {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ssz-dot { animation: none; }
	.ssz-card { transition: none; }
	.ssz-card:hover { transform: none; }
}
