/* EuP-EMS-Elektroden-Diagnose – Public Stylesheet v1.4.0 */
/* Layout: Sidebar + vertikaler Stepper + Schritt-Detail + Ergebnis-Zweispalter */

/* ── Wrapper ──────────────────────────────────── */
.eed-wrap {
	max-width: 720px;
	margin: 1.5rem auto 3rem;
	padding: 0 1rem;
	outline: none;
}
@media (min-width: 600px) {
	.eed-wrap {
		margin-top: 2rem;
		padding: 0 1.25rem;
	}
}

/* ── Page title ───────────────────────────────── */
.eed-page-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1rem;
}
@media (min-width: 600px) {
	.eed-page-title {
		font-size: 1.4rem;
		margin-bottom: 1.25rem;
	}
}

/* ── Card ─────────────────────────────────────── */
.eed-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 1.25rem;
}

/* ── Card header ──────────────────────────────── */
.eed-card__hd {
	background: #222;
	padding: .8rem 1.1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}
@media (min-width: 600px) {
	.eed-card__hd {
		padding: .9rem 1.5rem;
	}
}
.eed-card__hd-title {
	font-size: .92rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}
@media (min-width: 600px) {
	.eed-card__hd-title {
		font-size: 1.05rem;
	}
}
.eed-card__hd-step {
	font-size: .7rem;
	color: #999;
	white-space: nowrap;
	flex-shrink: 0;
}
.eed-card__hd--result {
	background: #1a6b3c;
}

/* ── Card body ────────────────────────────────── */
.eed-card__bd {
	padding: 1.1rem;
}
@media (min-width: 600px) {
	.eed-card__bd {
		padding: 1.5rem;
	}
}

/* ── Card body: flex layout for step view ─────── */
.eed-card__bd--step {
	display: flex;
	flex-direction: column;
	padding: 0;
}
@media (min-width: 600px) {
	.eed-card__bd--step {
		flex-direction: row;
	}
}

/* ── Sidebar (Principle box) ──────────────────── */
.eed-sidebar {
	background: #f5f9ff;
	border-bottom: 1px solid #d0e3f7;
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
@media (min-width: 600px) {
	.eed-sidebar {
		width: 180px;
		flex-shrink: 0;
		flex-direction: column;
		border-bottom: none;
		border-right: 1px solid #d0e3f7;
		padding: 18px 16px;
		gap: 6px;
	}
}
.eed-sidebar__icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.eed-sidebar__icon svg {
	width: 16px;
	height: 16px;
}
.eed-sidebar__title {
	font-size: .6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #2271b1;
	margin-top: 2px;
	display: none;
}
@media (min-width: 600px) {
	.eed-sidebar__title {
		display: block;
		margin-top: 6px;
	}
}
.eed-sidebar__text {
	font-size: .72rem;
	color: #1d4e7f;
	line-height: 1.5;
}
@media (min-width: 600px) {
	.eed-sidebar__text {
		font-size: .75rem;
	}
}

/* ── Main content area ────────────────────────── */
.eed-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px;
}
@media (min-width: 600px) {
	.eed-main {
		flex-direction: row;
		padding: 20px;
		gap: 0;
	}
}

/* ── Vertical stepper ─────────────────────────── */
.eed-vstepper {
	margin-bottom: 16px;
}
@media (min-width: 600px) {
	.eed-vstepper {
		width: 170px;
		flex-shrink: 0;
		margin-bottom: 0;
		padding-right: 18px;
		border-right: 1px solid #efefef;
	}
}
.eed-vstepper__lbl {
	font-size: .6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: #aaa;
	margin-bottom: 12px;
}

/* ── Vertical stepper: step row ───────────────── */
.eed-vstep {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	position: relative;
	padding-bottom: 16px;
}
.eed-vstep:last-child {
	padding-bottom: 0;
}
.eed-vstep:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 26px;
	left: 11px;
	bottom: 0;
	width: 2px;
	background: #e5e5e5;
}
.eed-vstep.done:not(:last-child)::after {
	background: #222;
}

/* ── Vertical stepper: dot ────────────────────── */
.eed-vstep__dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #f0f0f0;
	border: 2px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	font-size: .65rem;
	font-weight: 600;
	color: #bbb;
}
.eed-vstep__dot svg {
	width: 11px;
	height: 11px;
}
.eed-vstep.done .eed-vstep__dot {
	background: #222;
	border-color: #222;
	color: #fff;
}
.eed-vstep.done .eed-vstep__dot svg {
	color: #fff;
}
.eed-vstep.active .eed-vstep__dot {
	background: #fff;
	border-color: #222;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
	color: #222;
	font-weight: 700;
}

/* ── Vertical stepper: label ──────────────────── */
.eed-vstep__info {
	padding-top: 2px;
	min-width: 0;
}
.eed-vstep__label {
	font-size: .72rem;
	color: #ccc;
	line-height: 1.3;
}
.eed-vstep.done .eed-vstep__label {
	color: #888;
}
.eed-vstep.active .eed-vstep__label {
	color: #1a1a1a;
	font-weight: 700;
}
.eed-vstep__status {
	font-size: .6rem;
	margin-top: 1px;
}
.eed-vstep__status--done {
	color: #15803d;
}
.eed-vstep__status--question {
	color: #888;
}

/* ── Step detail (right side on desktop) ──────── */
.eed-detail {
	flex: 1;
}
@media (min-width: 600px) {
	.eed-detail {
		padding-left: 20px;
	}
}

.eed-detail__badge {
	display: inline-block;
	padding: 4px 12px;
	background: #222;
	color: #fff;
	border-radius: 4px;
	font-size: .7rem;
	font-weight: 700;
	margin-bottom: 14px;
}
.eed-step__instruction {
	font-size: .92rem;
	color: #333;
	line-height: 1.6;
	margin-bottom: .75rem;
}
@media (min-width: 600px) {
	.eed-step__instruction {
		font-size: 1rem;
	}
}
.eed-step__question {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1rem;
}
@media (min-width: 600px) {
	.eed-step__question {
		font-size: 1.15rem;
	}
}

/* ── Action buttons (green/red) ───────────────── */
.eed-step__actions {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	margin-bottom: .75rem;
}
@media (min-width: 600px) {
	.eed-step__actions {
		flex-direction: row;
		gap: .75rem;
	}
}
.eed-step__btn {
	flex: 1;
	padding: .7rem 1rem;
	border: none;
	border-radius: 6px;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	color: #fff;
}
.eed-step__btn svg {
	width: 16px;
	height: 16px;
}
.eed-step__btn--yes {
	background: #15803d;
}
.eed-step__btn--yes:hover,
.eed-step__btn--yes:focus-visible {
	filter: brightness(1.12);
	outline: none;
}
.eed-step__btn--no {
	background: #dc2626;
}
.eed-step__btn--no:hover,
.eed-step__btn--no:focus-visible {
	filter: brightness(1.12);
	outline: none;
}

/* ── Back button ──────────────────────────────── */
.eed-step__back {
	display: inline-block;
	padding: 0;
	background: none;
	border: none;
	font-size: .78rem;
	color: #888;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.eed-step__back:hover,
.eed-step__back:focus-visible {
	color: #333;
	outline: none;
}

/* ── Notice (used in selection view) ──────────── */
.eed-notice {
	background: #f5f9ff;
	border: 1px solid #d0e3f7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: .75rem .9rem;
	font-size: .78rem;
	color: #1d4e7f;
	line-height: 1.5;
	margin-bottom: 1.25rem;
}

/* ── Path selection ───────────────────────────── */
.eed-select {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}
@media (min-width: 600px) {
	.eed-select {
		flex-direction: row;
		gap: 1rem;
	}
}
.eed-select__btn {
	flex: 1;
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: 1rem;
	background: #fafafa;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.eed-select__btn:hover,
.eed-select__btn:focus-visible {
	border-color: #222;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	outline: none;
}
.eed-select__icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #222;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.eed-select__icon svg {
	width: 20px;
	height: 20px;
}
.eed-select__text {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	min-width: 0;
}
.eed-select__text strong {
	font-size: .88rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}
.eed-select__text span {
	font-size: .75rem;
	color: #888;
	line-height: 1.4;
}

/* ── Divider ──────────────────────────────────── */
.eed-hr {
	border: none;
	border-top: 1px solid #efefef;
	margin: 1rem 0;
}

/* ── Result ───────────────────────────────────── */
.eed-result {
	text-align: center;
	padding: 1rem 0;
}
.eed-result__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fef2f2;
	color: #dc2626;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}
.eed-result__icon svg {
	width: 26px;
	height: 26px;
}
.eed-result__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: .5rem;
}
@media (min-width: 600px) {
	.eed-result__title {
		font-size: 1.2rem;
	}
}
.eed-result__desc {
	font-size: .85rem;
	color: #666;
	line-height: 1.6;
	max-width: 440px;
	margin: 0 auto 1.25rem;
}
.eed-result__cta {
	display: inline-block;
	padding: .65rem 1.5rem;
	background: #222;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 700;
	font-size: .88rem;
	transition: background .15s;
	min-height: 44px;
	line-height: 1.5;
}
.eed-result__cta:hover,
.eed-result__cta:focus-visible {
	background: #444;
	color: #fff;
	outline: none;
}
.eed-result__cta-text {
	font-size: .88rem;
	color: #333;
	font-weight: 500;
	margin-top: .5rem;
}
.eed-result__restart-wrap {
	text-align: center;
}
.eed-result__restart {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1rem;
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #666;
	font-size: .8rem;
	cursor: pointer;
	transition: border-color .15s, color .15s;
	min-height: 44px;
}
.eed-result__restart svg {
	width: 16px;
	height: 16px;
}
.eed-result__restart:hover,
.eed-result__restart:focus-visible {
	border-color: #222;
	color: #222;
	outline: none;
}

/* ── v1.2.0: Result two-column layout ─────── */
.eed-result-row {
	display: flex;
	gap: 1.25rem;
}
@media (max-width: 599px) {
	.eed-result-row { flex-direction: column; }
}
.eed-result-left { flex: 1; min-width: 0; }
.eed-result-right {
	flex: 1; min-width: 0;
	border-left: 1px solid #efefef;
	padding-left: 1.25rem;
}
@media (max-width: 599px) {
	.eed-result-right {
		border-left: none;
		border-top: 1px solid #efefef;
		padding-left: 0;
		padding-top: 1.25rem;
	}
}
.eed-result__icon--freetext { background: #eff6ff; color: #3b82f6; }
.eed-result__icon--freetext svg { color: #3b82f6; }

/* ── Diagnosis report ─────────────────────── */
.eed-report {
	background: #f9f9f9;
	border-radius: 6px;
	padding: .75rem 1rem;
	margin: 1rem 0 .75rem;
}
.eed-report__title {
	font-size: .7rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em;
	color: #aaa; margin-bottom: .5rem;
}
.eed-report__row {
	display: flex; justify-content: space-between;
	font-size: .82rem; padding: 3px 0;
}
.eed-report__label { color: #888; }
.eed-report__value { color: #1a1a1a; font-weight: 500; }
.eed-report__value--pass { color: #16a34a; }
.eed-report__value--fail { color: #dc2626; }
.eed-report__value--result { color: #dc2626; font-weight: 700; }
.eed-report__row--result {
	border-top: 1px solid #e5e5e5;
	padding-top: 6px; margin-top: 4px;
}

/* ── Freetext input ───────────────────────── */
.eed-freetext__input {
	width: 100%; min-height: 100px;
	padding: .6rem .75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: .85rem;
	font-family: inherit;
	resize: vertical;
	line-height: 1.6;
}
.eed-freetext__input:focus {
	border-color: #222;
	outline: none;
}
.eed-freetext__hint {
	font-size: .72rem;
	color: #aaa;
	margin-top: 4px;
}

/* ── Contact form ─────────────────────────── */
.eed-form__title {
	font-size: .95rem; font-weight: 700;
	color: #1a1a1a; margin-bottom: .5rem;
}
.eed-form__sub {
	font-size: .78rem; color: #888;
	margin-bottom: 1rem; line-height: 1.5;
}
.eed-form__field { margin-bottom: .75rem; }
.eed-form__label {
	display: block;
	font-size: .75rem; color: #888;
	margin-bottom: 4px;
}
.eed-form__input {
	width: 100%; padding: .5rem .6rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: .85rem;
	font-family: inherit;
}
.eed-form__input:focus { border-color: #222; outline: none; }
.eed-form__check {
	display: flex; align-items: flex-start;
	gap: 8px; margin-bottom: .6rem; cursor: pointer;
}
.eed-form__check input { margin-top: 2px; accent-color: #222; }
.eed-form__check span {
	font-size: .85rem; color: #1a1a1a; line-height: 1.4;
}
.eed-form__check small {
	display: block;
	font-size: .72rem; color: #aaa; margin-top: 1px;
}
.eed-form__submit {
	width: 100%; padding: .6rem;
	background: #222; color: #fff;
	border: none; border-radius: 4px;
	font-size: .88rem; font-weight: 700;
	cursor: pointer; margin-top: .75rem;
	min-height: 44px;
	transition: background .15s;
}
.eed-form__submit:hover { background: #444; }
.eed-form__submit:disabled { background: #999; cursor: default; }
.eed-form__msg {
	font-size: .82rem; margin-top: .5rem;
	min-height: 1.5em;
}
.eed-form__msg--success { color: #16a34a; font-weight: 500; }
.eed-form__msg--error { color: #dc2626; }
.eed-form__address {
	font-size: .88rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 1rem;
	line-height: 1.5;
	border-top: 1px solid #ddd;
	padding-top: .75rem;
	background: #f9f9f9;
	padding: .75rem 1rem;
	border-radius: 4px;
}
