/* 
 * Dellentechnik PT - Adler Style (Red/Black/White) Theme CSS
 */

:root {
	--primary-color: #E60000; /* Aggressive Red */
	--primary-hover: #CC0000;
	--bg-dark: #111111; /* Deep Black */
	--bg-light: #F8F9FA;
	--text-main: #333333;
	--text-light: #FFFFFF;
	--border-color: #EEEEEE;
	
	--font-primary: 'Inter', sans-serif;
	--font-heading: 'Outfit', sans-serif;
}

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

body {
	background-color: var(--bg-light);
	color: var(--text-main);
	font-family: var(--font-primary);
	line-height: 1.6;
	font-size: 16px;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.1;
	margin-bottom: 1rem;
	color: var(--bg-dark);
}

.text-white { color: var(--text-light); }
.text-red { color: var(--primary-color); }

.bg-red-highlight {
	background-color: var(--primary-color);
	color: var(--text-light);
	padding: 0 10px;
	display: inline-block;
}

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

a:hover {
	color: var(--bg-dark);
}

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

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 0; /* Sharp edges for aggressive look */
	font-family: var(--font-heading);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	white-space: nowrap;
}

.btn-large {
	padding: 18px 40px;
	font-size: 1.2rem;
}

.btn-primary {
	background-color: var(--primary-color);
	color: var(--text-light);
}

.btn-primary:hover {
	background-color: var(--bg-dark);
	color: var(--text-light);
}

.btn-outline {
	background-color: transparent;
	color: var(--text-light);
	border-color: var(--text-light);
}

.btn-outline:hover {
	background-color: var(--text-light);
	color: var(--bg-dark);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Header */
.site-header {
	background-color: rgba(17, 17, 17, 0.98);
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 10px 0;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px; /* Wider for new menu items */
}

.logo-img {
	max-height: 90px;
	width: auto;
	display: block;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 15px; /* Reduced gap */
}

.main-navigation ul li {
	position: relative;
}

/* Dropdown (Sub-menu) Desktop */
.main-navigation ul .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: rgba(17, 17, 17, 0.98);
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
	min-width: 240px;
	padding: 15px 0;
	z-index: 1000;
	flex-direction: column;
	border-top: 3px solid var(--primary-color);
	gap: 0;
}

.main-navigation ul li:hover > .sub-menu {
	display: flex;
}

.main-navigation ul .sub-menu li a {
	padding: 10px 20px;
	display: block;
	font-size: 0.9rem;
	text-transform: none;
	white-space: normal;
	font-weight: 400;
}

.main-navigation ul .sub-menu li a:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--primary-color);
}

.main-navigation a {
	color: var(--text-light);
	font-weight: 700;
	font-size: 0.9rem; /* Reduced font size */
	text-transform: uppercase;
	position: relative;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
	color: var(--primary-color);
}

/* Arrow indicator */
.main-navigation ul li.menu-item-has-children > a::after {
	content: ' ▼';
	font-size: 0.6em;
	vertical-align: middle;
	margin-left: 6px;
	color: #999;
}

.header-cta {
	display: flex;
	gap: 15px;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--text-light);
	font-size: 1.5rem;
}

/* Diagonal Layout Utilities */
.diagonal-bottom {
	clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
	padding-bottom: 120px !important;
}

.diagonal-top {
	clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
	margin-top: -80px;
	padding-top: 150px !important;
}

/* Hero Section */
.hero-section {
	position: relative;
	z-index: 10;
	padding: 110px 0 160px;
	background: url('../images/hero-bg.jpg') center/cover no-repeat;
	background-attachment: fixed;
	background-color: var(--bg-dark); /* Fallback */
}

.hero-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(90deg, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.6) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.hero-inserted-logo {
	max-width: 580px;
	width: 100%;
	height: auto;
	margin-top: -30px;
	margin-bottom: 10px;
	display: block;
	opacity: 0; /* Starts invisible */
	animation: heroLogoSpin 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroLogoSpin {
	0% {
		opacity: 0;
		transform: perspective(1000px) rotateY(-360deg) scale(0.5);
		filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.8));
	}
	60% {
		opacity: 1;
		transform: perspective(1000px) rotateY(0deg) scale(1.05);
		filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
	}
	100% {
		opacity: 1;
		transform: perspective(1000px) rotateY(0deg) scale(1);
		filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
	}
}

.hero-badge {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--text-light);
	padding: 8px 16px;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 15px;
}

.hero-title {
	font-size: 3.5rem;
	margin-bottom: 15px;
	color: var(--text-light);
	line-height: 1.1;
}

.hero-subtitle {
	font-size: 1.2rem;
	color: #CCCCCC;
	margin-bottom: 30px;
	max-width: 750px;
	font-weight: 300;
	text-wrap: balance;
}

.hero-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
}

/* Sections General */
section {
	padding: 100px 0;
}

.section-title {
	font-size: 3rem;
	margin-bottom: 20px;
}

.title-separator {
	height: 5px;
	width: 80px;
	background-color: var(--primary-color);
	margin-bottom: 40px;
}

/* USPs / Features Grid */
.usps-section {
	position: relative;
	background-color: var(--bg-dark);
}

.usps-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(17,17,17,0.88);
	z-index: 1;
}

.usps-content {
	position: relative;
	z-index: 2;
}

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

.usp-card {
	background-color: rgba(26, 26, 26, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 40px 30px;
	border-left: 5px solid var(--primary-color);
	border-right: 1px solid rgba(255,255,255,0.05);
	border-top: 1px solid rgba(255,255,255,0.05);
	border-bottom: 1px solid rgba(255,255,255,0.05);
	box-shadow: 0 15px 35px rgba(0,0,0,0.5);
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.usp-card:hover {
	transform: translateY(-8px);
	background-color: rgba(26, 26, 26, 0.85);
}

.usp-icon {
	font-size: 3rem;
	color: var(--text-light);
	margin-bottom: 20px;
}

.usp-card h3 {
	font-size: 1.3rem;
	color: var(--text-light);
}

.usp-card p {
	color: #CCCCCC;
}

/* Content Grid (About/Techniken) */
.content-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.content-image-wrapper {
	position: relative;
}

.content-image-wrapper::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	width: 100%;
	height: 100%;
	border: 5px solid var(--primary-color);
	z-index: 0;
}

.image-box {
	position: relative;
	z-index: 1;
	background-color: var(--bg-dark);
	height: 450px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
}

.check-list {
	list-style: none;
	margin-top: 30px;
}

.check-list li {
	margin-bottom: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
}

.check-list li::before {
	content: '✓';
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-right: 15px;
	font-weight: 900;
}

/* Dark Section (Services) */
.dark-section {
	background-color: var(--bg-dark);
	color: var(--text-light);
}

.dark-section .section-title {
	color: var(--text-light);
}

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

.service-card {
	background-color: #1A1A1A;
	padding: 50px 40px;
	text-align: center;
	border: 1px solid #333333;
	transition: all 0.3s ease;
}

.service-card:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.service-card:hover h3, .service-card:hover p, .service-card:hover .service-icon {
	color: var(--text-light);
}

.service-icon {
	font-size: 4rem;
	color: var(--primary-color);
	margin-bottom: 20px;
	transition: color 0.3s ease;
}

.service-card h3 {
	color: var(--text-light);
}

.service-card p {
	color: #AAAAAA;
}

/* Process Section */
.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
}

.process-step {
	text-align: center;
	padding: 30px;
	position: relative;
}

.step-number {
	width: 70px;
	height: 70px;
	background-color: var(--primary-color);
	color: var(--text-light);
	font-size: 2rem;
	font-family: var(--font-heading);
	font-weight: 900;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: -65px auto 20px;
	border: 5px solid rgba(26, 26, 26, 0.8);
}

/* FAQ */
.faq-accordion {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 15px;
}

.faq-question {
	padding: 25px;
	margin: 0;
	cursor: pointer;
	font-size: 1.2rem;
}

.faq-answer {
	padding: 0 25px 25px;
	color: #CCCCCC;
	display: none;
}

/* Page Header (for inner pages) */
.page-header {
	padding: 180px 0 100px;
	background-color: var(--bg-dark);
	text-align: center;
}

.page-title {
	color: var(--text-light);
	font-size: 3.5rem;
	margin: 0;
}

/* Footer */
.site-footer {
	background-color: var(--bg-dark);
	padding-top: 100px;
	color: var(--text-light);
}

.site-footer .title-separator {
	margin-bottom: 25px;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 50px;
	margin-bottom: 60px;
}

.widget-title {
	font-size: 1.5rem;
	color: var(--text-light);
}

.footer-widget p {
	color: #AAAAAA;
}

.footer-widget ul {
	list-style: none;
}

.footer-widget ul li {
	margin-bottom: 15px;
	color: #AAAAAA;
}

.footer-widget ul li a {
	color: #AAAAAA;
}

.footer-widget ul li a:hover {
	color: var(--primary-color);
}

.site-info {
	border-top: 1px solid #333;
	padding: 30px 0;
	text-align: center;
	color: #666;
}

/* Responsive */
@media (max-width: 992px) {
	.hero-title { font-size: 3rem; }
	.content-grid { grid-template-columns: 1fr; }
	.header-cta { display: none; }
	
	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--bg-dark);
		flex-direction: column;
		padding: 30px 20px;
		border-top: 1px solid #333;
		gap: 15px;
	}
	
	.main-navigation.toggled ul {
		display: flex;
	}
	
	/* Dropdown Mobile Fix */
	.main-navigation ul .sub-menu {
		position: static;
		display: flex !important;
		box-shadow: none;
		border-top: none;
		padding: 10px 0 0 15px;
		background: transparent;
		gap: 5px;
	}
	
	.main-navigation ul li.menu-item-has-children > a::after {
		display: none;
	}
	
	.menu-toggle {
		display: block;
	}
}

@media (max-width: 768px) {
	.hero-title { font-size: 2.2rem; }
	.hero-buttons { flex-direction: column; }
	
	/* Disable parallax on mobile (iOS bug prevention) and fix overlaps */
	.hero-section {
		background-attachment: scroll !important;
		padding-bottom: 80px !important;
	}
	
	.parallax-wrapper, .parallax-wrapper-2 {
		background-attachment: scroll !important;
	}
	
	.parallax-wrapper {
		margin-top: 0 !important;
		padding-top: 60px !important;
	}
	
	/* Remove diagonal cuts on mobile to save space and fix layout */
	.diagonal-bottom { clip-path: none; }
	.diagonal-top { clip-path: none; margin-top: 0; padding-top: 60px !important; }
	
	.page-title { font-size: 2.5rem; }
	
	/* Adjust cards on mobile */
	.usp-card {
		padding: 30px 20px;
	}
}
