/* Base Styles */
:root {
	/* Warm palette to match new logo (orange / sand / charcoal) */
	--primary-color: #e76f51; /* orange */
	/* Accessibility: darker primary for contrast on white */
	--primary-contrast-bg: #c6532f; /* darkened orange */
	--primary-contrast-hover: #a94322; /* hover state */
	--secondary-color: #f4a261; /* light orange */
	--accent-color: #f3e7d3; /* sand */
	--dark-color: #2f2f2f; /* charcoal */
	--light-color: #fcf4ea; /* warm light background */
	--text-color: #2f2f2f;
	--text-light: #5c5c5c;
	--white: #fff;
	--box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
	--bg-color: var(--light-color);
	--card-bg: var(--white);
}

/* Dark Mode Colors */
[data-theme="dark"] {
	--primary-color: #ff8a65; /* brighter orange on dark */
	--secondary-color: #f7b386;
	--accent-color: #3a2f28; /* muted warm accent */
	--dark-color: #eaeaea; /* heading color fallback */
	--light-color: #2a2a2a;
	--text-color: #ffffff; /* Reines Weiß für Haupttext */
	--text-light: #e8e8e8; /* Auch für sekundären Text nahezu Weiß */
	--white: #1b1b1b;
	--box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	--bg-color: #121212;
	--card-bg: #1e1e1e;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	transition: var(--transition);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

a {
	text-decoration: none;
	/* Accessibility: ensure >=4.5:1 contrast on light bg */
	color: var(--primary-contrast-bg);
	transition: var(--transition);
}

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

/* Dark theme link contrast */
[data-theme="dark"] a {
	color: #ffb48a;
}

[data-theme="dark"] a:hover {
	color: #ffd1bb;
}

ul {
	list-style: none;
}

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

section {
	padding: 80px 0;
}

h2 {
	font-size: 2.5rem;
	margin-bottom: 40px;
	text-align: center;
	color: var(--dark-color);
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
}

.btn-primary {
	/* Accessibility: improve contrast for normal-size text */
	background-color: var(--primary-contrast-bg);
	color: var(--white);
	border: 2px solid var(--primary-contrast-bg);
}

.btn-primary:hover {
	background-color: var(--primary-contrast-hover);
	border-color: var(--primary-contrast-hover);
	color: var(--white);
	transform: translateY(-3px);
	box-shadow: var(--box-shadow);
}

/* Focus visibility for keyboard users */
.btn:focus-visible,
a.btn:focus-visible {
	outline: 3px solid #ffbf47; /* high-contrast focus ring */
	outline-offset: 2px;
}

/* Theme Switcher - Neu gestaltet als Button */
.theme-switcher {
	display: flex;
	align-items: center;
}

.theme-toggle {
	/* Accessibility: use contrast-safe background */
	background: var(--primary-contrast-bg);
	color: white;
	border: none;
	border-radius: 30px;
	padding: 8px 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
	background: var(--primary-contrast-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
	font-size: 1rem;
}

/* Language and Theme Switchers */
.language-switcher {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-left: 20px;
}

.language-flags {
	display: flex;
	gap: 10px;
	align-items: center;
}

.language-flags a {
	display: flex;
	align-items: center;
	padding: 5px;
	border-radius: 4px;
	transition: var(--transition);
	border: 2px solid transparent;
}

.language-flags a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.language-flags img {
	width: 24px;
	height: 16px;
	border-radius: 2px;
}

/* Sprachauswahl-Logik: Aktive Sprache ist hervorgehoben */
.language-flags .active {
	opacity: 1;
	pointer-events: none;
	box-shadow: 0 0 0 2px var(--primary-color);
}

.language-flags a:not(.active) {
	opacity: 0.5;
}

/* Header */
header {
	background-color: var(--card-bg);
	box-shadow: var(--box-shadow);
	position: sticky;
	top: 0;
	z-index: 100;
	position: relative;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 40px;
	margin-right: 10px;
}

.logo h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
}

nav {
	display: flex;
	align-items: center;
}

nav ul {
	display: flex;
}

nav ul li {
	margin-left: 30px;
}

nav ul li a {
	color: var(--text-color);
	font-weight: 500;
}

nav ul li a:hover {
	color: var(--primary-color);
}

/* Hero Section */
.hero {
	padding: 100px 0 60px;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	color: white;
	position: relative;
	overflow: hidden;
}

.hero .container {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 2;
	gap: 40px;
}

.hero-content {
	flex: 1;
	max-width: 600px;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	color: white;
}

.hero-subtitle {
	font-size: 1.5rem;
	line-height: 1.4;
	margin-bottom: 2.5rem;
	opacity: 0.9;
	font-weight: 400;
}

/* CTA Wrapper */
.cta-wrapper {
	margin: 3rem 0;
	text-align: left;
}

.btn-large {
	padding: 1rem 2rem;
	font-size: 1.2rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cta-note {
	margin-top: 1rem;
	font-size: 0.95rem;
	opacity: 0.9;
	font-weight: 400;
}

/* Badges */
.hero-badges {
	display: flex;
	gap: 12px;
	margin-top: 3rem;
	flex-wrap: wrap;
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.2s ease;
}

.badge:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.15);
}

.badge i {
	margin-right: 8px;
	font-size: 0.9rem;
	opacity: 0.9;
}

/* Hero Image */
.hero-image {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image img {
	max-width: 100%;
	max-height: 500px;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
	.hero .container {
		flex-direction: column;
		text-align: center;
	}

	.hero-content {
		max-width: 100%;
		padding: 0 20px;
		margin-bottom: 40px;
	}

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

	.hero-subtitle {
		font-size: 1.3rem;
	}

	.cta-wrapper {
		text-align: center;
	}

	.hero-badges {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.hero {
		padding: 80px 0 40px;
	}

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

	.hero-subtitle {
		font-size: 1.1rem;
	}

	.btn-large {
		width: 100%;
		justify-content: center;
		padding: 0.9rem 1.5rem;
		font-size: 1.1rem;
	}

	.hero-badges {
		flex-direction: column;
		align-items: center;
	}
}

/* Features Section */
.features {
	background-color: var(--card-bg);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.feature-card {
	background-color: var(--card-bg);
	padding: 30px;
	border-radius: 10px;
	box-shadow: var(--box-shadow);
	text-align: center;
	transition: var(--transition);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 20px;
}

.feature-card h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: var(--dark-color);
}

.feature-card p {
	color: var(--text-light);
	line-height: 1.5;
}

/* Verbesserte Lesbarkeit im Dark Mode - alle Texte weiß */
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .technical-text p,
[data-theme="dark"] .technical-text h3,
[data-theme="dark"] .step p,
[data-theme="dark"] .step h3,
[data-theme="dark"] .technical-highlight p,
[data-theme="dark"] .technical-highlight h4,
[data-theme="dark"] .accordion-content p,
[data-theme="dark"] .accordion-button,
[data-theme="dark"] h2 {
	color: #ffffff; /* Reines Weiß für maximalen Kontrast */
	opacity: 0.95; /* Leicht reduzierte Opazität für angenehmeres Lesen */
}

/* Verbesserte Sichtbarkeit im Dark Mode für Feature-Karten */
[data-theme="dark"] .feature-card {
	background-color: rgba(29, 41, 53, 0.8); /* Leicht transparenter Hintergrund */
	border: 1px solid rgba(255, 255, 255, 0.1); /* Subtiler weißer Rand */
}

.feature-highlight {
	margin-top: 15px;
	padding: 10px;
	background-color: rgba(231, 111, 81, 0.12);
	border-left: 3px solid var(--primary-color);
	border-radius: 0 4px 4px 0;
	font-weight: 500;
	color: var(--text-color);
	font-size: 0.9rem;
}

/* Verbesserte Sichtbarkeit im Dark Mode */
[data-theme="dark"] .feature-highlight {
	background-color: rgba(231, 111, 81, 0.25); /* Stärkerer Hintergrund */
	color: #ffffff;
	border-color: #ffb48a; /* Hellere Randfarbe */
}

/* How It Works Section */
.how-it-works {
	background-color: var(--bg-color);
}

.steps {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 30px;
}

.step {
	flex: 1;
	min-width: 250px;
	background-color: var(--card-bg);
	padding: 30px;
	border-radius: 10px;
	box-shadow: var(--box-shadow);
	text-align: center;
	position: relative;
}

/* Verbesserte Sichtbarkeit im Dark Mode für Schritte */
[data-theme="dark"] .step {
	background-color: rgba(29, 41, 53, 0.8); /* Leicht transparenter Hintergrund */
	border: 1px solid rgba(255, 255, 255, 0.1); /* Subtiler weißer Rand */
}

.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: 1.5rem;
	font-weight: bold;
	margin: 0 auto 20px;
}

.step h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: var(--dark-color);
}

/* Technical Section */
.technical {
	background-color: var(--bg-color);
	padding: 80px 0;
}

.technical-content {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-top: 40px;
}

.technical-image {
	flex: 1;
	display: flex;
	justify-content: center;
}

.technical-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: var(--box-shadow);
}

.technical-text {
	flex: 1;
}

.technical-text h3 {
	font-size: 1.8rem;
	margin-bottom: 20px;
	color: var(--dark-color);
}

.technical-text p {
	margin-bottom: 15px;
	line-height: 1.6;
}

.technical-highlight {
	margin-top: 30px;
	padding: 20px;
	background-color: var(--card-bg);
	border-radius: 8px;
	box-shadow: var(--box-shadow);
	display: flex;
	gap: 15px;
}

.technical-highlight i {
	font-size: 2rem;
	color: var(--secondary-color);
}

.technical-highlight h4 {
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: var(--dark-color);
}

.technical-highlight p {
	margin-bottom: 0;
	font-size: 0.95rem;
}

/* Download Section */
.download {
	background: linear-gradient(
		135deg,
		var(--primary-color) 0%,
		var(--secondary-color) 100%
	);
	color: var(--white);
	text-align: center;
	padding: 80px 0;
}

.download h2 {
	color: var(--white);
}

.download p {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto 30px;
	opacity: 0.9;
}

.pricing-info {
	background: rgba(255, 255, 255, 0.1);
	padding: 20px;
	border-radius: 10px;
	margin: 30px auto;
	max-width: 400px;
	text-align: center;
}

.price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--accent-color);
	display: block;
	margin-bottom: 10px;
}

.price-detail {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
}

/* FAQ Section */
.faq {
	background-color: var(--card-bg);
}

.accordion {
	max-width: 800px;
	margin: 0 auto;
}

.accordion-item {
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--box-shadow);
}

.accordion-button {
	width: 100%;
	padding: 20px;
	background-color: var(--bg-color);
	border: none;
	text-align: left;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-color);
	cursor: pointer;
	transition: var(--transition);
	position: relative;
}

.accordion-button:hover {
	background-color: #e6eaed;
}

.accordion-button::after {
	content: "+";
	position: absolute;
	right: 20px;
	font-size: 1.5rem;
}

.accordion-button.active::after {
	content: "-";
}

.accordion-content {
	padding: 0;
	max-height: 0;
	overflow: hidden;
	background-color: var(--card-bg);
	transition: max-height 0.3s ease;
}

.accordion-content p {
	padding: 20px;
}

.accordion-item.active .accordion-content {
	max-height: 200px;
}

/* Legal Pages */
.legal-content {
	padding: 60px 0;
	min-height: calc(100vh - 200px);
}

.legal-content .container {
	max-width: 800px;
}

.legal-text {
	background: var(--card-bg);
	padding: 40px;
	border-radius: 10px;
	box-shadow: var(--box-shadow);
	color: var(--text-color);
}

.legal-text h1 {
	color: var(--primary-color);
	margin-bottom: 30px;
	font-size: 2.5rem;
}

.legal-text h2 {
	color: var(--dark-color);
	font-size: 1.8rem;
	margin: 30px 0 15px;
	text-align: left;
}

.legal-text h3 {
	color: var(--text-color);
	font-size: 1.4rem;
	margin: 20px 0 10px;
}

.legal-text p,
.legal-text ul {
	margin-bottom: 15px;
	line-height: 1.6;
}

.legal-text ul {
	list-style: disc;
	margin-left: 20px;
}

.legal-text .btn {
	margin-top: 30px;
}

/* Footer */
footer {
	background-color: var(--dark-color);
	color: var(--white);
	padding: 60px 0 20px;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 40px;
}

.footer-logo {
	flex: 1;
	min-width: 200px;
	margin-bottom: 20px;
}

.footer-logo img {
	height: 40px;
	margin-bottom: 10px;
}

.footer-links,
.footer-contact {
	flex: 1;
	min-width: 200px;
	margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: var(--white);
}

.footer-links ul li {
	margin-bottom: 10px;
}

.footer-links ul li a {
	color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
	color: var(--white);
}

.footer-contact a {
	color: var(--secondary-color);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	flex-wrap: wrap;
}

.footer-bottom p {
	margin-bottom: 10px;
}

.footer-links-legal {
	margin: 10px 0;
}

.footer-links-legal a {
	color: rgba(255, 255, 255, 0.7);
	transition: var(--transition);
}

.footer-links-legal a:hover {
	color: var(--white);
}

.footer-social a {
	color: rgba(255, 255, 255, 0.7);
	margin-left: 15px;
	font-size: 1.2rem;
}

.footer-social a:hover {
	color: var(--white);
}

.footer-social a:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 3px;
	border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.hero .container {
		flex-direction: column;
	}

	.hero-content {
		padding-right: 0;
		margin-bottom: 40px;
		text-align: center;
	}

	.hero-content h2 {
		text-align: center;
	}

	.hero-badges {
		justify-content: center;
	}

	.steps {
		flex-direction: column;
	}

	.technical-content {
		flex-direction: column;
	}

	.technical-image {
		margin-bottom: 30px;
	}
}

@media (max-width: 768px) {
	header .container {
		flex-direction: column;
	}

	.logo {
		margin-bottom: 20px;
	}

	nav {
		flex-direction: column;
		width: 100%;
	}

	nav ul {
		flex-wrap: wrap;
		justify-content: center;
		margin-bottom: 15px;
	}

	nav ul li {
		margin: 0 15px 10px;
	}

	.language-switcher {
		margin: 10px 0 0 0;
		justify-content: center;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		flex-direction: column;
	}
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: white;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	padding: 20px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.cookie-banner.visible {
	transform: translateY(0);
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	gap: 30px;
}

.cookie-text h3 {
	margin-bottom: 10px;
	font-size: 1.2rem;
}

.cookie-text p {
	font-size: 0.9rem;
	color: var(--text-light);
}

.cookie-buttons {
	display: flex;
	gap: 15px;
	flex-shrink: 0;
}

/* Dark mode styles for cookie banner */
[data-theme="dark"] .cookie-banner {
	background-color: var(--dark-color);
}

[data-theme="dark"] .cookie-text h3 {
	color: var(--text-color);
}

[data-theme="dark"] .cookie-text p {
	color: var(--text-light);
}

@media (max-width: 768px) {
	.cookie-content {
		flex-direction: column;
		align-items: flex-start;
	}

	.cookie-buttons {
		width: 100%;
		justify-content: space-between;
		margin-top: 15px;
	}
}
