/* QuietWeight widget — scoped under .qw-widget, theme-independent. */

.qw-widget {
	--qw-bg: #f7f5ef;
	--qw-card: #ffffff;
	--qw-ink: #2c2c2c;
	--qw-muted: #8a8175;
	--qw-blue: #1f3a5f;
	--qw-gold: #c98a3a;
	--qw-line: #e7e1d4;
	--qw-radius: 16px;
	--qw-serif: Georgia, "Times New Roman", serif;
	--qw-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	max-width: 920px;
	margin: 0 auto;
	color: var(--qw-ink);
	font-family: var(--qw-sans);
	box-sizing: border-box;
}
.qw-widget *, .qw-widget *::before, .qw-widget *::after { box-sizing: border-box; }

/* Breathing room only when embedded via shortcode inside page/post content
   (not when placed as a block in a template, e.g. the homepage hero). */
.entry-content .qw-widget,
.wp-block-post-content .qw-widget { margin-top: clamp(28px, 5vw, 52px); }

.qw-card {
	background: var(--qw-card);
	border: 1px solid var(--qw-line);
	border-radius: var(--qw-radius);
	box-shadow: 0 10px 40px rgba(31, 58, 95, 0.08);
	padding: clamp(22px, 4vw, 44px);
}

.qw-eyebrow {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--qw-gold);
	margin: 0 0 10px;
}
.qw-widget h2 {
	font-family: var(--qw-serif);
	color: var(--qw-blue);
	font-size: clamp(22px, 3.4vw, 32px);
	line-height: 1.2;
	margin: 0 0 12px;
}
.qw-lead { color: #50504a; font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.qw-note { color: var(--qw-muted); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }

/* Panels (steps) */
.qw-panel { display: none; animation: qw-fade .5s ease; }
.qw-panel.is-active { display: block; }
@keyframes qw-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qw-panel { animation: none; } }

/* Buttons */
.qw-btn {
	display: inline-flex; align-items: center; justify-content: center;
	font: 600 16px/1 var(--qw-sans);
	border: none; border-radius: 10px; cursor: pointer;
	padding: 14px 26px; transition: transform .12s ease, background .2s ease, opacity .2s ease;
}
.qw-btn:active { transform: translateY(1px); }
.qw-btn-primary { background: var(--qw-blue); color: #fff; }
.qw-btn-primary:hover { background: #18304e; }
.qw-btn-gold { background: var(--qw-gold); color: #fff; }
.qw-btn-gold:hover { background: #b87a2d; }
.qw-btn-ghost { background: transparent; color: var(--qw-blue); border: 1px solid var(--qw-line); }
.qw-btn:disabled { opacity: .45; cursor: not-allowed; }
.qw-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.qw-actions-center { justify-content: center; margin-top: 30px; }

/* Larger, more prominent primary call-to-action (intro "Test starten"). */
.qw-btn-lg {
	font-size: 19px;
	padding: 18px 48px;
	border-radius: 14px;
	letter-spacing: .3px;
	box-shadow: 0 8px 22px rgba(31, 58, 95, 0.22);
}
.qw-btn-lg:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(31, 58, 95, 0.28); }

/* Sliders */
.qw-sliders { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 720px) { .qw-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; } }
.qw-slider { padding: 14px 0; border-bottom: 1px dashed var(--qw-line); }
.qw-slider:last-child { border-bottom: none; }
.qw-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qw-slider-label { font-weight: 600; color: var(--qw-blue); font-size: 16px; }
.qw-slider-desc { color: var(--qw-muted); font-size: 13px; margin: 2px 0 10px; }
.qw-slider-val {
	font-family: var(--qw-serif); font-size: 22px; color: var(--qw-gold); min-width: 2ch; text-align: right;
}
.qw-slider.is-untouched .qw-slider-val { color: var(--qw-muted); opacity: .6; }

.qw-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
	background: var(--qw-line); outline: none; }
.qw-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px;
	border-radius: 50%; background: var(--qw-gold); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2);
	cursor: pointer; transition: transform .1s ease; }
.qw-range::-webkit-slider-thumb:active { transform: scale(1.12); }
.qw-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--qw-gold);
	border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.qw-slider.is-untouched .qw-range::-webkit-slider-thumb { background: var(--qw-muted); }
.qw-slider.is-untouched .qw-range::-moz-range-thumb { background: var(--qw-muted); }

/* Radar */
.qw-radar-wrap { position: relative; margin-top: 10px; }
.qw-radar-wrap canvas { max-width: 100%; }
.qw-radar-sticky { position: sticky; top: 16px; }

/* Email gate */
.qw-field { margin-top: 16px; }
.qw-field label { display: block; font-weight: 600; color: var(--qw-blue); margin-bottom: 6px; font-size: 14px; }
.qw-input { width: 100%; padding: 13px 14px; font-size: 16px; border: 1px solid var(--qw-line);
	border-radius: 10px; background: #fff; color: var(--qw-ink); }
.qw-input:focus { outline: 2px solid rgba(201,138,58,.4); border-color: var(--qw-gold); }
.qw-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: #50504a; line-height: 1.5; }
.qw-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--qw-gold); }
.qw-consent a { color: var(--qw-blue); }
.qw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qw-error { color: #a3331f; font-size: 14px; margin-top: 12px; min-height: 1em; }

/* Loading */
.qw-loading { text-align: center; padding: 40px 0; }
.qw-breath { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
	background: radial-gradient(circle, var(--qw-gold) 0%, rgba(201,138,58,.25) 70%);
	animation: qw-breathe 3.2s ease-in-out infinite; }
@keyframes qw-breathe { 0%,100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qw-breath { animation: none; } }

/* Result */
.qw-score-big { text-align: center; margin: 6px 0 18px; }
.qw-score-num { font-family: var(--qw-serif); font-size: clamp(48px, 9vw, 72px); line-height: 1; color: var(--qw-blue); font-weight: 700; }
.qw-score-num small { font-size: .35em; color: var(--qw-muted); font-weight: 400; }
.qw-score-band { margin-top: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--qw-gold); font-size: 15px; }
.qw-summary { font-family: var(--qw-serif); font-size: 17px; line-height: 1.75; color: #33312c; margin-top: 18px; }
.qw-summary p { margin: 0 0 14px; }
.qw-result-grid { margin-top: 8px; }
@media (min-width: 760px) { .qw-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; } }
