/* Miauzoo Rassen-Finder */
.rf {
	--rf-accent: #c47f3d;
	--rf-accent-dark: #a8692f;
	--rf-bg: #f7f5f2;
	--rf-line: #e6e1da;
	--rf-plus: #2e7d4f;
	--rf-minus: #a33a2a;
	margin: 0 0 2em;
	padding: 2em;
	background: var(--rf-bg);
	border-radius: 8px;
	scroll-margin-top: 1em;
}

.rf__intro {
	text-align: center;
}

.rf__title {
	margin-bottom: 0.5em;
	font-size: 1.6em;
}

.rf__title:focus,
.rf__legend:focus {
	outline: none;
}

.rf .rf__btn {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: var(--rf-accent);
	border: 2px solid var(--rf-accent);
	border-radius: 4px;
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
}

.rf .rf__btn:hover,
.rf .rf__btn:focus-visible {
	background: var(--rf-accent-dark);
	border-color: var(--rf-accent-dark);
}

.rf .rf__btn--outline {
	margin-top: 1em;
	background: transparent;
	color: var(--rf-accent-dark);
}

.rf .rf__btn--outline:hover,
.rf .rf__btn--outline:focus-visible {
	color: #fff;
}

/* Fortschritt */
.rf__progress {
	height: 6px;
	margin-bottom: 1.5em;
	background: var(--rf-line);
	border-radius: 3px;
	overflow: hidden;
}

.rf__progress-bar {
	height: 100%;
	background: var(--rf-accent);
	transition: width 0.3s ease;
}

/* Frage */
.rf__question {
	margin: 0;
	padding: 0;
	border: 0;
}

.rf__legend {
	display: block;
	width: 100%;
	margin-bottom: 1em;
	padding: 0;
}

.rf__step {
	display: block;
	margin-bottom: 0.25em;
	color: var(--rf-accent-dark);
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rf__question-text {
	display: block;
	font-size: 1.35em;
	font-weight: 600;
	line-height: 1.3;
}

.rf .rf__answer {
	display: block;
	width: 100%;
	margin: 0 0 0.6em;
	padding: 0.9em 1.1em;
	background: #fff;
	border: 2px solid var(--rf-line);
	border-radius: 6px;
	color: inherit;
	font-size: 1em;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s;
}

.rf .rf__answer:hover,
.rf .rf__answer:focus-visible {
	border-color: var(--rf-accent);
	background: #fff;
	color: inherit;
	transform: translateX(3px);
}

.rf .rf__answer.is-selected {
	border-color: var(--rf-accent);
	background: #fdf6ef;
}

.rf .rf__back {
	margin-top: 0.5em;
	padding: 0.4em 0;
	background: none;
	border: 0;
	color: var(--rf-accent-dark);
	font-size: 0.95em;
	cursor: pointer;
}

.rf .rf__back:hover,
.rf .rf__back:focus-visible {
	background: none;
	color: var(--rf-accent);
	text-decoration: underline;
}

/* Ergebnis */
.rf__subline {
	margin-bottom: 1.25em;
}

.rf__results {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rf;
}

.rf__result {
	position: relative;
	margin: 0 0 1em;
	padding: 1.25em 1.25em 1.25em 3.5em;
	background: #fff;
	border: 1px solid var(--rf-line);
	border-radius: 6px;
	counter-increment: rf;
}

.rf__result::before {
	content: counter(rf);
	position: absolute;
	top: 1.1em;
	left: 1em;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	background: var(--rf-line);
	font-weight: 700;
	line-height: 1.8em;
	text-align: center;
}

.rf__result.is-winner {
	border: 2px solid var(--rf-accent);
}

.rf__result.is-winner::before {
	background: var(--rf-accent);
	color: #fff;
}

.rf__result::after {
	content: "";
	display: table;
	clear: both;
}

.rf__result-img {
	float: right;
	width: 140px;
	height: 105px;
	margin: 0 0 0.5em 1em;
	border-radius: 6px;
	object-fit: cover;
}

.rf__result-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
}

.rf__result-name {
	margin: 0;
	font-size: 1.2em;
}

.rf__result-name a {
	text-decoration: none;
}

.rf__percent {
	flex-shrink: 0;
	color: var(--rf-accent-dark);
	font-size: 1.2em;
	font-weight: 700;
}

.rf__meter {
	height: 8px;
	margin: 0.5em 0 0.75em;
	background: var(--rf-line);
	border-radius: 4px;
	overflow: hidden;
}

.rf__meter-fill {
	height: 100%;
	background: var(--rf-accent);
	border-radius: 4px;
}

.rf__result-text {
	margin-bottom: 0.6em;
	font-size: 0.95em;
}

.rf__reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0 0 0.75em;
	padding: 0;
	list-style: none;
}

.rf__reason {
	margin: 0;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.85em;
}

.rf__reason.is-plus {
	background: #e6f4ec;
	color: var(--rf-plus);
}

.rf__reason.is-plus::before {
	content: "✓ ";
}

.rf__reason.is-minus {
	background: #fbe9e6;
	color: var(--rf-minus);
}

.rf__reason.is-minus::before {
	content: "! ";
	font-weight: 700;
}

.rf__more {
	font-size: 0.95em;
	font-weight: 600;
}

/* Teilen */
.rf__share {
	margin: 1.5em 0 0.5em;
	padding: 1.25em;
	background: #fff;
	border: 2px dashed var(--rf-accent);
	border-radius: 6px;
	text-align: center;
}

.rf__share-title {
	margin-bottom: 0.75em;
	font-size: 1.1em;
	font-weight: 600;
}

.rf__share-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
}

.rf .rf__share-btn {
	display: inline-block;
	padding: 0.5em 1em;
	background: var(--rf-bg);
	border: 1px solid var(--rf-line);
	border-radius: 999px;
	color: inherit;
	font-size: 0.95em;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.rf .rf__share-btn:hover,
.rf .rf__share-btn:focus-visible {
	background: #fff;
	border-color: var(--rf-accent);
	color: inherit;
}

.rf__share-status {
	flex-basis: 100%;
	min-height: 1.4em;
	color: var(--rf-plus);
	font-size: 0.9em;
}

.rf a.rf__btn {
	margin-top: 1em;
	text-decoration: none;
}

.rf a.rf__btn:hover,
.rf a.rf__btn:focus-visible {
	color: #fff;
}

/* Rassen-Vergleich */
.rv {
	--rv-cols: 2;
	margin: 0 0 2em;
}

.rv__pickers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
	padding: 1.25em;
	background: #f7f5f2;
	border-left: 4px solid #c47f3d;
	border-radius: 4px;
}

.rv__picker label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
}

.rv__picker select {
	width: 100%;
}

.rv__toggle {
	display: inline-block;
	margin: 1em 0;
	cursor: pointer;
}

.rv__empty {
	padding: 2em 1em;
	color: #6b6259;
	text-align: center;
}

.rv__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.rv__table th,
.rv__table td {
	padding: 0.75em;
	border: 0;
	border-bottom: 1px solid #e6e1da;
	text-align: left;
	vertical-align: top;
}

.rv__table .rv__corner {
	width: 11em;
}

.rv__name {
	font-size: 1.15em;
}

.rv__name a {
	text-decoration: none;
}

.rv__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 0.5em;
	border-radius: 6px;
	object-fit: cover;
}

.rv__label {
	color: #5a524a;
	font-weight: 600;
}

.rv__table tr.is-different .rv__label {
	box-shadow: inset 4px 0 0 #c47f3d;
}

.rv__tags,
.rv__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv__tags li {
	margin: 0;
	padding: 0.1em 0.55em;
	border: 1px solid #e6e1da;
	border-radius: 999px;
	font-size: 0.85em;
}

.rv__checks {
	flex-direction: column;
	gap: 0.15em;
}

.rv__checks li {
	margin: 0;
	font-size: 0.95em;
}

.rv__checks .is-yes::before {
	content: "✓ ";
	color: #2e7d4f;
	font-weight: 700;
}

.rv__checks .is-no {
	color: #8a8178;
}

.rv__checks .is-no::before {
	content: "– ";
}

.rv__scale {
	display: inline-flex;
	gap: 0.3em;
}

.rv__dot {
	width: 0.85em;
	height: 0.85em;
	border-radius: 50%;
	background: #e6e1da;
}

.rv__dot.is-on {
	background: #c47f3d;
}

.rv__risk {
	display: inline-block;
	padding: 0.1em 0.55em;
	border-radius: 4px;
	font-size: 0.9em;
}

.rv__risk.is-gering {
	background: #e6f4ec;
	color: #2e7d4f;
}

.rv__risk.is-mittel {
	background: #fff4d6;
	color: #7a5a00;
}

.rv__risk.is-hoch {
	background: #fbe9e6;
	color: #a33a2a;
}

.rv__links {
	margin-top: 1em;
	font-size: 0.95em;
}

/* Handy: Merkmal als Zwischenzeile, Rassen nebeneinander darunter */
@media (max-width: 700px) {
	.rv__pickers {
		grid-template-columns: 1fr;
	}

	.rv__table,
	.rv__table thead,
	.rv__table tbody {
		display: block;
	}

	.rv__table tr {
		display: grid;
		grid-template-columns: repeat(var(--rv-cols), 1fr);
	}

	.rv__table .rv__corner {
		display: none;
	}

	.rv__table thead tr {
		position: sticky;
		top: 0;
		z-index: 1;
		background: #fff;
		box-shadow: 0 2px 0 #c47f3d;
	}

	.rv__table .rv__label {
		grid-column: 1 / -1;
		padding-bottom: 0.25em;
		border-bottom: 0;
		background: #f7f5f2;
	}

	.rv__table td,
	.rv__table th {
		padding: 0.5em;
		word-break: break-word;
	}

	.rv__name {
		font-size: 1em;
	}
}

/* Erstausstattungs-Checkliste */
.cl {
	margin: 0 0 2em;
}

.cl__head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(12em, 1fr) 2fr;
	gap: 1em 2em;
	align-items: end;
	margin-bottom: 1.5em;
	padding: 1.25em;
	background: #f7f5f2;
	border-left: 4px solid #c47f3d;
	border-radius: 4px;
}

.cl__picker label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
}

.cl__picker select {
	width: 100%;
}

.cl__count {
	margin: 0 0 0.4em;
	font-weight: 600;
}

.cl__bar {
	height: 12px;
	background: #e6e1da;
	border-radius: 6px;
	overflow: hidden;
}

.cl__bar-fill {
	height: 100%;
	background: #c47f3d;
	border-radius: 6px;
	transition: width 0.3s ease;
}

.cl__progress.is-complete .cl__count {
	color: #2e7d4f;
}

.cl__progress.is-complete .cl__bar-fill {
	background: #2e7d4f;
}

.cl__group-title {
	margin: 1.25em 0 0.5em;
	font-size: 1.15em;
}

.cl__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl__item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.75em;
	align-items: start;
	margin: 0;
	padding: 0.75em 0.5em;
	border-bottom: 1px solid #e6e1da;
}

.cl__item input[type="checkbox"] {
	width: 1.25em;
	height: 1.25em;
	margin-top: 0.15em;
	accent-color: #c47f3d;
	cursor: pointer;
}

.cl__label {
	cursor: pointer;
}

.cl__text {
	font-weight: 600;
}

.cl__item.is-done .cl__text {
	color: #8a8178;
	text-decoration: line-through;
}

.cl__badge {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0 0.5em;
	background: #fdf0e3;
	border-radius: 999px;
	color: #a8692f;
	font-size: 0.8em;
	font-weight: 600;
	vertical-align: middle;
}

.cl__tip {
	display: block;
	margin-top: 0.15em;
	color: #6b6259;
	font-size: 0.9em;
}

.cl__link {
	font-size: 0.9em;
	white-space: nowrap;
}

.cl__hint {
	margin-top: 1.5em;
	padding: 1em;
	background: #fdf6ef;
	border-radius: 4px;
	font-size: 0.95em;
}

.cl .cl__reset {
	margin-top: 1.5em;
	padding: 0.4em 0;
	background: none;
	border: 0;
	color: #8a8178;
	font-size: 0.9em;
	text-decoration: underline;
	cursor: pointer;
}

.cl .cl__reset:hover,
.cl .cl__reset:focus-visible {
	background: none;
	color: #a33a2a;
}

@media (max-width: 600px) {
	.cl__head {
		position: static;
		grid-template-columns: 1fr;
		padding: 1em;
	}

	.cl__item {
		grid-template-columns: auto 1fr;
	}

	.cl__link {
		grid-column: 2;
	}
}

.rf-hinweis {
	font-size: 0.9em;
	opacity: 0.85;
}

@media (max-width: 600px) {
	.rf {
		padding: 1.25em;
	}

	.rf__result {
		padding: 1em 1em 1em 3em;
	}

	.rf__result::before {
		left: 0.75em;
	}

	.rf__result-img {
		float: none;
		display: block;
		width: 100%;
		height: 160px;
		margin: 0 0 0.75em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rf__progress-bar,
	.rf .rf__answer {
		transition: none;
	}

	.rf .rf__answer:hover {
		transform: none;
	}
}
