/*
* FinOptik GmbH - Styles
* Created for a JavaScript-free, responsive website
*/

/* Variables */
:root {
	--primary-color: #003e6b;
	--secondary-color: #00c7b1;
	--background-color: #f4f8fa;
	--heading-color: #1a1a1a;
	--text-color: #333333;
	--light-gray: #f0f0f0;
	--medium-gray: #cccccc;
	--dark-gray: #666666;
	--white: #ffffff;
	--black: #000000;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;

	--container-width: 1200px;
	--section-padding: 80px 0;
	--mobile-padding: 40px 0;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Arial", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	overflow-x: hidden;
	padding-top: 80px; /* Height of the header */
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--secondary-color);
}

ul {
	list-style: none;
}

.container {
	max-width: var(--container-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--heading-color);
	margin-bottom: 20px;
	line-height: 1.3;
}

h1 {
	font-size: 42px;
}

h2 {
	font-size: 36px;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
}

h2::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background-color: var(--secondary-color);
	margin: 15px auto 0;
}

h3 {
	font-size: 24px;
}

h4 {
	font-size: 20px;
}

p {
	margin-bottom: 15px;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	border: none;
	background-color: var(--primary-color);
	color: var(--white);
}

.btn:hover {
	background-color: var(--secondary-color);
	color: var(--white);
}

.btn-primary {
	background-color: var(--primary-color);
	color: var(--white);
}

.btn-secondary {
	background-color: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-secondary:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

.btn-outline {
	background-color: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	padding: 10px 20px;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

/* Header */
.main-header {
	background-color: var(--white);
	box-shadow: var(--shadow);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	width: 100%;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo img {
	height: 50px;
	width: auto;
}

.menu-toggle {
	display: none;
}

.menu-button {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 21px;
	cursor: pointer;
	z-index: 2;
}

.bar {
	height: 3px;
	width: 100%;
	background-color: var(--primary-color);
	border-radius: 3px;
}

.main-nav ul {
	display: flex;
	list-style: none;
	gap: 30px;
	align-items: center;
}

.main-nav a {
	color: var(--primary-color);
	font-weight: 500;
}

/* Hero Section */
.hero {
	background: linear-gradient(to right, rgba(0, 62, 107, 0.9), rgba(0, 62, 107, 0.7)), url("../img/UtvPo4.jpg");
	background-size: cover;
	background-position: center;
	color: var(--white);
	padding: 120px 0;
	text-align: center;
}

.hero h1 {
	color: var(--white);
	margin-bottom: 20px;
	font-size: 48px;
}

.hero p {
	font-size: 20px;
	max-width: 800px;
	margin: 0 auto 30px;
}

/* About Section */
.about {
	padding: var(--section-padding);
	background-color: var(--white);
}

.about-content {
	display: flex;
	align-items: center;
	gap: 50px;
}

.about-text {
	flex: 1;
}

.about-image {
	flex: 1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

/* Services Section */
.services {
	padding: var(--section-padding);
	background-color: var(--background-color);
}

.service-cards {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap;
}

.service-card {
	background-color: var(--white);
	border-radius: 12px;
	padding: 25px;
	box-shadow: var(--shadow);
	text-align: center;
	flex: 1;
	min-width: 250px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.service-card:hover {
	transform: translateY(-5px);
}

.service-card:hover .service-icon {
	box-shadow: var(--shadow);
	background-color: rgba(255, 255, 255, 0.8);
}

.service-card:hover .service-icon img {
	transform: scale(1.05);
}

.service-icon {
	margin-bottom: 20px;
	border-radius: 10px;
	padding: 15px;
	background-color: var(--background-color);
	box-shadow: var(--shadow);
	display: flex;
	justify-content: center;
	align-items: center;
	height: 150px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.service-icon img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.service-card:hover .service-icon {
	transform: translateY(-5px);
}

.service-card:hover .service-icon img {
	transform: scale(1.05);
}

.service-full-image {
	margin: 20px 0;
	width: 100%;
}

.service-full-image img {
	width: 100%;
	border-radius: 8px;
	box-shadow: var(--shadow);
	object-fit: cover;
	height: 180px;
}

.service-card .price {
	font-weight: bold;
	color: var(--primary-color);
	font-size: 20px;
	margin: 20px 0;
}

/* Benefits Section */
.benefits {
	padding: var(--section-padding);
	background-color: var(--white);
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.benefit {
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
}

.benefit-icon {
	margin-bottom: 20px;
}

.benefit-icon img {
	width: 80px;
	height: 80px;
	margin: 0 auto;
	object-fit: cover;
	border-radius: 50%;
}

.benefit-full-image {
	margin-top: 15px;
	width: 100%;
}

.benefit-full-image img {
	width: 100%;
	border-radius: 8px;
	box-shadow: var(--shadow);
	object-fit: cover;
	height: 150px;
}

/* Workflow Section */
.workflow {
	padding: var(--section-padding);
	background-color: var(--background-color);
}

.steps {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.step {
	flex: 1;
	min-width: 220px;
	text-align: center;
	padding: 20px;
	position: relative;
}

.step-number {
	width: 50px;
	height: 50px;
	background-color: var(--primary-color);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: bold;
	margin: 0 auto 20px;
}

/* Testimonials Section */
.testimonials {
	padding: var(--section-padding);
	background-color: var(--white);
}

.testimonial-slider {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
}

.testimonial {
	background-color: var(--background-color);
	border-radius: 8px;
	padding: 30px;
	box-shadow: var(--shadow);
	flex: 1;
	min-width: 300px;
	max-width: 400px;
}

.testimonial-content {
	margin-bottom: 20px;
	font-style: italic;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.testimonial-author img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.testimonial-image {
	text-align: center;
	margin-top: 40px;
	width: 100%;
}

.testimonial-image img {
	max-width: 80%;
	border-radius: 8px;
	box-shadow: var(--shadow);
	object-fit: cover;
	max-height: 400px;
}

/* Contact Section */
.contact {
	padding: var(--section-padding);
	background-color: var(--background-color);
}

.contact-container {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.contact-info {
	flex: 1;
	min-width: 300px;
}

.contact-form {
	flex: 2;
	min-width: 300px;
}

.form-group {
	margin-bottom: 20px;
	width: 100%;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

input,
textarea,
select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	background-color: var(--white);
	box-sizing: border-box;
}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.checkbox-group input[type="checkbox"] {
	width: auto;
	margin-top: 5px;
}

.service-selection {
	margin-bottom: 30px;
}

.consent {
	margin-bottom: 15px;
}

/* Footer */
.main-footer {
	background-color: var(--primary-color);
	color: var(--white);
	padding: 60px 0 20px;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-info {
	flex: 2;
	min-width: 250px;
}

.footer-logo {
	margin-bottom: 20px;
}

.footer-logo img {
	height: 40px;
}

.footer-links,
.footer-contact,
.footer-legal {
	flex: 1;
	min-width: 180px;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
	color: var(--white);
	opacity: 0.8;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
	opacity: 1;
	color: var(--secondary-color);
}

.footer-links ul,
.footer-legal ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--white);
	box-shadow: var(--shadow);
	border-radius: 8px;
	padding: 20px;
	z-index: 1001;
	max-width: 400px;
}

.cookie-content {
	text-align: center;
}

.cookie-content h3 {
	margin-bottom: 10px;
}

.cookie-content p {
	margin-bottom: 20px;
}

.cookie-content form {
	display: flex;
	justify-content: center;
	gap: 10px;
}

/* Smooth scrolling and anchor offset */
html {
	scroll-behavior: smooth;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

/* Add invisible anchor target elements before section headings */
section[id] {
	scroll-margin-top: 90px; /* Slightly more than header height */
}

/* Responsive Styles */
@media (max-width: 991px) {
	:root {
		--section-padding: var(--mobile-padding);
	}

	h1 {
		font-size: 36px;
	}

	h2 {
		font-size: 30px;
	}

	.about-content {
		flex-direction: column;
	}

	.hero {
		padding: 80px 0;
	}

	.service-cards {
		gap: 20px;
	}

	.benefits-grid {
		gap: 20px;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media (max-width: 768px) {
	body {
		padding-top: 70px;
	}

	.header-content {
		padding: 10px 0;
	}

	.menu-button {
		display: flex;
	}

	.menu-toggle {
		display: none;
	}

	.menu-toggle:checked ~ .main-nav {
		height: auto;
		padding: 20px 0;
		opacity: 1;
		visibility: visible;
	}

	.main-nav {
		position: absolute;
		top: 70px; /* Adjusted to match header height */
		left: 0;
		right: 0;
		background-color: var(--white);
		height: 0;
		overflow: hidden;
		transition: var(--transition);
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
		z-index: 1000;
		opacity: 0;
		visibility: hidden;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 15px;
		padding: 0 20px;
		width: 100%;
		box-sizing: border-box;
	}

	.main-nav li {
		width: 100%;
		text-align: center;
	}

	.main-nav a {
		display: block;
		padding: 10px 0;
		width: 100%;
	}

	.main-nav a.btn-outline {
		margin: 0 auto;
		width: 80%;
	}

	.steps {
		flex-direction: column;
	}

	.step::after {
		display: none;
	}

	.contact-container {
		flex-direction: column;
		gap: 30px;
	}

	.contact-info,
	.contact-form {
		width: 100%;
		min-width: 100%;
	}

	.benefit-full-image img {
		height: 120px;
	}

	.service-full-image img {
		height: 150px;
	}

	.testimonial-slider {
		flex-direction: column;
		align-items: center;
	}

	.testimonial {
		max-width: 100%;
		width: 100%;
	}

	.service-card {
		min-width: 220px;
	}

	section[id] {
		scroll-margin-top: 80px;
	}
}

@media (max-width: 576px) {
	body {
		font-size: 14px;
	}

	.header-content {
		padding: 8px 0;
	}

	.main-nav {
		top: 60px;
	}

	section[id] {
		scroll-margin-top: 70px;
	}

	h1 {
		font-size: 28px;
	}

	h2 {
		font-size: 24px;
	}

	.hero p {
		font-size: 16px;
	}

	.cookie-popup {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.cookie-content form {
		flex-direction: column;
	}

	.service-card {
		min-width: 220px;
	}

	.footer-content {
		flex-direction: column;
		gap: 30px;
	}

	.footer-links,
	.footer-info {
		width: 100%;
		text-align: center;
	}

	.footer-links ul,
	.footer-links .footer-social {
		justify-content: center;
	}

	.testimonial-image img {
		max-width: 100%;
	}

	.benefit-full-image img {
		height: 120px;
	}

	.service-full-image img {
		height: 150px;
	}

	.checkbox-group {
		padding-left: 25px;
	}

	.checkbox-group label {
		font-size: 13px;
	}

	textarea {
		height: 100px;
	}

	address p {
		font-size: 14px;
	}

	.testimonial-author {
		flex-direction: column;
	}

	.testimonial-content p {
		font-size: 14px;
	}

	.about-image img {
		height: 200px;
	}

	table {
		font-size: 13px;
	}

	.benefits-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 375px) {
	.container {
		padding: 0 15px;
	}

	h1 {
		font-size: 24px;
	}

	h2 {
		font-size: 22px;
	}

	h3 {
		font-size: 20px;
	}

	.btn {
		padding: 10px 16px;
		font-size: 14px;
	}

	.hero {
		padding: 60px 0;
	}

	.logo img {
		height: 40px;
	}

	.benefit-icon img,
	.service-icon img {
		width: 60px;
		height: 60px;
	}

	.step-number {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.testimonial-author img {
		width: 40px;
		height: 40px;
	}

	.checkbox-group label {
		font-size: 13px;
	}

	.logo {
		max-width: 180px;
	}

	.btn {
		width: 100%;
		text-align: center;
		margin-bottom: 10px;
	}

	.hero .btn {
		width: auto;
	}

	.cookie-content form .btn {
		width: 100%;
	}
}

/* Policy Pages Styling */
.policy {
	padding: 80px 0;
	background-color: var(--white);
}

.policy h1 {
	margin-bottom: 40px;
	text-align: center;
}

.policy-content {
	max-width: 900px;
	margin: 0 auto;
}

.policy h2 {
	text-align: left;
	margin-top: 40px;
}

.policy h2::after {
	margin: 15px 0 0;
}

.policy h3 {
	margin-top: 30px;
	color: var(--primary-color);
}

.policy p {
	margin-bottom: 15px;
}

.policy ul {
	margin-bottom: 15px;
	padding-left: 20px;
}

.policy li {
	margin-bottom: 8px;
}
