/* 
 * Dateiname: landing1.css
 * Pfad: /index/css/landing1.css
 * CSS für Flohmarkt-Karte.de Landing Page - Teil 1
 * BEREINIGT: Header-Funktionen ausgelagert nach header.css
 */

/* CSS Variables für konsistente Farbgebung */
:root {
	--primary-color: #e74c3c;
	--primary-dark: #c0392b;
	--primary-light: #f39c97;
	--secondary-color: #2c3e50;
	--accent-color: #3498db;
	--success-color: #27ae60;
	--warning-color: #f39c12;
	--danger-color: #e74c3c;

	--text-primary: #2c3e50;
	--text-secondary: #7f8c8d;
	--text-light: #95a5a6;
	--text-white: #ffffff;

	--bg-white: #ffffff;
	--bg-light: #f8f9fa;
	--bg-dark: #2c3e50;
	--bg-primary: #e74c3c;

	--border-light: #ecf0f1;
	--border-color: #bdc3c7;

	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

	--border-radius: 8px;
	--border-radius-sm: 4px;
	--border-radius-lg: 12px;

	--transition: all 0.3s ease;
	--transition-fast: all 0.2s ease;
}

/* Reset und Basis-Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-white);
}

/* Accessibility - Focus-Styles */
*:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sr-only-focusable:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--primary-color);
	color: var(--text-white);
	padding: 0.5rem 1rem;
	z-index: 9999;
}

/* Hero Section - Verbesserte Kartenoptik */
.hero {
	background: var(--bg-light);
	color: var(--text-primary);
	padding: 120px 0 60px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	z-index: 1;
}

.hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		/* Haupt-Gitternetz für Kartenoptik */
		linear-gradient(rgba(231, 76, 60, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(231, 76, 60, 0.08) 1px, transparent 1px),
		/* Feineres Gitternetz */
		linear-gradient(rgba(52, 152, 219, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(52, 152, 219, 0.04) 1px, transparent 1px),
		/* Diagonale Linien für zusätzliche Kartenästhetik */
		linear-gradient(45deg, rgba(231, 76, 60, 0.02) 1px, transparent 1px),
		linear-gradient(-45deg, rgba(231, 76, 60, 0.02) 1px, transparent 1px),
		/* Sehr dezente "Straßen"-Linien */
		linear-gradient(rgba(44, 62, 80, 0.03) 2px, transparent 2px),
		linear-gradient(90deg, rgba(44, 62, 80, 0.03) 2px, transparent 2px);
	background-size:
		50px 50px,
		/* Haupt-Gitternetz */
		50px 50px,
		25px 25px,
		/* Feines Gitternetz */
		25px 25px,
		35px 35px,
		/* Diagonale */
		35px 35px,
		200px 200px,
		/* Große "Straßen" */
		200px 200px;
	background-position:
		0 0,
		0 0,
		12.5px 12.5px,
		/* Offset für feines Gitternetz */
		12.5px 12.5px,
		0 0,
		0 0,
		0 0,
		0 0;
	animation: mapLines 30s ease-in-out infinite;
	z-index: 2;
}

/* Zusätzliche Kartenelemente als Pseudo-Element */
.hero-content::before {
	content: '';
	position: absolute;
	top: 10%;
	left: 10%;
	right: 10%;
	bottom: 10%;
	background-image:
		/* Simulierte "Gebäude" */
		radial-gradient(circle 3px at 80% 20%, rgba(231, 76, 60, 0.1) 50%, transparent 50%),
		radial-gradient(circle 2px at 25% 40%, rgba(52, 152, 219, 0.08) 50%, transparent 50%),
		radial-gradient(circle 2px at 70% 60%, rgba(39, 174, 96, 0.08) 50%, transparent 50%),
		radial-gradient(circle 3px at 40% 80%, rgba(243, 156, 18, 0.1) 50%, transparent 50%),
		radial-gradient(circle 2px at 90% 70%, rgba(155, 89, 182, 0.08) 50%, transparent 50%);
	background-size:
		120px 120px,
		80px 80px,
		100px 100px,
		90px 90px,
		110px 110px;
	animation: mapElements 40s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

@keyframes mapLines {

	0%,
	100% {
		transform: translateX(0px) translateY(0px) rotate(0deg);
		opacity: 1;
	}

	25% {
		transform: translateX(3px) translateY(-2px) rotate(0.1deg);
		opacity: 0.8;
	}

	50% {
		transform: translateX(-2px) translateY(3px) rotate(-0.1deg);
		opacity: 0.9;
	}

	75% {
		transform: translateX(2px) translateY(-1px) rotate(0.05deg);
		opacity: 0.85;
	}
}

@keyframes mapElements {

	0%,
	100% {
		transform: scale(1) rotate(0deg);
		opacity: 0.6;
	}

	33% {
		transform: scale(1.02) rotate(0.2deg);
		opacity: 0.8;
	}

	66% {
		transform: scale(0.98) rotate(-0.1deg);
		opacity: 0.7;
	}
}

.hero-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 3;
}

.hero-text h1 {
	font-size: 3.2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	color: var(--text-primary);
}

.hero-text .highlight {
	color: var(--primary-color);
}

.hero-text .subtitle {
	font-size: 1.2rem;
	margin-bottom: 0;
	color: var(--text-secondary);
	line-height: 1.6;
}

.hero-demo {
	display: flex;
	justify-content: center;
}

.demo-card {
	background: var(--bg-white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	max-width: 400px;
	width: 100%;
	border: 1px solid rgba(231, 76, 60, 0.1);
}

.demo-header {
	background: var(--bg-dark);
	color: var(--text-white);
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
}

.demo-header i {
	color: var(--primary-color);
}

.demo-preview {
	padding: 1rem;
}

.demo-map-mini {
	height: 250px;
	width: 100%;
	background: var(--bg-light);
	border-radius: var(--border-radius);
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border-light);
}

/* Construction Notice - Erweitert für eingebettete Formulare */
.construction-notice {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 4rem 0;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
}

.notice-content-extended {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.notice-main {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2rem;
	align-items: center;
	padding: 2rem;
	background: var(--bg-white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.notice-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--warning-color), #e67e22);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-white);
	font-size: 1.5rem;
	flex-shrink: 0;
}

.notice-text h3 {
	margin: 0 0 0.5rem 0;
	color: var(--text-primary);
	font-size: 1.5rem;
}

.notice-text p {
	margin: 0;
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 1.1rem;
}

/* Eingebettete Auth-Formulare */
.embedded-auth-form {
	width: 100%;
}

.auth-card {
	background: var(--bg-white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-light);
	overflow: hidden;
}

.auth-tabs-inline {
	display: flex;
	background: var(--bg-light);
	border-bottom: 1px solid var(--border-light);
}

.auth-tab-inline {
	flex: 1;
	padding: 1rem 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 500;
	color: var(--text-secondary);
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-bottom: 3px solid transparent;
}

.auth-tab-inline.active {
	color: var(--primary-color);
	background: var(--bg-white);
	border-bottom-color: var(--primary-color);
}

.auth-tab-inline:hover:not(.active) {
	background: rgba(231, 76, 60, 0.05);
	color: var(--primary-color);
}

.auth-form-inline {
	display: none;
	padding: 2rem;
}

.auth-form-inline.active {
	display: block;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

/* Features Auth Section */
.features-auth-section {
	margin: 3rem 0;
	display: flex;
	justify-content: center;
}

.quick-auth-card {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: var(--text-white);
	padding: 2rem;
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-lg);
	max-width: 500px;
	width: 100%;
	text-align: center;
}

.quick-auth-card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
}

.quick-auth-card h3 i {
	margin-right: 0.5rem;
	color: var(--text-white);
}

.quick-auth-card p {
	margin-bottom: 1.5rem;
	opacity: 0.9;
}

.quick-auth-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--border-radius);
	padding: 0.25rem;
}

.auth-tab-quick {
	flex: 1;
	padding: 0.75rem 1rem;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	border-radius: var(--border-radius-sm);
	transition: var(--transition);
}

.auth-tab-quick.active {
	background: var(--bg-white);
	color: var(--primary-color);
}

.quick-auth-form {
	display: none;
}

.quick-auth-form.active {
	display: block;
}

.form-group-compact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.form-group-compact input {
	padding: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--border-radius);
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-white);
	font-size: 1rem;
	transition: var(--transition);
}

.form-group-compact input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.form-group-compact input:focus {
	border-color: var(--text-white);
	background: rgba(255, 255, 255, 0.2);
	outline: none;
}

/* Alert-Typen mit besserer Sichtbarkeit */
.form-alert {
	display: none;
	padding: 1rem 1.5rem;
	border-radius: var(--border-radius);
	margin-top: 1rem;
	font-weight: 500;
	font-size: 0.9rem;
	line-height: 1.4;
}

.form-alert.show {
	display: block;
}

.form-alert.success {
	background: rgba(39, 174, 96, 0.95);
	color: white;
	border: 1px solid rgba(39, 174, 96, 0.8);
	box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.form-alert.error {
	background: rgba(231, 76, 60, 0.95);
	color: white;
	border: 1px solid rgba(231, 76, 60, 0.8);
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.form-alert.info {
	background: rgba(52, 152, 219, 0.95);
	color: white;
	border: 1px solid rgba(52, 152, 219, 0.8);
	box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.form-alert.warning {
	background: rgba(243, 156, 18, 0.95);
	color: white;
	border: 1px solid rgba(243, 156, 18, 0.8);
	box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Spinner Animation */
.spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 0.5rem;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive Design - Mobile Anpassungen ohne Header */
@media (max-width: 768px) {
	.hero-content {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
		padding: 0 1rem;
	}

	.hero-text h1 {
		font-size: 2.5rem;
	}

	.hero-text .subtitle {
		font-size: 1.1rem;
	}

	.notice-main {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		text-align: center;
		padding: 1.5rem;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.quick-auth-card {
		margin: 0 1rem;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 100px 0 40px;
	}

	.hero-text h1 {
		font-size: 2rem;
	}

	.hero-text .subtitle {
		font-size: 1rem;
	}

	.notice-main {
		padding: 1rem;
	}

	.auth-card {
		margin: 0;
	}

	.auth-form-inline {
		padding: 1.5rem;
	}

	.form-group-compact input {
		padding: 0.75rem;
	}
}