.pr-ranking-widget {
	font-family: var(--pr-font, inherit);
	font-size: var(--pr-font-size, 15px);
	color: var(--pr-text, #1d2327);
	margin: 1.5em 0;
}

.pr-ranking-title {
	font-family: var(--pr-heading-font, inherit);
	font-size: var(--pr-heading-size, 18px);
	font-weight: var(--pr-heading-weight, 700);
	margin-bottom: 0.75em;
}

/* Kategorie-Tabs (wenn Shortcode ohne "kategorie" genutzt wird) */
.pr-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 1em;
}

.pr-category-tab {
	font-family: inherit;
	font-size: 0.95em;
	padding: 0.5em 1em;
	border: 1px solid var(--pr-border, #dcdcde);
	border-radius: var(--pr-radius, 8px);
	background: var(--pr-bg, #fff);
	color: var(--pr-text, #1d2327);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pr-category-tab:hover {
	background: var(--pr-hover-bg, #eef6fc);
	color: var(--pr-hover-text, #1d2327);
}

.pr-category-tab.is-active {
	background: var(--pr-primary, #2271b1);
	border-color: var(--pr-primary, #2271b1);
	color: #fff;
}

.pr-category-group.is-hidden {
	display: none;
}

/* Filter-/Prioritäts-Panel */
.pr-filter-panel {
	background: var(--pr-alt-row-bg, #f6f7f7);
	border: 1px solid var(--pr-border, #dcdcde);
	border-radius: var(--pr-radius, 8px);
	padding: 1em 1.25em;
	margin-bottom: 1em;
}

.pr-filter-search {
	margin-bottom: 0.75em;
}

.pr-search-input {
	width: 100%;
	max-width: 320px;
	padding: 0.5em 0.75em;
	border: 1px solid var(--pr-border, #dcdcde);
	border-radius: var(--pr-radius, 8px);
	font-family: inherit;
	font-size: 0.95em;
}

.pr-filter-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.pr-filter-weights {
	display: flex;
	flex-direction: column;
	gap: 0.9em;
}

.pr-weight-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
}

.pr-weight-group-label {
	min-width: 160px;
	font-weight: 600;
	font-size: 0.92em;
}

.pr-weight-scale {
	display: inline-flex;
	border: 1px solid var(--pr-border, #dcdcde);
	border-radius: var(--pr-radius, 8px);
	overflow: hidden;
}

.pr-weight-option {
	position: relative;
	cursor: pointer;
}

.pr-weight-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pr-weight-option span {
	display: block;
	padding: 0.45em 0.9em;
	font-size: 0.82em;
	white-space: nowrap;
	color: var(--pr-text, #1d2327);
	border-right: 1px solid var(--pr-border, #dcdcde);
	transition: background 0.15s ease, color 0.15s ease;
}

.pr-weight-option:last-child span {
	border-right: none;
}

.pr-weight-option:hover span {
	background: var(--pr-hover-bg, #eef6fc);
	color: var(--pr-hover-text, #1d2327);
}

.pr-weight-option input:checked + span {
	background: var(--pr-primary, #2271b1);
	color: #fff;
}

.pr-weight-option input:focus-visible + span {
	outline: 2px solid var(--pr-primary, #2271b1);
	outline-offset: -2px;
}

.pr-reset-weights {
	background: transparent;
	border: 1px solid var(--pr-border, #dcdcde);
	border-radius: var(--pr-radius, 8px);
	padding: 0.4em 0.9em;
	font-size: 0.85em;
	cursor: pointer;
	color: var(--pr-text, #1d2327);
	transition: background 0.15s ease, color 0.15s ease;
}

.pr-reset-weights:hover {
	background: var(--pr-hover-bg, #eef6fc);
	color: var(--pr-hover-text, #1d2327);
}

/* Tabelle */
.pr-table-scroll {
	overflow-x: auto;
}

.pr-ranking-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--pr-bg, #fff);
	border-radius: var(--pr-radius, 8px);
	overflow: hidden;
}

.pr-ranking-table thead th {
	background: var(--pr-header-bg, #1d2327);
	color: var(--pr-header-text, #fff);
	text-align: left;
	padding: 0.75em 1em;
	font-weight: 600;
	white-space: nowrap;
}

.pr-ranking-table .pr-unit {
	font-weight: 400;
	opacity: 0.8;
	font-size: 0.85em;
}

.pr-ranking-table tbody tr {
	border-bottom: 1px solid var(--pr-border, #dcdcde);
	transition: background 0.15s ease, color 0.15s ease;
}

.pr-ranking-table tbody tr:nth-child(even) {
	background: var(--pr-alt-row-bg, #f6f7f7);
}

.pr-ranking-table tbody tr:hover {
	background: var(--pr-hover-bg, #eef6fc);
	color: var(--pr-hover-text, #1d2327);
}

.pr-ranking-table tbody tr.pr-row-filtered {
	display: none;
}

.pr-ranking-table td,
.pr-ranking-table th {
	padding: 0.7em 1em;
	vertical-align: middle;
}

.pr-rank-num {
	font-weight: 700;
	color: var(--pr-primary, #2271b1);
}

.pr-total-score {
	font-weight: 700;
	color: var(--pr-accent, #d63638);
	white-space: nowrap;
}

.pr-provider-name-wrap {
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.pr-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: calc(var(--pr-radius, 8px) / 2);
}

.pr-provider-name {
	font-weight: 600;
}

.pr-col-action {
	text-align: right;
}

.pr-button {
	display: inline-block;
	background: var(--pr-button-bg, #2271b1);
	color: var(--pr-button-text, #fff);
	padding: 0.5em 1.1em;
	border-radius: var(--pr-radius, 8px);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9em;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.pr-button:hover,
.pr-button:focus {
	background: var(--pr-button-hover-bg, #135e96);
	color: var(--pr-button-hover-text, #fff);
}

.pr-ranking-widget a:not(.pr-button) {
	color: var(--pr-link, #2271b1);
}

.pr-ranking-widget a:not(.pr-button):hover {
	color: var(--pr-link-hover, #135e96);
}

.pr-ranking-empty {
	color: var(--pr-muted, #6b7280);
	font-style: italic;
}

@media (max-width: 640px) {
	.pr-weight-group {
		flex-direction: column;
		align-items: flex-start;
	}
	.pr-weight-group-label {
		min-width: 0;
	}
}
