/* Modern Colorful Responsive CSS for Fritz Website */

/* CSS Variables for Colors */
:root {
	--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--orange-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
	--purple-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
	--dark-bg: #1a1a2e;
	--darker-bg: #0f0f1e;
	--text-light: #ffffff;
	--text-muted: #b8b8d4;
	--card-bg: rgba(255, 255, 255, 0.1);
	--card-hover: rgba(255, 255, 255, 0.2);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	--shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Poppins', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-light);
	background: var(--darker-bg);
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
	min-height: 100vh;
	overflow-x: hidden;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* Header */
#header {
	background: rgba(26, 26, 46, 0.95);
	backdrop-filter: blur(10px);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

#logo h1 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

#logo h1 a {
	text-decoration: none;
	-webkit-text-fill-color: transparent;
}

#logo p {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-top: 0.25rem;
	font-style: italic;
}

/* Navigation */
#menu {
	position: relative;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.75rem;
	gap: 5px;
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
	z-index: 1001;
}

.menu-toggle span {
	width: 28px;
	height: 3px;
	background: var(--text-light);
	border-radius: 3px;
	transition: all 0.3s ease;
	display: block;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

#menu ul {
	list-style: none;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

#menu li {
	margin: 0;
}

#menu a {
	color: var(--text-light);
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
	font-size: 0.95rem;
	display: block;
}

#menu a:hover,
#menu .current_page_item a {
	background: var(--primary-gradient);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
	padding: 4rem 0;
	text-align: center;
	background: var(--primary-gradient);
	margin: 2rem 0;
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.hero h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--text-light);
}

.hero p {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services-section {
	padding: 4rem 0;
}

.services-section h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	text-align: center;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.service-card {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	padding: 2rem;
	text-align: center;
	text-decoration: none;
	color: var(--text-light);
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.service-card:hover {
	transform: translateY(-10px);
	background: var(--card-hover);
	box-shadow: var(--shadow-hover);
	border-color: rgba(255, 255, 255, 0.3);
}

.service-card:nth-child(1) {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.service-card:nth-child(2) {
	background: linear-gradient(135deg, rgba(250, 112, 154, 0.2), rgba(254, 225, 64, 0.2));
}

.service-card:nth-child(3) {
	background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
}

.service-card:nth-child(4) {
	background: linear-gradient(135deg, rgba(168, 237, 234, 0.2), rgba(254, 214, 227, 0.2));
}

.service-card:nth-child(5) {
	background: linear-gradient(135deg, rgba(245, 87, 108, 0.2), rgba(240, 147, 251, 0.2));
}

.service-icon {
	font-size: 3rem;
	margin-bottom: 0.5rem;
}

.service-card h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
}

.service-card p {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin: 0;
}

/* Map Section */
.map-section {
	padding: 4rem 0;
}

.map-section h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	text-align: center;
	background: var(--orange-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

#map {
	height: 500px;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-marker {
	background: transparent;
	border: none;
}

.marker-pin {
	width: 30px;
	height: 30px;
	background: var(--primary-gradient);
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
	position: relative;
}

.marker-pin::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 12px;
	height: 12px;
	background: white;
	border-radius: 50%;
}

/* Lightbox */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.lightbox[aria-hidden="false"] {
	display: flex;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
	color: var(--text-light);
	margin-top: 1rem;
	font-size: 1.1rem;
	text-align: center;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: var(--text-light);
	font-size: 3rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

/* Footer */
#footer {
	background: rgba(26, 26, 46, 0.95);
	padding: 2rem 0;
	margin-top: 4rem;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer p {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	body {
		font-size: 14px;
	}

	.container {
		padding: 0 15px;
	}

	#header .container {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
		position: relative;
	}

	#header #logo {
		flex: 1;
	}

	.menu-toggle {
		display: flex;
		position: absolute;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		margin: 0;
		padding: 0.75rem;
		min-width: 48px;
		min-height: 48px;
	}

	#menu {
		position: relative;
		width: auto;
	}

	#menu ul {
		display: none;
		flex-direction: column;
		width: 100%;
		margin-top: 0;
		gap: 0.5rem;
		position: absolute;
		top: 100%;
		right: 0;
		background: rgba(26, 26, 46, 0.98);
		backdrop-filter: blur(10px);
		padding: 1rem;
		border-radius: 10px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
		margin-top: 0.5rem;
		min-width: 200px;
		z-index: 1000;
	}

	#menu ul[aria-expanded="true"],
	#menu ul.open {
		display: flex;
	}

	#menu a {
		padding: 0.75rem 1rem;
		width: 100%;
		text-align: left;
	}

	.hero {
		padding: 2rem 0;
		margin: 1rem 0;
		border-radius: 15px;
	}

	.hero h2 {
		font-size: 1.8rem;
	}

	.hero p {
		font-size: 1rem;
	}

	.services-section h2,
	.gallery-section h2,
	.map-section h2 {
		font-size: 2rem;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.carousel-btn {
		width: 50px;
		height: 50px;
		font-size: 2.5rem;
	}

	.carousel-prev {
		left: 10px;
	}

	.carousel-next {
		right: 10px;
	}

	.carousel-link img {
		max-height: 400px;
	}

	.service-card {
		padding: 1.5rem;
	}

	#map {
		height: 300px;
	}

	.lightbox-content {
		padding: 1rem;
	}

	.lightbox-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 2rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1025px) {
	.services-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
	outline: 2px solid var(--text-light);
	outline-offset: 2px;
}
