/* mod_hrcheck – HR-Organisationscheck (karriereamberg.at)
 * Typografie & Buttons exakt an das YOOtheme-Theme der Website angeglichen:
 *   Überschriften: 'Bebas Neue' 400, #003570 (wie .uk-h1–h6)
 *   Fließtext:     'DIN Pro' 400, 1rem/1.5 (wie html)
 *   Buttons:       wie .uk-button/.uk-button-default/.uk-button-large –
 *                  Bebas, uppercase, kein Rahmen, radius 0, line-height 72px
 *   CTA-Pfeil:     Original-SVGs der Website (/images/system/pfeil-button*.svg)
 */

.hrc {
	--hrc-blue: #003570;
	--hrc-yellow: #f9b000;
	--hrc-gold: #8a6d00;
	--hrc-bg: #e3e3e3;
	--hrc-gray: #b3b3b3;
	--hrc-muted: #99a1ad;
	--hrc-heading: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
	background: var(--hrc-bg);
	color: var(--hrc-blue);
	font-family: 'DIN Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 72px) clamp(40px, 6vw, 80px);
}

.hrc, .hrc * { box-sizing: border-box; margin: 0; }

/* Header */
.hrc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hrc-brand {
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: clamp(30px, 4.5vw, 58px);
	line-height: 1;
	color: var(--hrc-blue);
	white-space: nowrap;
}
.hrc-status {
	flex: 1;
	font-family: var(--hrc-heading);
	font-weight: 400;
	color: var(--hrc-yellow);
	font-size: clamp(15px, 1.6vw, 21px);
	text-align: center;
}

/* Fortschrittslinie */
.hrc-line {
	position: relative;
	height: 7px;
	background: var(--hrc-gold);
	overflow: hidden;
	margin: clamp(14px, 2vw, 24px) 0 clamp(32px, 5vw, 64px);
}
.hrc-line-fill {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 0;
	background: var(--hrc-yellow);
	transition: width 0.4s ease;
}
.hrc.is-result .hrc-line { background: var(--hrc-yellow); }

.hrc-stage { min-height: 320px; }

/* Überschriften – wie .uk-h2 des Themes */
.hrc-title {
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	line-height: 1.2;
	color: var(--hrc-blue);
	outline: none;
}

/* Intro */
.hrc-intro-wrap { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); }
.hrc-circle {
	flex: 0 0 auto;
	width: clamp(180px, 24vw, 320px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: var(--hrc-yellow);
}
.hrc-intro { max-width: 520px; text-align: center; }
.hrc-subtitle {
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: clamp(1.15rem, 1.7vw, 1.5rem);
	line-height: 1.35;
	color: var(--hrc-blue);
	margin-top: 18px;
}
.hrc-text { margin-top: 16px; }
.hrc-text p + p { margin-top: 10px; }

/* Start-/Weiter-Buttons – wie im gelieferten Layout (Rahmen, abgerundet, Pfeil-Icon) */
.hrc-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 22px 6px;
	border: 2px solid var(--hrc-blue);
	border-radius: 9px;
	background: transparent;
	color: var(--hrc-blue);
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.2rem;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	transition: 0.1s ease-in-out;
	transition-property: color, background-color, border-color;
}
.hrc-btn:hover:not([disabled]),
.hrc-btn:focus-visible { background: var(--hrc-blue); color: #fff; }
.hrc-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
/* Pfeile optisch auf die Bebas-Versalien zentrieren */
.hrc-btn .hrc-arrow,
.hrc-backlink .hrc-arrow { position: relative; top: -1px; }
.hrc-intro .hrc-btn { margin-top: clamp(40px, 4vh, 64px); }

/* Zurück-Link */
.hrc-backlink {
	appearance: none;
	background: none;
	border: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hrc-muted);
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.1rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.1s ease-in-out;
	margin-top: 6px;
}
.hrc-backlink:hover { color: var(--hrc-blue); }

/* Themenbereich */
.hrc-question { max-width: 760px; margin: 0 auto; text-align: center; padding-top: clamp(8px, 3vh, 32px); }
.hrc-items { margin-top: clamp(20px, 3vw, 32px); text-align: left; }
.hrc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(0, 53, 112, 0.15);
}
.hrc-item-text { font-size: 1rem; line-height: 1.35; }
.hrc-item-grouplabel { border-bottom: 0; padding-bottom: 2px; }
.hrc-item-grouplabel .hrc-item-text { font-weight: 700; }
.hrc-item.is-child { margin-left: clamp(16px, 3vw, 32px); }
.hrc-item.is-child .hrc-item-text { font-size: 0.95rem; }

/* Nein/Ja-Toggle */
.hrc-toggle {
	display: inline-flex;
	margin-top: 36px;
	border: 1px solid var(--hrc-blue);
	border-radius: 9px;
	overflow: hidden;
}
.hrc-toggle button {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 8px 30px;
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.15rem;
	text-transform: uppercase;
	color: var(--hrc-muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	width: 80px;
}
.hrc-toggle button + button { border-left: 1px solid var(--hrc-blue); }
.hrc-toggle button.is-active { background: #fff; color: var(--hrc-blue); }
.hrc-toggle-sm { margin-top: 0; flex: 0 0 auto; }
.hrc-toggle-sm button { padding: 4px 18px; font-size: 1.2rem; }

.hrc-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 6vw, 72px);
	margin-top: clamp(32px, 6vh, 72px);
	flex-wrap: wrap;
}

/* Auswertung */
.hrc-result { max-width: 760px; margin: 0 auto; text-align: center; }
.hrc-gauge { width: clamp(220px, 32vw, 320px); height: auto; display: block; margin: 0 auto; }
.hrc-gauge-fill { transition: stroke-dashoffset 1s ease; }
.hrc-needle { transition: transform 1s ease; transform: rotate(0deg); transform-origin: 100px 102px; }
.hrc-percent {
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1;
	margin-top: 12px;
	color: var(--hrc-blue);
}
.hrc-result .hrc-title { margin-top: 24px; }
.hrc-result-text { max-width: 640px; margin: 14px auto 0; }
.hrc-result-text p { margin: 0 0 12px; }

/* Bereichs-Auswertung */
.hrc-breakdown { max-width: 640px; margin: 36px auto 0; text-align: left; }
.hrc-bd-title {
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--hrc-blue);
	text-align: center;
	margin-bottom: 14px;
}
.hrc-bd-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(0, 53, 112, 0.12);
}
.hrc-bd-row:last-child { border-bottom: 0; }
.hrc-bd-label { flex: 1 1 55%; font-size: 0.9375rem; line-height: 1.35; }
.hrc-bd-bar {
	flex: 1 1 35%;
	height: 8px;
	background: rgba(0, 53, 112, 0.15);
	overflow: hidden;
}
.hrc-bd-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--hrc-yellow);
	transition: width 0.9s ease;
}
.hrc-bd-val {
	flex: 0 0 48px;
	text-align: right;
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.15rem;
	color: var(--hrc-blue);
}

/* Toolbox / Akademie */
.hrc-support { margin-top: 40px; }
.hrc-support-intro { font-weight: 700; }
.hrc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
	text-align: left;
}
.hrc-card { background: #fff; padding: 30px; }
.hrc-card h4 {
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--hrc-blue);
}
.hrc-card p { margin: 10px 0 0; font-size: 0.9375rem; }
.hrc-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.9375rem; }
/* Link im Stil der „Mehr dazu“-Pfeil-Buttons der Website (.el-link) */
.hrc-card .hrc-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	margin-top: 24px;
	padding: 0 30px;
	color: var(--hrc-blue);
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: url('/images/system/pfeil-button.svg');
	border: 0;
	transition: 1s;
}
.hrc-card .hrc-link:hover,
.hrc-card .hrc-link:focus-visible {
	background-image: url('/images/system/pfeil-button-grey-hover.svg');
	color: #333;
}

.hrc-restart {
	appearance: none;
	background: none;
	border: 0;
	margin-top: 36px;
	color: var(--hrc-muted);
	font-family: var(--hrc-heading);
	font-weight: 400;
	font-size: 1.1rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.1s ease-in-out;
}
.hrc-restart:hover { color: var(--hrc-blue); }

@media (max-width: 760px) {
	.hrc-circle { display: none; }
	.hrc-brand { font-size: clamp(24px, 8vw, 34px); }
	.hrc-head { flex-wrap: wrap; }
	.hrc-status { order: 3; flex-basis: 100%; text-align: left; margin-top: 6px; }
}
@media (max-width: 560px) {
	.hrc-bd-row { flex-wrap: wrap; gap: 8px; }
	.hrc-bd-label { flex: 1 1 100%; }
	.hrc-bd-bar { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.hrc-line-fill, .hrc-gauge-fill, .hrc-needle, .hrc-bd-fill { transition: none; }
}
