/* ==========================================
   Modern CSS für Mittelmann GmbH
   Responsive Design mit Flexbox & Grid
   ========================================== */

/* ==========================================
   CSS Reset & Base Styles
   ========================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #6bb441;
	--primary-dark: #2DA975;
	--primary-light: #9EC379;
	--secondary-color: #C6DB14;
	--accent-color: #3AA563;
	--text-color: #333;
	--bg-light: #ecf0cd;
	--bg-white: #fff;
	--gray-light: #f5f5f5;
	--gray-border: #dfdfdf;
	--transition: all 0.3s ease;
}

html {
	font-size: 62.5%; /* 1rem = 10px */
	scroll-behavior: smooth;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 1.6rem;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-white);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}

h1 {
	font-size: 3.2rem;
	margin-bottom: 2rem;
}

h2 {
	font-size: 2.4rem;
	margin-top: 3rem;
}

h3 {
	font-size: 2rem;
}

p {
	margin-bottom: 1.5rem;
}

a {
	color: var(--primary-dark);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--accent-color);
}

a:visited {
	color: var(--primary-light);
}

/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
	background: linear-gradient(135deg, var(--bg-white) 0%, var(--gray-light) 100%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 1.5rem 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.logo img {
	height: 60px;
	width: auto;
	transition: var(--transition);
}

.logo img:hover {
	transform: scale(1.05);
}

.company-info {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.company-name {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0;
	line-height: 1.2;
}

.company-slogan {
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--text-color);
	margin: 0;
	line-height: 1.2;
	font-style: italic;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.mobile-menu-toggle span {
	width: 30px;
	height: 3px;
	background-color: var(--primary-color);
	margin: 4px 0;
	transition: var(--transition);
	border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Navigation */
.main-nav ul {
	display: flex;
	list-style: none;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.main-nav li {
	list-style: none;
}

.main-nav a {
	display: block;
	padding: 1rem 1.8rem;
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--text-color);
	border-radius: 8px;
	transition: var(--transition);
	position: relative;
}

.main-nav a:hover {
	background-color: var(--bg-light);
	color: var(--primary-color);
	transform: translateY(-2px);
}

.main-nav li.active a {
	background-color: var(--primary-color);
	color: white;
	font-weight: 600;
}

/* ==========================================
   Main Container
   ========================================== */
.main-container {
	flex: 1;
	width: 100%;
}

/* ==========================================
   Hero Section & Slideshow
   ========================================== */
.hero-section {
	background: linear-gradient(to bottom, var(--gray-light), var(--bg-white));
	padding: 4rem 0;
}

.slideshow {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	aspect-ratio: 32 / 9;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slide.active {
	opacity: 1;
	z-index: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================
   Content Section
   ========================================== */
.content-section {
	padding: 6rem 3rem;
	background-color: var(--bg-white);
}

.content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.content-main {
	background: white;
	padding: 4rem;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Services List */
.services-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin: 3rem 0;
}

.services-list li {
	background: linear-gradient(135deg, var(--bg-light) 0%, var(--gray-light) 100%);
	padding: 1.8rem 2.5rem;
	border-radius: 8px;
	border-left: 4px solid var(--primary-color);
	transition: var(--transition);
	font-size: 1.6rem;
}

.services-list li:hover {
	transform: translateX(10px);
	box-shadow: 0 4px 15px rgba(107, 180, 65, 0.2);
	border-left-color: var(--accent-color);
}

.services-list a {
	color: var(--text-color);
	font-weight: 500;
	display: block;
}

.services-list a:hover {
	color: var(--primary-color);
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
	background: linear-gradient(135deg, var(--bg-light) 0%, #d4e89e 100%);
	padding: 5rem 3rem 2rem 3rem;
	margin-top: auto;
}

.footer-cloud {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2rem 3rem;
	padding-bottom: 3rem;
	border-bottom: 2px solid rgba(107, 180, 65, 0.3);
}

.footer-cloud a {
	transition: var(--transition);
	display: inline-block;
}

.footer-cloud a:hover {
	transform: scale(1.1);
}

.footer-nav {
	max-width: 1200px;
	margin: 2rem auto 0;
	text-align: center;
}

.footer-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
}

.footer-nav li {
	list-style: none;
}

.footer-nav a {
	font-size: 1.4rem;
	color: var(--text-color);
	text-decoration: none;
	transition: var(--transition);
	padding: 0.5rem 1rem;
}

.footer-nav a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.level1 {
	font-size: 3rem;
	color: var(--accent-color);
	font-weight: 700;
}

.level2 {
	font-size: 2.4rem;
	color: var(--primary-dark);
	font-weight: 700;
}

.level3 {
	font-size: 2rem;
	color: #AAD1B3;
	font-weight: 600;
}

.level4 {
	font-size: 1.6rem;
	color: var(--primary-light);
	font-weight: 600;
}

/* ==========================================
   Forms & Inputs
   ========================================== */
input, select, textarea {
	width: 100%;
	padding: 1.2rem;
	font-size: 1.5rem;
	border: 2px solid var(--gray-border);
	border-radius: 8px;
	font-family: inherit;
	transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(107, 180, 65, 0.1);
}

textarea {
	resize: vertical;
	min-height: 150px;
}

/* Buttons */
button,
input[type="submit"],
.button {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
	color: white;
	padding: 1.2rem 3rem;
	font-size: 1.6rem;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: var(--transition);
	display: inline-block;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(107, 180, 65, 0.3);
}

button:active,
input[type="submit"]:active,
.button:active {
	transform: translateY(0);
}

/* ==========================================
   Messages & Alerts
   ========================================== */
.error {
	background-color: #ffe6e6;
	border-left: 4px solid #ff4444;
	padding: 1.5rem 2rem;
	margin-bottom: 2rem;
	border-radius: 8px;
	color: #c00;
}

.msg_send {
	background-color: var(--bg-light);
	border-left: 4px solid var(--primary-color);
	padding: 1.5rem 2rem;
	margin-bottom: 2rem;
	border-radius: 8px;
	color: var(--text-color);
}

/* ==========================================
   Team Sections
   ========================================== */
.team-links,
.team-rechts {
	width: 100%;
	padding: 2rem;
	margin-bottom: 3rem;
	border-left: 4px solid var(--secondary-color);
	border-radius: 8px;
	background: var(--gray-light);
}

.team-rechts {
	border-left: none;
	border-right: 4px solid var(--secondary-color);
}

.teamfoto-links,
.teamfoto-rechts {
	width: 100%;
	max-width: 300px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.teamfoto-links img,
.teamfoto-rechts img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================
   Utilities
   ========================================== */
.defloat {
	clear: both;
}

hr.article_separator {
	background-color: var(--secondary-color);
	height: 3px;
	border: none;
	margin: 3rem 0;
	width: 100px;
	border-radius: 2px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media screen and (max-width: 1024px) {
	.header-container {
		padding: 1.5rem 2rem;
	}
	
	.content-main {
		padding: 3rem 2rem;
	}
}

@media screen and (max-width: 768px) {
	html {
		font-size: 56.25%; /* 9px */
	}
	
	.mobile-menu-toggle {
		display: flex;
	}
	
	.header-container {
		flex-wrap: wrap;
	}
	
	.logo-area {
		gap: 1.5rem;
	}
	
	.company-name {
		font-size: 2rem;
	}
	
	.company-slogan {
		font-size: 1.4rem;
	}
	
	.main-nav {
		display: none;
		width: 100%;
		order: 3;
	}
	
	.main-nav.active {
		display: block;
	}
	
	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}
	
	.main-nav a {
		padding: 1.5rem 2rem;
		border-radius: 0;
		border-bottom: 1px solid var(--gray-border);
	}
	
	.slideshow {
		aspect-ratio: 4 / 3;
	}
	
	.content-section {
		padding: 4rem 2rem;
	}
	
	.content-main {
		padding: 2rem 1.5rem;
	}
	
	.services-list {
		grid-template-columns: 1fr;
	}
	
	h1 {
		font-size: 2.8rem;
	}
	
	h2 {
		font-size: 2.2rem;
	}
	
	.footer-cloud {
		gap: 1.5rem 2rem;
	}
}

@media screen and (max-width: 480px) {
	.header-container {
		padding: 1rem 1.5rem;
	}
	
	.logo img {
		height: 50px;
	}
	
	.logo-area {
		gap: 1rem;
		flex: 1;
	}
	
	.company-info {
		gap: 0.2rem;
	}
	
	.company-name {
		font-size: 1.8rem;
	}
	
	.company-slogan {
		font-size: 1.2rem;
	}
	
	.content-section {
		padding: 3rem 1.5rem;
	}
	
	.level1 {
		font-size: 2.4rem;
	}
	
	.level2 {
		font-size: 2rem;
	}
	
	.level3 {
		font-size: 1.8rem;
	}
	
	.level4 {
		font-size: 1.5rem;
	}
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
	.mobile-menu-toggle,
	.main-nav,
	.site-footer {
		display: none;
	}
	
	body {
		font-size: 12pt;
	}
	
	a {
		color: #000;
		text-decoration: underline;
	}
}
