/*
Theme Name: MX-Tech
Theme URI: https://mx-tech.de
Author: MX-Tech
Author URI: https://mx-tech.de
Description: Dunkles Tech-Theme passend zu den MX-Tech Elementor-Widgets. Bringt den Sticky-Header (Navigation), globale Styles und Schriften (Manrope + Space Grotesk) mit. Für Seiteninhalte das Template „Elementor Full Width" verwenden.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mx-tech
*/

/* ============================= Base ============================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #070B16;
	color: #B8C2D3;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: #4FA8FF; color: #F5F7FA; }

.site-content { display: block; }

/* Screenreader only */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ============================= Header ============================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(7,11,22,.72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(118,150,196,.11);
}
.site-header__inner {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 32px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Logo */
.site-logo {
	display: flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	font-family: 'Space Grotesk', sans-serif;
	line-height: 1;
}
.site-logo img { display: block; max-height: 40px; width: auto; }
.site-logo__mx {
	font-weight: 700;
	font-size: 29px;
	letter-spacing: .01em;
	color: #4FA8FF;
	white-space: nowrap;
}
.site-logo__tech {
	font-weight: 500;
	font-size: 29px;
	letter-spacing: .1em;
	color: #F5F7FA;
	white-space: nowrap;
}

/* Navigation */
.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 38px;
}
.primary-nav__list li { margin: 0; }
.primary-nav__list a {
	text-decoration: none;
	color: #B8C2D3;
	font-weight: 600;
	font-size: 16.5px;
	transition: color .2s;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	color: #F5F7FA;
}

/* CTA button */
.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #4FA8FF;
	color: #F5F7FA;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 28px;
	border-radius: 13px;
	box-shadow: 0 8px 20px -10px rgba(79,168,255,.38);
	transition: transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.header-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -10px rgba(79,168,255,.5);
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(118,150,196,.18);
	border-radius: 11px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: #F5F7FA;
	border-radius: 2px;
	transition: transform .25s, opacity .25s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================= Footer bar ============================= */
.site-footer-bar {
	position: relative;
	border-top: 1px solid rgba(118,150,196,.11);
	background: rgba(7,11,22,.6);
}
.site-footer-bar__inner {
	max-width: 1220px;
	margin: 0 auto;
	padding: 22px 32px;
	font-size: 13px;
	color: #6B7688;
}

/* ============================= Responsive ============================= */
@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: absolute;
		top: 90px;
		left: 0;
		right: 0;
		background: rgba(7,11,22,.97);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		border-bottom: 1px solid rgba(118,150,196,.11);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 32px 18px;
	}
	.primary-nav__list li { padding: 12px 0; border-bottom: 1px solid rgba(118,150,196,.08); }
	.primary-nav__list li:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
	.site-header__inner { padding: 0 18px; gap: 12px; }
	.header-cta { padding: 12px 18px; font-size: 15px; }
	.site-logo__mx, .site-logo__tech { font-size: 24px; }
}
