/* ============================================================
 N EON SPACE DESIGN - INFINITE BACKGROUND VERS*ION
 ============================================================ */

/* 1. GRUNDGERÜST (Hintergrund erstreckt sich über alles) */
html, body {
	margin: 0 !important;
	padding: 0 !important;
	height: 100vh !important;
	width: 100vw !important;
	background-color: #050208 !important;
	color: #e0e0e0 !important;
	font-family: 'Segoe UI', Roboto, sans-serif;
	overflow: hidden;
}

body {
	background-image:
	radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
	radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
	url('https://www.transparenttextures.com/patterns/stardust.png') !important;
	background-attachment: fixed !important;

	/* ÄNDERUNG HIER: auto sorgt dafür, dass das Muster nicht aufgebläht wird */
	background-size: auto !important;

	/* Sorgt dafür, dass das Muster sich sauber wiederholt ohne Lücken */
	background-repeat: repeat !important;
}

/* 2. LAYOUT GRID */
.layout {
	display: grid;
	grid-template-rows: 60px 1fr auto;
	grid-template-columns: auto 1fr auto;
	height: 100vh;
	width: 100vw;
}

/* 3. HEADER & FOOTER (Hintergrund und Linien entfernt) */
.header {
	grid-column: 1 / 4;
	background: transparent !important;
	border-bottom: none !important;
	//display: flex;
	align-items: center;
	padding: 0 20px;
	box-shadow: none !important;
}

.footer {
	grid-column: 1 / 4;
	background: transparent !important;
	border-top: none !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	font-size: 0.8em;
}

/* 4. SIDEBARS (Hintergrund und Linien entfernt) */
.nav-left, .nav-right {
	background: transparent !important;
	padding: 20px 10px;
	border: none !important;
}

/* 5. MENÜ-EFFEKTE */
.footer ul, .nav-left ul, .nav-right ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.footer a, .nav-left a, .nav-right a {
	display: block;
	padding: 12px 15px;
	margin-bottom: 8px;
	color: #e0e0e0 !important;
	text-decoration: none !important;
	border-radius: 6px;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid transparent;
}

.nav-left a:hover {
	background: rgba(255, 0, 255, 0.2) !important;
	border-color: #ff00ff !important;
	color: #fff !important;
	box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
	transform: translateX(5px);
}

.nav-right a:hover {
	background: rgba(0, 212, 255, 0.2) !important;
	border-color: #00d4ff !important;
	color: #fff !important;
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.footer a:hover {
	background: rgba(0, 212, 255, 0.2) !important;
	border-color: #00d4ff !important;
	color: #fff !important;
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.nav-left a.active {
	background: rgba(138, 43, 226, 0.4) !important;
	border-left: 4px solid #00d4ff !important;
	color: #fff !important;
}

.footer a.active {
	background: rgba(138, 43, 226, 0.4) !important;
	border-left: 4px solid #00d4ff !important;
	color: #fff !important;
}

/* Spezieller Style nur für den Kontakt-Link im Footer */
.footer a[href*="kontakt"] {
	border-color: #00d4ff !important;
	box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
	font-weight: bold;
}

/* 6. CONTENT BEREICH (Transparent) */
.main {
	grid-column: 2;
	padding: 30px;
	overflow-y: auto;
	background: transparent !important;
}

/* Scrollbar Styling */
.main::-webkit-scrollbar { width: 6px; }
.main::-webkit-scrollbar-thumb { background: #8a2be2; border-radius: 10px; }

/* 7. TABELLEN & TEXT (Inhalt bleibt lesbar durch Glas-Effekt in den Zellen) */
h1, h2 {
	//position: center;
	color: #ffffff !important;
	text-shadow: 0 0 10px #ff00ff, 0 0 20px #8a2be2 !important;
	text-transform: uppercase;
	letter-spacing: 3px;
}

table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 10px !important;
}

td {
	background: rgba(20, 10, 30, 0.6) !important; /* Leicht transparent für Tiefe */
	padding: 15px !important;
	border: none !important; /* Linien entfernt */
	color: #fff !important;
}

td:first-child { border-radius: 10px 0 0 10px; }
td:last-child { border-radius: 0 10px 10px 0; }

/* ============================================================
 *  MOBILE OPTIMIERUNG
 *  ============================================================ */

@media (max-width: 800px) {
	html, body {
		overflow: auto; /* Erlaube Scrollen auf dem Handy */
		height: auto;
	}

	.layout {
		display: flex;
		flex-direction: column; /* Alles untereinander stapeln */
		height: auto;
		width: 100%;
	}

	/* Sidebars und Main auf volle Breite setzen */
	.main {
		grid-column: auto;
		width: 100%;
		padding: 15px;
		box-sizing: border-box;
	}

	/* Sidebars und Main auf volle Breite setzen */
	.nav-left, .nav-right {
		grid-column: auto;
		width: fit-content;
		padding: 15px;
		box-sizing: border-box;
	}

	.main {
		order: 1; /* Der Content kommt zuerst */
	}

	.nav-left {
		order: 3; /* Menü links kommt danach */
	}

	.nav-right {
		order: 2; /* Menü rechts nach unten */
	}

	.footer {
		order: 4; /* Footer unten */
	}

	.header, .footer {
		position: relative;
		height: auto;
		padding: 20px;
	}

	/* Tabellen-Fix für Handy (verhindert horizontales Scrollen) */
	table, tr, td {
		display: block;
		width: 100% !important;
	}

	td {
		margin-bottom: 5px;
		border-radius: 10px !important;
	}
}
