/**
 * Lead-Magnet-Tools (KI-Check + ROI-Rechner).
 * Nutzt die Design-Tokens des Themes (CSS-Variablen) und funktioniert in Hell & Dunkel.
 * Fällt ohne Theme auf neutrale Werte zurück.
 */

.ax-tool {
	--axt-bg: var(--surface, #fff);
	--axt-fg: var(--text, #0f172a);
	--axt-muted: var(--muted, #64748b);
	--axt-border: var(--border, #e2e8f0);
	--axt-accent: var(--brand, #6d5efc);
	--axt-accent-2: var(--brand-2, #22d3ee);
	--axt-radius: var(--radius, 16px);
	background: var(--axt-bg);
	color: var(--axt-fg);
	border: 1px solid var(--axt-border);
	border-radius: var(--axt-radius);
	padding: clamp(1.1rem, 3vw, 2rem);
	box-shadow: var(--shadow, 0 10px 30px rgba(2, 6, 23, .06));
}

.ax-tool * { box-sizing: border-box; }

.ax-tool .ax-progress {
	display: flex; align-items: center; gap: .75rem;
	margin-bottom: 1.25rem;
}
.ax-tool .ax-progress-bar {
	flex: 1; height: 8px; border-radius: 999px;
	background: var(--axt-border); overflow: hidden;
}
.ax-tool .ax-progress-fill {
	height: 100%; width: 0;
	background: linear-gradient(90deg, var(--axt-accent), var(--axt-accent-2));
	transition: width .35s ease;
}
.ax-tool .ax-progress-label { font-size: .85rem; color: var(--axt-muted); white-space: nowrap; }

.ax-tool .ax-q-frage { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 650; margin: 0 0 .35rem; }
.ax-tool .ax-q-hilfe { color: var(--axt-muted); margin: 0 0 1.1rem; font-size: .95rem; }

.ax-tool .ax-optionen { display: grid; gap: .6rem; margin: 0 0 1.4rem; }
.ax-tool .ax-opt {
	display: flex; align-items: center; gap: .7rem;
	padding: .85rem 1rem; border: 1.5px solid var(--axt-border);
	border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .05s;
	font-size: 1rem; text-align: left; width: 100%;
	background: transparent; color: inherit;
}
.ax-tool .ax-opt:hover { border-color: var(--axt-accent); }
.ax-tool .ax-opt:active { transform: scale(.995); }
.ax-tool .ax-opt[aria-pressed="true"] {
	border-color: var(--axt-accent);
	background: color-mix(in srgb, var(--axt-accent) 10%, transparent);
}
.ax-tool .ax-opt .ax-opt-dot {
	width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid var(--axt-border); flex: 0 0 auto; position: relative;
}
.ax-tool .ax-opt[aria-pressed="true"] .ax-opt-dot { border-color: var(--axt-accent); }
.ax-tool .ax-opt[aria-pressed="true"] .ax-opt-dot::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%;
	background: var(--axt-accent);
}

.ax-tool .ax-nav { display: flex; justify-content: space-between; gap: .75rem; }
.ax-tool .ax-nav [hidden] { display: none !important; }

/* --- Ergebnis --- */
.ax-tool .ax-result { text-align: center; }
.ax-tool .ax-score-ring {
	--val: 0;
	width: 160px; height: 160px; margin: .5rem auto 1rem; border-radius: 50%;
	background: conic-gradient(var(--axt-accent) calc(var(--val) * 1%), var(--axt-border) 0);
	display: grid; place-items: center; position: relative;
}
.ax-tool .ax-score-ring::before {
	content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--axt-bg);
}
.ax-tool .ax-score-num { position: relative; font-size: 2.4rem; font-weight: 750; line-height: 1; }
.ax-tool .ax-score-num small { display: block; font-size: .8rem; font-weight: 500; color: var(--axt-muted); margin-top: .2rem; }
.ax-tool .ax-result-titel { font-size: 1.4rem; font-weight: 700; margin: .2rem 0 .4rem; }
.ax-tool .ax-result-text { color: var(--axt-muted); max-width: 46ch; margin: 0 auto 1.2rem; }

.ax-tool .ax-tipps { text-align: left; display: grid; gap: .55rem; margin: 0 auto 1.4rem; max-width: 52ch; }
.ax-tool .ax-tipps li { list-style: none; padding-left: 1.9rem; position: relative; }
.ax-tool .ax-tipps li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	width: 1.4rem; height: 1.4rem; border-radius: 50%;
	background: color-mix(in srgb, var(--axt-accent) 15%, transparent);
	color: var(--axt-accent); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* --- Lead-Formular --- */
.ax-tool-lead {
	margin-top: 1.4rem; padding: clamp(1.1rem, 3vw, 1.8rem);
	border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius, 16px);
	background: var(--surface-2, #f8fafc);
}
.ax-tool-lead[hidden] { display: none !important; }
.ax-tool-lead .ax-tool-lead-title { margin: 0 0 .3rem; font-size: 1.25rem; }
.ax-tool-lead .ax-field { margin: .8rem 0; }
.ax-tool-lead label { display: block; font-weight: 600; margin-bottom: .3rem; }
.ax-tool-lead input[type="text"],
.ax-tool-lead input[type="email"] {
	width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--border, #e2e8f0);
	border-radius: 10px; font-size: 1rem; background: var(--surface, #fff); color: inherit;
}
.ax-tool-lead .ax-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--muted, #64748b); }
.ax-tool .ax-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* --- Vertrauensblock ([axona_vertrauen] / [axona_testimonials]) ---
   Bewusst ohne Kundenstimmen: nur nachprüfbare Zusagen zur Arbeitsweise. */
.ax-trust {
	--axtr-surface: var(--surface, #fff);
	--axtr-surface-2: var(--surface-2, #f8fafc);
	--axtr-line: var(--line, var(--border, #e2e8f0));
	--axtr-ink: var(--ink, var(--text, #0f172a));
	--axtr-muted: var(--muted, #64748b);
	--axtr-accent: var(--brand-2, var(--brand, #6d5efc));
	margin: 1.6rem 0;
	color: var(--axtr-ink);
}
.ax-trust-intro {
	margin: 0 0 1.2rem;
	max-width: 62ch;
	color: var(--axtr-muted);
}
.ax-trust-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}
@media (min-width: 760px) {
	.ax-trust-liste { grid-template-columns: repeat(2, 1fr); }
}
.ax-trust-item {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin: 0;
	padding: 1.3rem 1.4rem 1.3rem 3.1rem;
	position: relative;
	background: var(--axtr-surface);
	border: 1px solid var(--axtr-line);
	border-radius: var(--r, var(--radius, 16px));
	box-shadow: var(--shadow-sm, 0 6px 18px rgba(2, 6, 23, .05));
}
.ax-trust-item::before {
	content: "✓";
	position: absolute;
	left: 1.2rem;
	top: 1.35rem;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: .8rem;
	font-weight: 700;
	color: var(--axtr-accent);
	background: color-mix(in srgb, var(--axtr-accent) 15%, transparent);
}
.ax-trust-titel { font-weight: 650; line-height: 1.35; }
.ax-trust-text { color: var(--axtr-muted); font-size: .94rem; line-height: 1.55; }
.ax-trust-hinweis {
	margin: 1.2rem 0 0;
	max-width: 68ch;
	padding: .9rem 1.1rem;
	border-left: 3px solid var(--axtr-line);
	background: var(--axtr-surface-2);
	border-radius: 0 var(--r-sm, 10px) var(--r-sm, 10px) 0;
	color: var(--axtr-muted);
	font-size: .9rem;
	line-height: 1.55;
}

/* Dark Mode: Theme-Umschalter und, ohne Theme, Systemeinstellung. */
[data-theme="dark"] .ax-trust-item { box-shadow: none; }
[data-theme="dark"] .ax-trust-hinweis { background: color-mix(in srgb, var(--axtr-line) 45%, transparent); }
@media (prefers-color-scheme: dark) {
	html:not([data-theme]) .ax-trust {
		--axtr-surface: var(--surface, #0f172a);
		--axtr-surface-2: var(--surface-2, #111c33);
		--axtr-line: var(--line, var(--border, #212b47));
		--axtr-ink: var(--ink, var(--text, #e6ecf7));
		--axtr-muted: var(--muted, #93a0be);
	}
}

/* Keine Bewegung erzwingen — der Block animiert ohnehin nicht. */
@media (prefers-reduced-motion: reduce) {
	.ax-trust, .ax-trust-item, .ax-trust-hinweis {
		animation: none !important;
		transition: none !important;
	}
}

/* kleine Helfer */
.ax-tool .muted { color: var(--axt-muted); }
.ax-tool [hidden] { display: none !important; }
.ax-tool .ax-fade { animation: axFade .35s ease; }
@keyframes axFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
