/*
 * Faktenchecker Landing Page Styles
 * Part of OTONGO.tools
 */

/* ==================== Base Styles ==================== */
:root {
	/* Colors based on the logo - dark navy and green */
	--primary-color: #0a2439; /* Dark navy from logo */
	--secondary-color: #14a76c; /* Green from logo */
	--accent-color: #ff8a00; /* Warm accent color */
	--text-color: #333;
	--light-text: #f5f5f5;
	--dark-text: #222;
	--bg-color: #f8f9fa;
	--card-bg: #fff;
	--border-color: #e0e0e0;

	/* Typography */
	--body-font: "Inter", sans-serif;
	--heading-font: "Inter", sans-serif;

	/* Spacing */
	--section-spacing: 100px;
	--container-padding: 2rem;
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	color: var(--text-color);
	line-height: 1.6;
	background-color: var(--bg-color);
	overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--heading-font);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
}

h2 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
}

h3 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

p {
	margin-bottom: 1.5rem;
}

ul {
	list-style-position: inside;
	margin-bottom: 1.5rem;
}

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

button,
.btn {
	cursor: pointer;
	font-family: var(--body-font);
	font-weight: 600;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 50px;
	font-size: 1rem;
	transition: all 0.3s ease;
	display: inline-block;
}

.btn-primary {
	background-color: var(--secondary-color);
	color: white;
	box-shadow: 0 4px 6px rgba(20, 167, 108, 0.2);
}

.btn-primary:hover {
	background-color: #118d5d;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(20, 167, 108, 0.3);
}

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

.btn-secondary:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--container-padding);
	position: relative;
	z-index: 2;
}

/* ==================== Header Styles ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.5rem 0;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
}

.header.scrolled {
	padding: 1rem 0;
	background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: 50px;
	width: auto;
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	font-weight: 600;
	color: var(--primary-color);
	position: relative;
}

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

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

/* ==================== Parallax Effects ==================== */
.parallax-section {
	position: relative;
	overflow: hidden;
	padding: 120px 0;
	background-color: var(--bg-color);
}

.parallax-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.1;
	transform: translateZ(-1px) scale(1.5);
}

/* ==================== Hero Section ==================== */
.hero {
	height: 100vh;
	display: flex;
	align-items: center;
	background-color: var(--primary-color);
	color: var(--light-text);
	padding-top: 80px;
	overflow: visible;
}

.hero h1,
.hero p {
	color: var(--light-text);
}

.hero-content {
	flex: 1;
	max-width: 600px;
	margin-right: 2rem;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

.cta-buttons {
	display: flex;
	gap: 1rem;
}

.hero-image {
	flex: 1;
	position: relative;
	height: 400px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.floating-image {
	width: 300px;
	height: auto;
	animation: float 6s ease-in-out infinite;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0px);
	}
}

.hero .parallax-bg {
	background-image: radial-gradient(
		circle,
		rgba(20, 167, 108, 0.2) 0%,
		rgba(10, 36, 57, 0.2) 70%
	);
	opacity: 1;
}

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

.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.section-header p {
	font-size: 1.2rem;
	color: #666;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2.5rem;
}

.feature-card {
	background-color: var(--card-bg);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

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

.feature-icon {
	background-color: var(--secondary-color);
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	color: white;
	font-size: 28px;
	box-shadow: 0 5px 15px rgba(20, 167, 108, 0.3);
}

.feature-card h3 {
	margin-bottom: 1rem;
}

.feature-card p {
	color: #666;
	margin-bottom: 0;
}

.features .parallax-bg {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2314a76c" stroke-width="1" stroke-opacity="0.2"/></svg>');
	background-size: 200px;
	opacity: 0.5;
}

/* ==================== How to Use Section ==================== */
.how-to-use {
	background-color: var(--primary-color);
	color: var(--light-text);
}

.how-to-use .section-header h2,
.how-to-use .section-header p {
	color: var(--light-text);
}

.steps-container {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	max-width: 800px;
	margin: 0 auto;
}

.step {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.step-number {
	background-color: var(--secondary-color);
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	flex-shrink: 0;
	box-shadow: 0 5px 15px rgba(20, 167, 108, 0.3);
}

.step-content h3 {
	color: var(--light-text);
	margin-bottom: 0.5rem;
}

.step-content p {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 0;
}

.how-to-use .parallax-bg {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,50 L80,50 M50,20 L50,80" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.1"/></svg>');
	background-size: 100px;
	opacity: 0.3;
}

/* ==================== API Setup Section ==================== */
.api-setup {
	background-color: var(--bg-color);
}

.api-setup-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
}

.api-info,
.api-tips {
	background-color: var(--card-bg);
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.api-info h3,
.api-tips h3 {
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.api-info ul,
.api-tips ul {
	list-style-type: none;
}

.api-info li,
.api-tips li {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	position: relative;
}

.api-info li::before,
.api-tips li::before {
	content: "•";
	color: var(--secondary-color);
	font-size: 1.5rem;
	position: absolute;
	left: 0;
	top: -8px;
}

.api-info a {
	color: var(--secondary-color);
	font-weight: 600;
	text-decoration: underline;
}

.api-setup .parallax-bg {
	background-image: radial-gradient(
		circle,
		rgba(10, 36, 57, 0.05) 1px,
		transparent 1px
	);
	background-size: 20px 20px;
}

/* ==================== Coming Soon Section ==================== */
.coming-soon {
	background-color: var(--primary-color);
	color: var(--light-text);
}

.coming-soon .section-header h2,
.coming-soon .section-header p {
	color: var(--light-text);
}

.coming-soon-content {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.countdown {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 3rem;
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.countdown-item span:first-child {
	font-size: 3rem;
	font-weight: 700;
	color: var(--secondary-color);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.countdown-label {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.8);
}

.notify-form {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 2.5rem;
	border-radius: 12px;
	margin-bottom: 2rem;
}

.notify-form h3 {
	color: var(--light-text);
	margin-bottom: 1.5rem;
}

.notify-form form {
	display: flex;
	gap: 1rem;
	max-width: 500px;
	margin: 0 auto;
}

.notify-form input {
	flex: 1;
	padding: 0.8rem 1.5rem;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	outline: none;
}

.disclaimer {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.6);
	font-style: italic;
}

.coming-soon .parallax-bg {
	background-image: radial-gradient(
			circle at 20% 30%,
			rgba(20, 167, 108, 0.15) 0%,
			transparent 150px
		),
		radial-gradient(
			circle at 70% 70%,
			rgba(20, 167, 108, 0.1) 0%,
			transparent 150px
		);
	opacity: 0.8;
}

/* ==================== Kontakt Accordion ==================== */
.kontakt-section {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 0 0 4rem 0;
	background: none;
}

.accordion-container {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(10, 36, 57, 0.08);
	background: var(--card-bg);
	overflow: hidden;
	transition: box-shadow 0.3s;
}

.accordion-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--primary-color);
	color: var(--light-text);
	font-size: 1.2rem;
	font-weight: 600;
	border: none;
	outline: none;
	padding: 1.25rem 2rem;
	cursor: pointer;
	transition: background 0.2s;
}

.accordion-toggle:hover,
.accordion-toggle[aria-expanded="true"] {
	background: var(--secondary-color);
	color: #fff;
}

.accordion-toggle i {
	margin-left: 1rem;
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

.accordion-content {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--card-bg);
	padding: 2rem 1rem;
	border-top: 1px solid var(--border-color);
	max-height: 600px;
	transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
	opacity: 1;
	overflow: hidden;
}

.accordion-content[style*="display:none"] {
	max-height: 0 !important;
	opacity: 0;
	padding: 0 1rem;
}

.kontakt-form-wrapper {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.kontakt-form-wrapper iframe {
	width: 100%;
	min-height: 320px;
	border: none;
	border-radius: 8px;
	background: transparent;
	box-shadow: 0 2px 10px rgba(20, 167, 108, 0.06);
}

@media (max-width: 700px) {
	.accordion-container {
		max-width: 95vw;
	}
	.kontakt-form-wrapper {
		max-width: 98vw;
	}
}

/* ==================== Impressum Modal & Footer Legal Links ==================== */

/* ========= Legal Pages (Datenschutz, Nutzungsbedingungen) ========= */
.legal-main {
	min-height: 100vh;
	background: var(--background-color, #f7f9fb);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 3.5rem 1rem 2rem 1rem;
}
.legal-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 6px 32px rgba(10, 36, 57, 0.1);
	max-width: 620px;
	width: 100%;
	padding: 2.5rem 2rem 2rem 2rem;
	margin: 2rem auto 0 auto;
	color: var(--dark-text, #222);
	font-size: 1.09rem;
	line-height: 1.7;
}
.section-title {
	color: var(--primary-color);
	font-size: 2.1rem;
	font-weight: 700;
	margin-bottom: 1.8rem;
	text-align: center;
	letter-spacing: 0.01em;
}
.legal-card h2 {
	color: var(--secondary-color);
	margin-top: 2.2rem;
	margin-bottom: 0.7rem;
	font-size: 1.25rem;
	font-weight: 600;
}
.legal-card ul {
	margin-left: 1.5rem;
	margin-bottom: 1.2rem;
	list-style: disc;
}
.legal-card p {
	margin-bottom: 1.1rem;
	margin-top: 0.3rem;
}
.legal-back {
	margin-top: 2.2rem;
	text-align: center;
}
.btn.btn-primary {
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0.75rem 1.8rem;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(20, 167, 108, 0.06);
	transition: background 0.18s, color 0.18s;
	text-decoration: none;
	display: inline-block;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
	background: var(--secondary-color);
	color: #fff;
}
@media (max-width: 700px) {
	.legal-card {
		padding: 1.2rem 0.5rem 1.2rem 0.5rem;
		font-size: 1.01rem;
	}
	.section-title {
		font-size: 1.45rem;
	}
}

.footer-legal-links {
	margin-top: 1.2rem;
	text-align: center;
}
.footer-legal-links a {
	color: var(--secondary-color);
	text-decoration: underline;
	margin: 0 0.5rem;
	font-size: 1rem;
	font-weight: 500;
	transition: color 0.2s;
}
.footer-legal-links a:hover {
	color: var(--primary-color);
}

.impressum-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	background: rgba(10, 36, 57, 0.45);
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.2s;
}
.impressum-modal-content {
	background: #fff;
	border-radius: 14px;
	max-width: 400px;
	width: 90vw;
	box-shadow: 0 8px 32px rgba(10, 36, 57, 0.18);
	padding: 2.2rem 2rem 1.5rem 2rem;
	position: relative;
	text-align: left;
	color: var(--dark-text);
	font-size: 1.07rem;
}
.impressum-modal-content h3 {
	margin-top: 0;
	color: var(--primary-color);
	margin-bottom: 1.2rem;
	font-size: 1.3rem;
}
.impressum-close {
	position: absolute;
	top: 1rem;
	right: 1.2rem;
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--primary-color);
	cursor: pointer;
	transition: color 0.2s;
}
.impressum-close:hover {
	color: var(--secondary-color);
}
@media (max-width: 500px) {
	.impressum-modal-content {
		padding: 1.2rem 0.7rem 1rem 0.7rem;
		font-size: 0.98rem;
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ==================== Header ==================== */
.header-brand {
	font-weight: 900;
	font-size: 1.5rem;
	color: var(--primary-color);
	letter-spacing: 0.01em;
	margin-right: 2.2rem;
	display: flex;
	align-items: center;
	line-height: 1.1;
}
@media (max-width: 700px) {
	.header-brand {
		font-size: 1.08rem;
		margin-right: 1.1rem;
	}
}

/* ==================== Footer ==================== */
.footer {
	background-color: #051622;
	color: rgba(255, 255, 255, 0.8);
	padding: 5rem 0 2rem;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4rem;
	margin-bottom: 3rem;
}

.footer-logo img {
	height: 60px;
	width: auto;
	margin-bottom: 1rem;
}

.footer-logo p {
	color: var(--secondary-color);
	font-weight: 600;
}

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

.footer-links-column h4 {
	color: white;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

.footer-links-column a {
	color: rgba(255, 255, 255, 0.7);
	display: block;
	margin-bottom: 1rem;
	transition: color 0.3s ease;
}

.footer-links-column a:hover {
	color: var(--secondary-color);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.9rem;
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 1024px) {
	h1 {
		font-size: 3rem;
	}

	h2 {
		font-size: 2.2rem;
	}

	.hero-content {
		max-width: 500px;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	.hero {
		height: auto;
		padding: 150px 0 100px;
	}

	.hero .container {
		flex-direction: column;
		text-align: center;
	}

	.hero-content {
		margin-right: 0;
		margin-bottom: 3rem;
		max-width: 100%;
	}

	.cta-buttons {
		justify-content: center;
	}

	.hero-image {
		height: 300px;
	}

	.nav-links {
		display: none;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.footer-logo {
		text-align: center;
	}

	.footer-logo img {
		margin: 0 auto 1rem;
	}

	.notify-form form {
		flex-direction: column;
	}

	.countdown {
		flex-wrap: wrap;
		gap: 1.5rem;
	}
}

@media (max-width: 480px) {
	.parallax-section {
		padding: 80px 0;
	}

	.step {
		flex-direction: column;
		text-align: center;
	}

	.step-number {
		margin: 0 auto 1rem;
	}
}

/* Add a media query for container when the screen is very narrow */
@media (max-width: 320px) {
	.container {
		padding: 0 1rem;
	}
}

/* ==================== Helper Classes ==================== */
.text-center {
	text-align: center;
}

.mb-0 {
	margin-bottom: 0;
}

.mt-0 {
	margin-top: 0;
}

.mb-1 {
	margin-bottom: 1rem;
}

.mb-2 {
	margin-bottom: 2rem;
}

.mb-3 {
	margin-bottom: 3rem;
}
