/* AuditBrücke - Main Stylesheet */

:root {
	/* Color Palette */
	--primary: #16213e; /* Deep blue */
	--secondary: #0f3460; /* Electric blue */
	--accent: #e94560; /* Coral */
	--bg-light: #f1f6f9; /* Milk white-grey */
	--bg-alt: #dde6ed; /* Grey-blue */
	--text-dark: #1b1b2f; /* Coal */
	--text-muted: #778da9; /* Soft grey */

	/* Font families */
	--font-main: "Roboto", sans-serif;
	--font-heading: "Montserrat", sans-serif;
}

/* Global Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	max-width: 100%;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px; /* Ensures anchors don't hide under the fixed header */
	overflow-x: hidden;
	width: 100%;
}

body {
	font-family: var(--font-main);
	color: var(--text-dark);
	background-color: var(--bg-light);
	line-height: 1.6;
	overflow-x: hidden;
	width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	margin-bottom: 1rem;
	color: var(--primary);
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
	margin-bottom: 2rem;
	position: relative;
	text-align: center;
}

h2:after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -10px;
	width: 100px;
	height: 3px;
	background-color: var(--accent);
}

h3 {
	font-size: 1.5rem;
	margin-top: 1.5rem;
}

p {
	margin-bottom: 1rem;
}

a {
	color: var(--secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--accent);
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 0;
}

/* Section Styles */
.section {
	padding: 4rem 0;
	padding-top: 6rem; /* Additional padding at the top to avoid header overlap */
	position: relative;
}

.section:nth-child(odd) {
	background-color: var(--bg-light);
}

.section:nth-child(even) {
	background-color: var(--bg-alt);
}

/* Section Headings */
.section h2 {
	margin-top: 0; /* Ensure no extra margin at the top of section headings */
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.8rem 1.8rem;
	border-radius: 50px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.btn-primary {
	background-color: var(--accent);
	color: white;
}

.btn-primary:hover {
	background-color: var(--primary);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
	background-color: transparent;
	color: var(--accent);
	border: 2px solid var(--accent);
}

.btn-secondary:hover {
	background-color: var(--accent);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
	background-color: var(--primary);
	color: white;
	padding: 1rem 0;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.logo {
	height: 40px;
	max-width: 200px;
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 2rem;
}

.nav-links a {
	color: white;
	font-weight: 500;
	position: relative;
}

.nav-links a:after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -5px;
	left: 0;
	background-color: var(--accent);
	transition: width 0.3s ease;
}

.nav-links a:hover:after {
	width: 100%;
}

.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.hamburger span {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px 0;
	background-color: white;
	transition: all 0.3s ease;
}

/* Hero Section */
.hero {
	background: linear-gradient(to right, var(--primary), var(--secondary));
	color: white;
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 73px; /* Header height instead of margin */
	margin-top: 0;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.hero:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: url("./img/TimmKW.jpg") no-repeat center center/cover;
	opacity: 0.1;
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	padding: 0 20px;
	margin: 0 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: white;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* About Section */
.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.about-card {
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.about-card:hover {
	transform: translateY(-10px);
}

.about-card h3 {
	color: var(--secondary);
	margin-bottom: 1rem;
}

/* Benefits Section */
.benefits-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.benefit-card {
	padding: 1.5rem;
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: all 0.3s ease;
}

.benefit-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	color: var(--accent);
}

/* Services Section */
.services-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.service-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	width: 100%;
}

.service-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.service-content h3 {
	margin-top: 0;
}

.service-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent);
	margin: 1rem 0;
}

.service-content .btn {
	align-self: flex-start;
	margin-top: auto;
}

/* How It Works Section */
.process-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.process-step {
	position: relative;
	padding: 2rem;
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.step-number {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	background-color: var(--accent);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.2rem;
}

/* Form Section */
.form-section {
	padding: 4rem 0;
	background-color: var(--bg-alt);
}

.form-container {
	max-width: 600px;
	margin: 0 auto;
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	width: 100%;
}

.form-row {
	margin-bottom: 1.5rem;
	width: 100%;
}

.form-group {
	margin-bottom: 1rem;
	width: 100%;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

input,
select,
textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: var(--font-main);
	transition: border 0.3s ease;
	box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--secondary);
}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.checkbox-group input {
	width: auto;
	margin-right: 10px;
	margin-top: 5px;
}

.form-note {
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-container {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.testimonial {
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.testimonial:before {
	content: '"';
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 5rem;
	color: var(--bg-alt);
	line-height: 1;
	z-index: 0;
	opacity: 0.3;
}

.testimonial-content {
	position: relative;
	z-index: 1;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.testimonial-author {
	font-weight: 700;
	color: var(--secondary);
	margin-top: 1rem;
	text-align: right;
	align-self: flex-end;
}

/* FAQ Section */
.faq-container {
	max-width: 800px;
	margin: 2rem auto 0;
}

.faq-item {
	margin-bottom: 1.5rem;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
	background-color: #f5f5f5;
	padding: 1.5rem;
	position: relative;
	font-weight: 600;
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	color: var(--primary);
	text-decoration: none;
	border-bottom: 1px solid #e0e0e0;
}

.faq-answer {
	padding: 1.5rem;
	background-color: white;
}

/* Footer */
footer {
	background-color: var(--primary);
	color: white;
	padding: 3rem 0 1rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-company-info h3 {
	color: white;
	margin-top: 0;
}

.footer-nav h3 {
	color: white;
	margin-top: 0;
}

.footer-nav ul {
	list-style: none;
}

.footer-nav li {
	margin-bottom: 0.5rem;
}

.footer-nav a {
	color: #ddd;
}

.footer-contact h3 {
	color: white;
	margin-top: 0;
}

.footer-contact {
	color: white;
}

.contact-info {
	margin-bottom: 0.5rem;
	color: white;
}

.contact-info i {
	margin-right: 10px;
	color: var(--accent);
}

.footer-contact a {
	color: white;
	text-decoration: none;
}

.footer-contact a:hover {
	text-decoration: underline;
}

.copyright {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8rem;
	color: #ddd;
}

/* Cookie Consent */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	background-color: var(--primary);
	color: white;
	z-index: 1001;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.cookie-text {
	flex: 1;
	margin-right: 1rem;
	min-width: 200px;
}

.cookie-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Policy Pages */
.policy-content {
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	margin-top: 90px;
}

.policy-content h1 {
	margin-bottom: 2rem;
}

.policy-content h2 {
	margin-top: 2rem;
}

.policy-content ul,
.policy-content ol {
	margin-left: 2rem;
	margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.hero h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	.nav-links {
		position: fixed;
		top: 73px;
		right: -100%;
		flex-direction: column;
		background-color: var(--primary);
		width: 80%;
		height: calc(100vh - 73px);
		padding: 2rem;
		transition: right 0.3s ease;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		z-index: 1000;
		margin: 0;
	}

	.nav-links.active {
		right: 0;
	}

	.nav-links li {
		margin: 1.5rem 0;
		text-align: center;
	}

	.hamburger {
		display: block;
	}

	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	.hero h1 {
		font-size: 2.2rem;
	}

	.hero-content {
		padding: 0 15px;
	}

	.about-grid,
	.benefits-container,
	.services-container,
	.process-container,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.service-card {
		max-width: 100%;
	}

	/* Prevent form elements from overflowing */
	input,
	select,
	textarea {
		width: 100%;
	}

	/* Fix cookie banner on small screens */
	.cookie-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem;
	}

	.cookie-text {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.cookie-actions {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 576px) {
	.container {
		width: 95%;
		padding: 0.5rem 0;
	}

	.section {
		padding: 2rem 0;
		padding-top: 5rem;
	}

	.hero {
		min-height: 70vh;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.btn {
		padding: 0.7rem 1.5rem;
		font-size: 0.9rem;
	}

	.service-card {
		flex-direction: column;
	}

	.service-image {
		height: 200px;
		width: 100%;
	}

	/* Make testimonials more compact */
	.testimonial {
		padding: 1.5rem;
	}

	.testimonial-content {
		padding: 1rem;
	}

	/* Fix FAQ layout */
	.faq-question {
		padding: 1rem;
	}

	.faq-answer {
		padding: 1rem;
	}

	/* Thank you page adjustments */
	.thank-you-content {
		padding: 1.5rem;
	}
}

/* Make the anchor links target properly with the fixed header */
:target {
	display: block;
	position: relative;
	top: -80px;
	visibility: hidden;
}

/* Thank You Page Styles */
.thank-you-section {
	min-height: calc(80vh - 73px);
	display: flex;
	align-items: center;
	z-index: 10000;
}

.thank-you-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 3rem;
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.thank-you-icon {
	font-size: 5rem;
	color: var(--accent);
	margin: 1.5rem 0;
}

.thank-you-content h1 {
	color: var(--primary);
	margin-bottom: 1rem;
}

.thank-you-content p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	line-height: 1.7;
}

.contact-info {
	background-color: var(--bg-light);
	padding: 2rem;
	border-radius: 8px;
	margin: 2rem 0;
}

/* Override for contact-info in footer to match footer background */
.footer-contact .contact-info {
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	margin: 0 0 0.5rem 0;
}

.contact-info h3 {
	margin-bottom: 1.5rem;
	color: var(--secondary);
}

.contact-info ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	align-items: center;
}

.contact-info li {
	font-size: 1.1rem;
}

.contact-info i {
	color: var(--accent);
	margin-right: 0.5rem;
}

/* Core responsive fixes to prevent horizontal scrolling */
html,
body {
	overflow-x: hidden;
	width: 100%;
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
}

/* Make tables responsive */
table {
	max-width: 100%;
	overflow-x: auto;
	display: block;
}

/* Improve the responsiveness of the grid layouts */
.about-grid,
.benefits-container,
.services-container,
.process-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

@media (max-width: 400px) {
	.logo {
		height: 35px;
	}

	.hamburger span {
		width: 22px;
	}

	header {
		padding: 0.8rem 0;
	}
}
