/* Background image */
.bg-image {
	background-image: url("../assets/img/BG_Var_1.png");
	height: 80vh; /* Set height to full viewport height */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
}

/* Headline section */
.headline {
	position: absolute;
	top: 75%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	background-color: var(--background-color); /* rgba(193, 195, 198, 0.7) */
	color: var(--primary-color); /* #000000 */
	opacity: 0.7;
	padding-left: 2vw; /* Use viewport width for scaling */
	padding-right: 2vw;
	text-align: center;
	font-size: 2vh; /* Scale the font size based on viewport width */
}

/* Content container */
.home-content {
	min-height: 80vh; /* Set minimum height to full viewport height */
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 10vh;
}

/* Flexbox container for image and text */
.home-effi-container {
	background-color: var(--background-color); /* rgba(193, 195, 198, 0.7) */
	display: flex;
	align-items: center;
	padding: 5vw;
	padding-left: 10vw;
	padding-right: 10vw;
	flex-wrap: wrap; /* Ensure content wraps for smaller screens */
	border-radius: 10px;
}

/* Image styles */
.home-effi-img {
	max-height: 40vh; /* Use viewport height to scale the image */
	margin-right: 5vw;
	width: auto; /* Ensure aspect ratio is maintained */
}

/* Text container */
.home-effi-text {
	display: flex;
	align-items: center;
	font-size: 1.2vw; /* Use viewport width to scale the text */
	line-height: 1.6;
	text-align: justify;
	max-width: 50vw; /* Limit the text width */
	color: var(--primary-color); /* #000000 */
}

/* Responsive styles */
@media (max-width: 1024px) {
	/* For tablet-sized devices */
	.home-effi-container {
		flex-direction: column; /* Stack the image and text vertically */
		padding: 5vw;
	}

	.home-effi-img {
		max-height: none;
		margin-right: 0;
		margin-bottom: 3vh;
		width: 80vw; /* Scale the width of the image */
		height: auto;
	}

	.home-effi-text {
		font-size: 3vw; /* Adjust font size */
		max-width: 90vw;
		text-align: left;
	}
}

@media (max-width: 768px) {
	/* For mobile devices */
	.bg-image {
		height: 60vh; /* Reduce height of background image */
	}

	.headline {
		top: 50%; /* Adjust headline position */
		font-size: 3vw; /* Reduce font size */
		padding: 3vw;
		text-align: center;
	}

	.home-content {
		padding: 0 5vw;
	}

	.home-effi-container {
		flex-direction: column;
		padding: 4vw;
	}

	.home-effi-img {
		max-width: 100%;
		max-height: none;
		margin-bottom: 2vh;
	}

	.home-effi-text {
		font-size: 4vw; /* Smaller text on mobile */
		max-width: 100%;
		text-align: left;
	}
}

@media (max-width: 480px) {
	/* For very small mobile devices */
	.headline {
		font-size: 3vw;
		padding: 4vw;
	}

	.home-effi-container {
		padding: 3vw;
	}

	.home-effi-img {
		max-height: none;
		width: 100%;
	}

	.home-effi-text {
		font-size: 4vw;
		text-align: left;
	}
}
