/* Smart Home Steuerung - CSS */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	color: #333;
}

header {
	background: rgba(255, 255, 255, 0.95);
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
	color: #667eea;
	font-size: 2.5em;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

nav {
	background: rgba(255, 255, 255, 0.9);
	padding: 15px;
	margin: 20px auto;
	max-width: 1200px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ol {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

nav ol li a {
	text-decoration: none;
	color: #667eea;
	padding: 10px 20px;
	border-radius: 25px;
	background: rgba(102, 126, 234, 0.1);
	transition: all 0.3s ease;
	display: inline-block;
	font-weight: 600;
}

nav ol li a:hover {
	background: #667eea;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

section {
	background: rgba(255, 255, 255, 0.95);
	margin-bottom: 30px;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	scroll-margin-top: 20px;
}

section h2 {
	color: #667eea;
	font-size: 2em;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 3px solid #667eea;
}

section > div {
	display: inline-block;
	width: calc(50% - 20px);
	margin: 10px;
	padding: 20px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border-radius: 10px;
	text-align: center;
	vertical-align: top;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section > div:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

section > div h3 {
	color: #764ba2;
	font-size: 1.5em;
	margin-bottom: 15px;
}

section > div img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	margin: 15px 0;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
	transition: transform 0.3s ease;
}

section > div:hover img {
	transform: scale(1.1);
}

section > div p {
	font-size: 1.2em;
	color: #555;
	font-weight: 600;
	margin-top: 10px;
}

/* Light ON styling */
section div:has(img[alt*="Licht an"]) {
	background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%) !important;
}

/* Light OFF styling */
section div:has(img[alt*="Licht aus"]) {
	background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%) !important;
}

/* High temperature styling */
section div:has(img[alt*="hoch"]) {
	background: linear-gradient(135deg, #fab1a0 0%, #ff7675 100%) !important;
}

/* Low temperature styling */
section div:has(img[alt*="niedrig"]) {
	background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
}

footer {
	background: rgba(255, 255, 255, 0.95);
	padding: 20px;
	text-align: center;
	margin-top: 40px;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
	section > div {
		width: 100%;
		margin: 10px 0;
	}
	
	nav ol {
		flex-direction: column;
		align-items: center;
	}
	
	header h1 {
		font-size: 1.8em;
	}
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}
