@import url("../aimooc/aimooc.css");

.compass-page {
	min-height: 100vh;
}

.compass-page::before {
	content: "";
	position: fixed;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 8% 18%, rgba(103, 187, 255, .1), transparent 24rem),
		radial-gradient(circle at 92% 12%, rgba(155, 126, 238, .09), transparent 25rem);
}

.compass-page .site-header {
	position: sticky;
}

.compass-page .header-discover {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	text-decoration: none;
}

.compass-app {
	position: relative;
	width: min(calc(100% - 40px), var(--max));
	min-height: 720px;
	margin: 0 auto;
	padding: clamp(50px, 8vw, 100px) 0 100px;
}
.compass-app h1[tabindex="-1"]:focus { outline: none; }
.skip-link:not(:focus-visible) { transform: translateY(-160%); }

.compass-loading {
	min-height: 55vh;
	display: grid;
	place-content: center;
	justify-items: center;
	text-align: center;
}
.compass-loading img { border-radius: 50%; box-shadow: var(--shadow); animation: compass-pulse 1.8s ease-in-out infinite; }
.compass-loading h1 { margin-top: 1.5rem; font-size: clamp(2.4rem, 7vw, 5rem); }
.compass-loading p { color: var(--muted); }
@keyframes compass-pulse { 50% { transform: translateY(-7px); box-shadow: 0 28px 75px rgba(44,94,158,.22); } }

.compass-hero {
	position: relative;
	isolation: isolate;
	min-height: 650px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
	align-items: center;
	gap: clamp(30px, 6vw, 80px);
}
.compass-hero::before,
.compass-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}
.compass-hero::before { width: 330px; height: 330px; left: -18%; top: 4%; background: rgba(112,194,255,.14); }
.compass-hero::after { width: 270px; height: 270px; right: -8%; bottom: 3%; background: rgba(235,157,195,.12); }
.compass-hero h1 { font-size: clamp(3.25rem, 6vw, 6.4rem); }
.compass-hero h1 em { display: block; }
.compass-hero .hero-copy { position: relative; max-width: 690px; }
.compass-subtitle { margin: 1rem 0 0; color: #315f95; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.compass-hero .hero-lead { margin-top: 1.2rem; }

.compass-facts {
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .75rem;
	list-style: none;
}
.compass-facts li {
	position: relative;
	overflow: hidden;
	min-height: 104px;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255,255,255,.65);
	box-shadow: 0 10px 28px rgba(64,105,157,.07);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.compass-facts li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(#4d9bea, #8d82e4); }
.compass-facts li:nth-child(2)::before { background: linear-gradient(#5ca987, #64b6a1); }
.compass-facts li:nth-child(3)::before { background: linear-gradient(#8d82e4, #d986ae); }
.compass-facts li:hover { transform: translateY(-2px); border-color: rgba(77,148,232,.3); box-shadow: 0 16px 35px rgba(64,105,157,.11); }
.compass-facts strong { display: block; color: var(--ink); font-size: 1.1rem; }
.compass-facts span { display: block; margin-top: .3rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.recovery-entry { max-width: 700px; margin-top: 1rem; color: #526580; }
.recovery-entry summary { color: var(--blue-dark); font-weight: 750; cursor: pointer; }
.recovery-entry form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; margin-top: .8rem; }
.recovery-entry small { color: var(--muted); }

.compass-visual {
	position: relative;
	width: min(100%, 510px);
	aspect-ratio: 1;
	margin: 0 auto;
}
.compass-visual__ring {
	position: absolute;
	inset: 9%;
	border: 1px dashed rgba(90,147,214,.28);
	border-radius: 50%;
	animation: spin 55s linear infinite;
}
.compass-visual__ring::before { content: ""; position: absolute; inset: 17%; border: 1px solid rgba(139,116,220,.19); border-radius: 50%; }
.compass-visual__core {
	position: absolute;
	left: 50%; top: 50%;
	width: 42%; aspect-ratio: 1;
	display: grid; place-items: center;
	border: 1px solid rgba(255,255,255,.95);
	border-radius: 50%;
	background: rgba(255,255,255,.84);
	box-shadow: 0 24px 65px rgba(50,109,179,.2), inset 0 0 0 8px rgba(235,246,255,.62);
	transform: translate(-50%,-50%);
	backdrop-filter: blur(15px);
}
.compass-visual__core img { width: 72%; border-radius: 50%; }
.compass-visual__node {
	position: absolute;
	width: 112px;
	padding: 10px;
	border: 1px solid rgba(255,255,255,.95);
	border-radius: 24px;
	background: rgba(255,255,255,.83);
	box-shadow: 0 18px 42px rgba(58,103,160,.15);
	text-align: center;
}
.compass-visual__node img { width: 76px; height: 76px; margin: auto; border-radius: 50%; }
.compass-visual__node span { display: block; color: #526580; font-size: .68rem; font-weight: 750; }
.compass-visual__node:nth-of-type(2) { left: 0; top: 13%; animation: float-one 6s ease-in-out infinite; }
.compass-visual__node:nth-of-type(3) { right: 0; top: 8%; animation: float-two 7s ease-in-out infinite; }
.compass-visual__node:nth-of-type(4) { right: 3%; bottom: 9%; animation: float-one 7.3s ease-in-out infinite reverse; }
.compass-visual__node:nth-of-type(5) { left: 5%; bottom: 6%; animation: float-two 6.7s ease-in-out infinite reverse; }

.compass-card {
	width: min(100%, 920px);
	margin: 0 auto;
	padding: clamp(1.25rem, 4vw, 3rem);
	border: 1px solid rgba(115,155,208,.18);
	border-radius: var(--radius-lg);
	background: rgba(255,255,255,.83);
	box-shadow: 0 26px 75px rgba(40,87,148,.14);
	backdrop-filter: blur(16px);
}
.compass-card--wide { width: 100%; max-width: 1160px; }
.compass-card h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.compass-card h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.compass-card__lead { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.compass-card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }

.context-form, .module-form { display: grid; gap: 1rem; margin-top: 2rem; }
.module-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.module-form legend { margin-bottom: .75rem; color: #526580; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; color: #526580; font-size: .88rem; font-weight: 750; }
.field small { font-weight: 450; }
.field input, .field select, .field textarea {
	width: 100%;
	min-height: 50px;
	padding: .75rem .9rem;
	border: 1px solid rgba(72,116,176,.25);
	border-radius: 14px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }

.compass-note {
	padding: 1rem 1.15rem;
	border-left: 4px solid #5f9fe3;
	border-radius: 0 14px 14px 0;
	background: #edf6ff;
	color: #3d5879;
}
.compass-note--privacy { border-color: #5ba688; background: #effaf5; }
.compass-note--empty { border: 1px dashed rgba(72,116,176,.35); border-left-width: 1px; border-radius: 18px; background: #f8fbff; text-align: center; }
.compass-note--error { border-color: #b32424; background: #fff2f2; }
.recovery-code { display: block; max-width: 100%; margin-top: .6rem; padding: .7rem; border-radius: 10px; background: rgba(255,255,255,.75); overflow-wrap: anywhere; white-space: normal; user-select: all; }

.question-progress { margin-bottom: 2rem; }
.question-progress__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #526580; font-size: .85rem; font-weight: 700; }
.progress-track { height: 8px; margin-top: .7rem; overflow: hidden; border-radius: 999px; background: #e6eef8; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #55a7ee, #7c77e8, #eb8bb5); transition: width .3s ease; }
.save-state { display: inline-flex; align-items: center; gap: .35rem; color: #48725f; }
.save-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5ba688; }
.save-state.is-saving { color: #60708c; }
.save-state.is-saving::before { background: #7d8ba1; animation: compass-pulse 1.2s infinite; }
.save-state.is-error { color: #a12d2d; }
.save-state.is-error::before { background: #b32424; }

.question-category { margin: 0; color: #4774a9; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.compass-card .question-text { max-width: 800px; margin: .8rem 0 1.6rem; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.22; letter-spacing: -.03em; }
.answer-list { min-width: 0; margin: 0; padding: 0; display: grid; gap: .75rem; border: 0; }
.answer-option { position: relative; display: block; cursor: pointer; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option span {
	display: flex;
	align-items: center;
	min-height: 62px;
	padding: .9rem 1rem .9rem 3.15rem;
	border: 1px solid rgba(72,116,176,.2);
	border-radius: 17px;
	background: #fbfdff;
	color: #334a68;
	font-weight: 700;
	transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.answer-option span::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	width: 20px;
	height: 20px;
	border: 2px solid #8aa4c2;
	border-radius: 50%;
	box-shadow: inset 0 0 0 5px #fbfdff;
}
.answer-option:hover span { transform: translateY(-2px); border-color: #82afe2; box-shadow: 0 10px 25px rgba(44,94,158,.09); }
.answer-option input:checked + span { border-color: #4d94e8; background: #edf6ff; color: #1c5da8; box-shadow: 0 0 0 2px rgba(77,148,232,.12); }
.answer-option input:checked + span::before { border-color: #2672cf; background: #2672cf; box-shadow: inset 0 0 0 4px #edf6ff; }
.answer-option input:focus-visible + span { outline: 3px solid rgba(38,114,207,.35); outline-offset: 3px; }

.importance-toggle { display: flex; gap: .75rem; align-items: center; margin-top: 1.25rem; padding: 1rem; border-radius: 17px; background: #fff9e9; color: #725614; font-weight: 750; cursor: pointer; }
.importance-toggle input { width: 22px; height: 22px; accent-color: #d29824; }
.importance-toggle .star { font-size: 1.45rem; }
.question-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.question-actions__group { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-quiet { border: 0; background: transparent; color: #526580; box-shadow: none; }
.button-danger { background: #8f2d2d; color: #fff; }

.weight-list { display: grid; gap: .65rem; margin: 1.5rem 0; }
.weight-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 15px; background: #fbfdff; }
.weight-row__choice { display: contents; cursor: pointer; }
.weight-row input { width: 22px; height: 22px; accent-color: #d29824; }
.weight-row small { color: var(--muted); }
.weight-row button { border: 0; background: transparent; color: var(--blue-dark); font-weight: 750; cursor: pointer; }

.result-hero {
	display: grid;
	grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
	gap: 1.4rem;
	align-items: stretch;
}
.result-summary, .result-highlight { padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 27px; background: rgba(255,255,255,.82); box-shadow: 0 15px 42px rgba(44,94,158,.09); }
.result-highlight { background: linear-gradient(145deg, #edf6ff, #f5f0ff); }
.result-highlight h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.08; }
.top-profile-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.top-profile-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.top-profile-list strong { color: var(--blue-dark); }

.result-section { margin-top: clamp(2rem, 5vw, 4rem); }
.section-intro { max-width: 760px; color: var(--muted); }
.profile-bars { display: grid; gap: .85rem; margin-top: 1.4rem; }
.profile-bar { display: grid; grid-template-columns: minmax(150px, 260px) minmax(160px, 1fr) 58px; gap: .8rem; align-items: center; }
.profile-bar__track { height: 18px; overflow: hidden; border-radius: 999px; background: #e8f0f8; }
.profile-bar__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4d94e8, #8d82e4); }
.profile-bar strong:last-child { text-align: right; }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1.4rem; }
.module-card { display: flex; flex-direction: column; min-height: 315px; padding: 1.25rem; border: 1px solid rgba(72,116,176,.17); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 15px 40px rgba(44,94,158,.09); }
.module-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.module-card:hover, .module-card:focus-within { transform: translateY(-3px); border-color: rgba(77,148,232,.35); box-shadow: 0 20px 48px rgba(44,94,158,.14); }
.module-card__top { display: flex; align-items: center; gap: .8rem; }
.module-card__top img { width: 62px; height: 62px; border-radius: 50%; object-fit: contain; }
.module-card__top h3 { margin: 0; font-size: 1.2rem; }
.module-card__top span { color: #60708c; font-size: .76rem; }
.module-card > p { color: var(--muted); font-size: .9rem; }
.module-card .module-card__wish { margin: .25rem 0 .8rem; padding: .6rem .7rem; border-radius: 11px; background: #f4f0ff; color: #554b82; font-size: .76rem; }
.module-card__score { display: flex; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.module-card__score strong { font-size: 1.35rem; }
.module-card__score span { display: block; color: var(--muted); font-size: .72rem; }
.module-card__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.module-card__actions a, .module-card__actions button { min-height: 38px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #f7fbff; color: var(--blue-dark); font: inherit; font-size: .78rem; font-weight: 750; text-decoration: none; cursor: pointer; }

.compare-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; color: #526580; font-size: .85rem; }
.compare-legend span::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: .4rem; border-radius: 4px; vertical-align: -2px; background: #4d94e8; }
.compare-legend span:last-child::before { background: #9587df; }
.compare-table { width: 100%; border-collapse: collapse; }
.result-section [role="region"] { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table th, .compare-table td { padding: .8rem .65rem; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table th[scope="row"] { min-width: 180px; }
.mini-bar { min-width: 145px; }
.mini-bar__track { height: 12px; overflow: hidden; border-radius: 99px; background: #e8f0f8; }
.mini-bar__track span { display: block; height: 100%; border-radius: inherit; background: #4d94e8; }
.mini-bar--community .mini-bar__track span { background: #9587df; }

.scatter {
	position: relative;
	min-height: 480px;
	margin-top: 1rem;
	border-left: 2px solid #6e8199;
	border-bottom: 2px solid #6e8199;
	background: linear-gradient(to right, rgba(72,116,176,.08) 1px, transparent 1px), linear-gradient(to top, rgba(72,116,176,.08) 1px, transparent 1px);
	background-size: 20% 20%;
}
.scatter::before { content: "Community-Priorität →"; position: absolute; left: -2px; bottom: -2.1rem; color: #526580; font-size: .8rem; }
.scatter::after { content: "Persönliche Priorität →"; position: absolute; left: -7.5rem; top: 45%; color: #526580; font-size: .8rem; transform: rotate(-90deg); }
.scatter button { position: absolute; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #4d94e8, #9587df); color: #fff; font-size: .65rem; font-weight: 850; box-shadow: 0 6px 18px rgba(44,94,158,.22); transform: translate(-50%, 50%); cursor: pointer; }

.community-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.community-meta span { padding: .45rem .7rem; border-radius: 999px; background: #edf6ff; color: #315f95; font-size: .8rem; font-weight: 700; }
.community-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; align-items: end; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.68); }
.community-detail { margin-top: 2rem; }
.count-chip { display: block; margin: .2rem 0; color: #405a7c; font-size: .82rem; }

.result-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.feedback-wishes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.feedback-choice { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem; border: 1px solid var(--line); border-radius: 13px; background: #fbfdff; font-size: .86rem; }
.feedback-choice input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--blue-dark); }

.offline-banner { position: fixed; z-index: 1005; left: 50%; bottom: 1rem; width: min(calc(100% - 2rem), 760px); padding: .9rem 1rem; border-radius: 16px; background: #17243d; color: #fff; box-shadow: var(--shadow); transform: translateX(-50%); text-align: center; }
.compass-footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 2rem 0 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.compass-footer .brand { color: var(--ink); }
.compass-footer p { margin: 0 auto 0 0; }
.compass-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.compass-noscript { margin: 1rem; padding: 1rem; border: 2px solid #b32424; border-radius: 12px; background: #fff2f2; }

.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
	.compass-hero { grid-template-columns: 1fr; }
	.compass-visual { width: min(84vw, 470px); }
	.module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.result-hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.compass-app { width: min(calc(100% - 24px), var(--max)); padding-top: 55px; }
	.compass-page .site-header { top: 8px; width: calc(100% - 16px); min-height: 60px; margin-top: 8px; padding-left: 12px; }
	.compass-page .site-nav { display: none; }
	.compass-page .header-discover { padding: 9px 12px; font-size: .78rem; }
	.compass-hero { min-height: auto; }
	.compass-hero h1 { font-size: clamp(2.85rem, 16vw, 4.4rem); }
	.compass-hero .hero-copy { max-width: none; }
	.compass-facts { grid-template-columns: 1fr; }
	.compass-facts li { min-height: auto; }
	.compass-visual__node { width: 88px; border-radius: 19px; }
	.compass-visual__node img { width: 58px; height: 58px; }
	.compass-card { padding: 1.1rem; border-radius: 23px; }
	.form-grid, .feedback-wishes { grid-template-columns: 1fr; }
	.recovery-entry form { grid-template-columns: 1fr; }
	.compass-card .question-text { font-size: 1.55rem; }
	.answer-option span { min-height: 58px; padding-left: 2.8rem; font-size: .92rem; }
	.answer-option span::before { left: .9rem; }
	.question-actions, .question-actions__group { width: 100%; }
	.question-actions .button, .question-actions__group .button { flex: 1 1 130px; }
	.weight-row { grid-template-columns: auto minmax(0,1fr); }
	.weight-row button { grid-column: 2; text-align: left; padding: 0; }
	.profile-bar { grid-template-columns: 1fr 48px; }
	.profile-bar__track { grid-column: 1 / -1; grid-row: 2; }
	.module-grid { grid-template-columns: 1fr; }
	.module-card { min-height: 280px; }
	.compare-table { min-width: 650px; }
	.scatter { min-height: 380px; margin-left: 1.5rem; }
	.compass-footer { width: calc(100% - 24px); }
}

@media print {
	.site-header, .page-progress, .question-actions, .result-actions, .module-card__actions, .community-filter, .offline-banner, .compass-footer { display: none !important; }
	.compass-app { width: 100%; padding: 0; }
	.compass-card, .result-summary, .result-highlight, .module-card { box-shadow: none; break-inside: avoid; }
	.module-grid { grid-template-columns: repeat(2, 1fr); }
	body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
	.compass-loading img, .compass-visual__ring, .compass-visual__node { animation: none !important; }
	.progress-track span, .compass-facts li, .module-card { transition: none; }
}
