/* Umweltcluster Quiz – Frontend
   Farben und Schriften entsprechen den Tokens von umweltcluster-nrw.de (--uc-*). */

.ucq {
	--ucq-green: var(--uc-green, #0a7f3f);
	--ucq-green-d: var(--uc-green-d, #086a34);
	--ucq-petrol: var(--uc-petrol, #0e3a3f);
	--ucq-petrol2: var(--uc-petrol2, #15535b);
	--ucq-ink: var(--uc-ink, #16262a);
	--ucq-muted: var(--uc-muted, #56696e);
	--ucq-line: var(--uc-line, #dbe4e1);
	--ucq-mint: var(--uc-mint, #eaf4ee);
	--ucq-soft: var(--uc-soft, #f4f7f6);
	--ucq-mint-t: #9fe0b6;
	--ucq-red: #b42318;
	--ucq-red-bg: #fdf0ee;
	--ucq-head: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--ucq-radius: 12px;

	max-width: 880px;
	margin: 32px auto;
	color: var(--ucq-ink);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

.ucq *,
.ucq *::before,
.ucq *::after { box-sizing: border-box; }

.ucq p { margin: 0; }
.ucq ul,
.ucq ol { margin: 0; padding: 0; list-style: none; }
.ucq li { margin: 0; padding: 0; }
.ucq li::before,
.ucq li::marker { content: none; }
.ucq h2,
.ucq h3,
.ucq h4 { margin: 0; padding: 0; font-family: var(--ucq-head); color: inherit; text-transform: none; letter-spacing: -0.01em; }
.ucq [hidden] { display: none !important; }
.ucq__stage:focus,
.ucq [tabindex="-1"]:focus { outline: none; }

/* ---------- Buttons ---------- */
.ucq .ucq-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 13px 28px;
	border: 2px solid transparent;
	border-radius: 4px;
	background: var(--ucq-green);
	box-shadow: none;
	color: #fff;
	font-family: var(--ucq-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.ucq .ucq-btn:hover { background: var(--ucq-green-d); color: #fff; }
.ucq .ucq-btn:active { transform: translateY(1px); }
.ucq .ucq-btn:focus-visible { outline: 3px solid var(--ucq-mint-t); outline-offset: 2px; }
.ucq .ucq-btn--sm { min-height: 42px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.ucq .ucq-btn--ghost { background: transparent; border-color: var(--ucq-green); color: var(--ucq-green); }
.ucq .ucq-btn--ghost:hover { background: var(--ucq-mint); color: var(--ucq-green-d); }

/* ---------- Start ---------- */
.ucq__hero,
.ucq__result-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--ucq-radius);
	background: linear-gradient(120deg, var(--ucq-petrol) 0%, var(--ucq-petrol2) 58%, var(--ucq-green-d) 100%);
	color: #fff;
}
.ucq__hero { padding: clamp(28px, 5vw, 52px); }
.ucq__hero::after,
.ucq__result-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	border: 40px solid rgba(255, 255, 255, .05);
	pointer-events: none;
}
.ucq__kicker {
	margin-bottom: 12px !important;
	color: var(--ucq-mint-t);
	font-family: var(--ucq-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ucq .ucq__title {
	margin-bottom: 16px;
	color: #fff;
	font-size: clamp(27px, 4.2vw, 42px);
	font-weight: 700;
	line-height: 1.15;
}
.ucq__intro { max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 17px; }
.ucq__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 26px 0 28px !important;
	padding: 18px 0 0 !important;
	border-top: 1px solid rgba(255, 255, 255, .16);
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}
.ucq__facts strong { display: block; color: #fff; font-family: var(--ucq-head); font-size: 22px; line-height: 1.3; }
.ucq__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ucq__note { margin-top: 12px !important; color: rgba(255, 255, 255, .86); }
.ucq__disclaimer { margin-top: 12px !important; color: var(--ucq-muted); font-size: 13px; }

/* ---------- Frage ---------- */
.ucq__card {
	padding: clamp(22px, 4.5vw, 44px);
	border: 1px solid var(--ucq-line);
	border-radius: var(--ucq-radius);
	background: #fff;
	box-shadow: 0 14px 40px rgba(14, 58, 63, .08);
}
.ucq__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 10px;
	font-size: 14px;
}
.ucq__count { color: var(--ucq-muted); font-weight: 600; }
.ucq__tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ucq__topic {
	padding: 4px 9px;
	border-radius: 4px;
	background: var(--ucq-green);
	color: #fff;
	font-family: var(--ucq-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ucq__level { display: inline-flex; align-items: center; gap: 6px; color: var(--ucq-muted); font-size: 13px; }
.ucq__dots { display: inline-flex; gap: 3px; }
.ucq__dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--ucq-line); }
.ucq__level--1 .ucq__dots i:nth-child(-n+1),
.ucq__level--2 .ucq__dots i:nth-child(-n+2),
.ucq__level--3 .ucq__dots i:nth-child(-n+3) { background: var(--ucq-green); }
.ucq__bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--ucq-mint); }
.ucq__bar span { display: block; height: 100%; border-radius: 99px; background: var(--ucq-green); transition: width .5s ease; }
.ucq .ucq__q { margin: 28px 0 22px; font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; line-height: 1.35; }

.ucq__answers { display: grid; gap: 10px; }
.ucq .ucq__answer {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid var(--ucq-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--ucq-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, opacity .2s ease;
}
.ucq .ucq__answer:hover:not(:disabled) { border-color: var(--ucq-green); background: var(--ucq-soft); }
.ucq .ucq__answer:focus-visible { outline: 3px solid var(--ucq-mint-t); outline-offset: 2px; }
.ucq .ucq__answer:disabled { cursor: default; }
.ucq__letter {
	flex: 0 0 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ucq-mint);
	color: var(--ucq-green-d);
	font-family: var(--ucq-head);
	font-size: 14px;
	font-weight: 700;
}
.ucq__atext { flex: 1 1 auto; }
.ucq__mark { flex: 0 0 auto; display: inline-flex; }
.ucq .ucq__answer.is-correct { border-color: var(--ucq-green); background: var(--ucq-mint); opacity: 1; }
.ucq .ucq__answer.is-correct .ucq__letter { background: var(--ucq-green); color: #fff; }
.ucq .ucq__answer.is-correct .ucq__mark { color: var(--ucq-green); }
.ucq .ucq__answer.is-wrong { border-color: var(--ucq-red); background: var(--ucq-red-bg); opacity: 1; }
.ucq .ucq__answer.is-wrong .ucq__letter { background: var(--ucq-red); color: #fff; }
.ucq .ucq__answer.is-wrong .ucq__mark { color: var(--ucq-red); }
.ucq .ucq__answer.is-muted { opacity: .55; }

.ucq__feedback:empty { display: none; }
.ucq__feedback {
	margin-top: 20px;
	padding: 18px 20px;
	border-left: 4px solid var(--ucq-green);
	border-radius: 8px;
	background: var(--ucq-soft);
	font-size: 15px;
}
.ucq__feedback.is-wrong { border-left-color: var(--ucq-red); }
.ucq__verdict { margin-bottom: 6px !important; font-family: var(--ucq-head); font-weight: 700; color: var(--ucq-green-d); }
.ucq__feedback.is-wrong .ucq__verdict { color: var(--ucq-red); }
.ucq__source { margin-top: 8px !important; color: var(--ucq-muted); font-size: 13px; }
.ucq__nav { display: flex; justify-content: flex-end; margin-top: 22px; }
.ucq__nav:empty { display: none; }

/* ---------- Ergebnis ---------- */
.ucq__result {
	overflow: hidden;
	border: 1px solid var(--ucq-line);
	border-radius: var(--ucq-radius);
	background: #fff;
	box-shadow: 0 14px 40px rgba(14, 58, 63, .08);
}
.ucq__result-hero {
	display: flex;
	align-items: center;
	gap: clamp(20px, 4vw, 40px);
	padding: clamp(26px, 5vw, 48px);
	border-radius: 0;
}
.ucq__ring { position: relative; flex: 0 0 132px; width: 132px; height: 132px; }
.ucq__ring svg { display: block; }
.ucq__ring-val { transition: stroke-dashoffset 1s ease; }
.ucq__ring-num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--ucq-head);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}
.ucq__ring-num small { margin-left: 2px; color: rgba(255, 255, 255, .7); font-size: 18px; font-weight: 600; }
.ucq__result-copy { position: relative; z-index: 1; }
.ucq .ucq__result-title { margin-bottom: 10px; color: #fff; font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; line-height: 1.2; }
.ucq__result-text { color: rgba(255, 255, 255, .88); }
.ucq__result-body { padding: clamp(22px, 4.5vw, 44px); }
.ucq .ucq__h4 { margin-bottom: 14px; font-size: 19px; font-weight: 700; }
.ucq__seminars { display: grid; gap: 12px; }
.ucq .ucq__seminar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 18px 20px;
	border: 1px solid var(--ucq-line);
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ucq__seminar:hover { border-color: var(--ucq-green); box-shadow: 0 6px 18px rgba(14, 58, 63, .06); }
.ucq__sem-name { font-family: var(--ucq-head); font-size: 16px; font-weight: 700; line-height: 1.35; }
.ucq__sem-info { margin-top: 4px !important; color: var(--ucq-muted); font-size: 14px; }
.ucq__sem-date { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; color: var(--ucq-green-d); font-size: 14px; font-weight: 700; }
.ucq__ico { display: inline-flex; }
.ucq__ext { display: inline-flex; margin-left: 2px; }
.ucq__extnote { margin-top: 10px !important; color: var(--ucq-muted); font-size: 13px; }
.ucq__all { margin-top: 16px !important; font-weight: 700; }
.ucq__all a { color: var(--ucq-green); text-decoration: none; }
.ucq__all a:hover { text-decoration: underline; }
.ucq__hint {
	margin-top: 24px !important;
	padding: 16px 20px;
	border-left: 4px solid var(--ucq-green);
	border-radius: 8px;
	background: var(--ucq-mint);
	font-size: 15px;
}
.ucq__review { margin-top: 24px; border: 1px solid var(--ucq-line); border-radius: 10px; }
.ucq__review summary {
	padding: 16px 20px;
	font-family: var(--ucq-head);
	font-weight: 700;
	cursor: pointer;
	list-style-position: inside;
}
.ucq__review summary:focus-visible { outline: 3px solid var(--ucq-mint-t); outline-offset: 2px; }
.ucq__review-list { display: grid; gap: 0; padding: 0 20px 8px !important; }
.ucq__review-list > li { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--ucq-line); }
.ucq__review-list > li.is-correct > .ucq__mark { color: var(--ucq-green); }
.ucq__review-list > li.is-wrong > .ucq__mark { color: var(--ucq-red); }
.ucq__review-list .ucq__mark { padding-top: 2px; }
.ucq__rq { font-weight: 700; }
.ucq__ra { margin-top: 4px !important; font-size: 15px; }
.ucq__ra--you { color: var(--ucq-red); }
.ucq__re { margin-top: 6px !important; color: var(--ucq-muted); font-size: 14px; }
.ucq__result-body > .ucq__actions { margin-top: 24px; }

.ucq-missing { padding: 12px 16px; border: 1px dashed #b42318; color: #b42318; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	.ucq { margin: 20px auto; }
	.ucq__result-hero { flex-direction: column; align-items: flex-start; }
	.ucq__seminar { flex-direction: column; align-items: stretch; }
	.ucq .ucq-btn--sm { width: 100%; }
	.ucq__nav .ucq-btn,
	.ucq__actions .ucq-btn { width: 100%; }
	.ucq .ucq__answer { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.ucq *,
	.ucq *::before,
	.ucq *::after { transition: none !important; animation: none !important; }
}
