:root {
	--bg-color: #f9fafb;
	--header-bg-rgb: 255, 255, 255;
	--text-color: #111827;
	--accent-color: #FB7C3C;
	--secondary-color: #2B6CB0;
	--footer-bg-rgb: 255, 255, 255;
	--form-bg: #EDF2F7;
	--form-bg-rgb: 237, 242, 247;
	--input-bg: #E2E8F0;
	--input-bg-darker: #CBD5E0;
	--input-border: #CBD5E0;
	--button-bg: #FB7C3C;
	--button-hover: #F5651E;
	--shadow-color: rgba(0, 0, 0, 0.8);
	--link-color: #FB7C3C;
	--link-hover: #1A4971;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #000000;
		--header-bg-rgb: 17, 24, 39;
		--text-color: #e2e8f0;
		--accent-color: #D46A2C;
		--secondary-color: #4A90E2;
		--footer-bg-rgb: 17, 24, 39;
		--form-bg: #0d1117;
		--form-bg-rgb: 13, 17, 23;
		--input-bg: #374151;
        --input-bg-darker: #0d1117;
		--input-border: #718096;
		--button-bg: #D46A2C;
		--button-hover: #C14A14;
		--shadow-color: rgba(255, 255, 255, 0.5);
		--link-color: #D46A2C;
		--link-hover: #6B7280;
	}
}

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

html, body {
	height: 100%;
	margin: 0;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: 'Helvetica Neue', Verdana;
	line-height: 1.7;
	padding: 0;
	position: relative;
	overflow-x: hidden;
}

.wrapper {
    position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
    z-index: 1;
}

.content-wrapper {
	flex: 1;
}

canvas#particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	pointer-events: none;
	display: block;
}

/* Optional: Leucht-Effekt für die Partikel */
.particle-glow {
	filter: drop-shadow(0 0 6px var(--accent-color));
}

@keyframes animatedGradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

header {
	background-color: rgba(var(--header-bg-rgb, 255, 255, 255), 0.5);
	backdrop-filter: blur(4px);
	padding: 1.5rem 2rem;
	box-shadow: 0 4px 8px var(--shadow-color);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: padding 0.75s ease, box-shadow 0.75s ease;
	display: grid;
	grid-template-areas: "logo nav";
	grid-template-columns: auto 1fr;
	grid-template-rows: auto 1fr;
	align-items: center;
	border-radius: 0 0 20px 20px;
}

#logo {
	display: flex;
	align-items: center;
	gap: 25px;
}

header #logo img {
	height: 100px;
	filter: drop-shadow(2px 2px 4px var(--shadow-color));
	transition: all 1.0s ease;
}

header.shrunk {
	padding: 0rem 1rem;
}

header.shrunk #logo {
	gap: 15px;
	transition: all 1.0s ease;
}

header.shrunk #logo img {
	margin-left: 5rem;
	height: 50px;
	transition: all 1.0s ease;
}

header.shrunk #title {
	font-size: 2rem;
	transition: font-size 1.0s ease;
}

header.shrunk nav {
	margin: 1.5rem 0;
}

header #title {
	grid-area: logo;
	font-size: 4rem;
	font-weight: bold;
	color: var(--accent-color);
	display: flex;
	align-items: center;
	gap: 2rem;
/*	margin: 0;*/
	transition: font-size 1.0s ease;
	filter: drop-shadow(2px 2px 4px var(--shadow-color));
}

#userbar {
	align-items: center;
	gap: 1rem;
	font-size: 0.9rem;
	margin: 0;
	position: absolute;
	top: 0.5rem;
	right: 2rem;
}

nav {
	grid-area: nav;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: 0px solid var(--input-border);
}

nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

nav a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 600;
	padding: 0.6rem 1.2rem;
	border-radius: 20px;
	transition: all 0.5s ease-in-out;
}

nav a:hover {
	background-color: var(--accent-color);
	color: #FFFFFF;
	transform: translateY(-2px);
}

nav li.active a {
	background-color: var(--accent-color);
	color: #FFFFFF;
}

#navToggle {
	grid-area: nav;
	justify-self: end;
	display: none;
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--text-color);
	cursor: pointer;
}

#navToggle button:hover {
	box-shadow: 0 0px 0px rgba(251, 124, 60, 0.3);
}

a {
	color: var(--link-color);
	text-decoration: none;
	position: relative;
	transition: all 0.5s ease-in-out;
}

a:hover {
	color: var(--link-hover);
}

.content-container {
    position: relative;
	width: 100%;
	max-width: min(1200px, calc(100% - 10rem));
	margin: 3rem auto;
	padding: 1rem;
	background-color: rgba(var(--header-bg-rgb, 255, 255, 255), 0.6);
	border-radius: 20px;
	box-shadow: 0 6px 20px var(--shadow-color);
	animation: fadeIn 0.5s ease;
	z-index: 2;
}

article h1 {
	font-size: 3rem;
	color: var(--accent-color);
	text-align: center;
	margin-bottom: 1rem;
	transition: font-size 1.0s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(5rem); }
	to { opacity: 1; transform: translateY(0); }
}

#support_form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.5rem 2rem;
	width: min(800px, calc(100% - 10rem));
	margin: 0 auto;
}

#support_form > .form-group {
	width: 100%;
	text-align: center;
}

.form-group.form-group-full-width-center {
	display: flex;
	width: 100%;
	flex-basis: auto;
	flex-grow: 0;
	justify-content: center;
}

.form-group label {
	display: block;
	color: var(--text-color);
	width: 100%;
	text-align: center;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
	width: 100%;
	border: 1px solid var(--input-border);
	border-radius: 20px;
	color: var(--text-color);
	font-size: 1rem;
	transition: all 0.5s ease-in-out;
	text-align: center;
	text-align-last: center; 
	padding: 10px 15px;
    background: linear-gradient(to bottom, var(--input-bg), var(--input-bg-darker));
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
    box-shadow: inset 0 0 3px var(--shadow-color);
}

.form-group input:focus, .form-group select:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 8px rgba(251, 124, 60, 0.2);
}

.form-group.color-picker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0rem 1rem; 
	flex-wrap: wrap;
	margin-bottom: 0;
	flex-direction: column;
	flex: 0 0 calc(50% - 1rem);
	max-width: calc(50% - 1rem);
	text-align: center;
}

.selectWrapper {
	width: 100%;
	border-radius: 20px;
	display: inline-block;
	overflow: hidden;
	background: var(--input-bg);
	border: 1px solid var(--input-border);
}

.selectWrapper select {
	background-color: var(--input-bg);
	color: var(--text-color);
	border: 1px solid var(--input-border);
	width: 100%;
	border-radius: 20px;
	vertical-align: middle;
}

button:not(#navToggle) {
	background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
	color: #FFFFFF;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 20px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.5s ease-in-out;
}

button:not(#navToggle):hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(251, 124, 60, 0.3);
}

/* Socials */
.social-links {
	display: flex;
	justify-content: center;
	gap: 15px;
	align-items: center;
	width: 100%;
	flex-wrap: wrap;
	margin-top: 20px;
}

.social-button {
	display: flex;
	align-items: center;
	background-color: var(--input-bg);
	color: var(--text-color);
	font-size: 1.25rem;
	font-weight: bold;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: 0.5s ease-in-out;
}

.social-button img {
	width: 24px;
	height: 24px;
	margin-right: 10px;
}

.social-button:hover {
	transform: translateY(-10px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	background-color: var(--accent-color);
	transition: all 0.3s ease-in-out;
}

.linkedin { border-left: 10px solid #0077B5; }
.xing { border-left: 10px solid #026466; }
.github { border-left: 10px solid #333; }

social_link {
	vertical-align: top;
}

/* Projektseite */
.projects, .contact_form {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	justify-content: center;
}

.project-card {
	padding: 10px;
	background-color: rgba(var(--form-bg-rgb, 255, 255, 255), 0.6);
	border-radius: 20px;
	box-shadow: 0 4px 8px rgba(var(--shadow-color), 0.2);
	width: 25rem;
	text-align: center;
	transition: transform 0.5s ease-in-out;
	display: flex;
	flex-direction: column;
	min-height: 10rem;
	justify-content: space-between;
	
}

.project-card:hover {
	transform: scale(1.1);
}

.project-title {
	font-size: 1.5rem;
	font-weight: bold;
}

.project-description {
	font-size: 0.9rem;
	color: var(--text-color);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 25px 0;
}

.project-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: auto;
	font-weight: bold;
}

.project-links a {
	display: inline-block;
	gap: 10px;
	justify-content: center;
	padding: 10px;
	border-radius: 10px;
	background: var(--button-bg);
	color: var(--text-color);
	text-decoration: none;
	width: 160px;
}

.project-links a:hover, .social-button:hover {
	background: var(--button-hover);
	color: var(--text-hover);
	transition: background-color ease-in-out 0.5s, color ease-in-out 0.5s;
}

.projectimages {
	max-width: 300px;
}

code {
	background: var(--container-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', Courier, monospace;
}

/* Screenshot Section */
.screenshot-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin: 2rem 0;
	padding: 16px;
	background: var(--form-bg);
	border-radius: 8px;
	box-shadow: 0 4px 12px var(--shadow-color);
}

.screenshot-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.screenshot-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px var(--shadow-color);
}

.screenshot-item img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--accent-color);
	border-radius: 8px;
}

.screenshot-caption {
	font-size: 0.9rem;
	color: var(--text-color);
	text-align: center;
	padding: 12px 8px;
	background: rgba(0, 0, 0, 0.05);
	border-top: 1px solid var(--accent-color);
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: opacity 0.3s ease;
}

.overlay img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
	border: 2px solid var(--border-color);
	box-shadow: 0 8px 32px var(--shadow-color);
}

.overlay-close {
	position: absolute;
	top: 100px;
	right: 20px;
	background: var(--accent-color);
	color: var(--text-color);
	border: none;
	font-size: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background 0.3s ease;
}

.overlay-close:hover {
	background: var(--accent-hover);
}


footer {
    position: relative;
    z-index: 2;
	background-color: rgba(var(--footer-bg-rgb, 255, 255, 255), 0.6);
	padding: 2rem;
	text-align: center;
	border-top: 1px solid var(--input-border);
}

.footer-links a {
	margin: 0 1rem;
	color: var(--text-color);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--accent-color);
}

@media (max-width: 768px) {
	body {
		font-size: 0.95rem;
	}

	article h1 {
		font-size: 1.4rem;
	}

	header {
		padding: 0;
		flex-direction: column;
		text-align: center;

		display: grid;
		grid-template-areas:
			"logo toggle";
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 0rem;
	}

	header.shrunk {
		display: grid;
		grid-template-areas:
		"logo toggle";
		grid-template-columns: 1fr auto;
		align-items: center;
	}
	
	header #logo {
		margin: 1rem auto;
	}

	header #title {
		grid-area: logo;
		font-size: 2.5rem;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 0;
		padding: 0;
	}

	header.shrunk #title {
		font-size: 1.6rem;
	}

	header #logo img {
		height: 50px;
	}

	header.shrunk #logo img {
		margin-left: 0;
		height: 25px;
	}

	#navToggle {
		display: block;
		grid-area: toggle;
		position: static;
		justify-self: end;
		margin-right: 1rem;
		font-size: 2rem;
	}

	#navToggle button:hover {
		box-shadow: 0 0px 0px rgba(251, 124, 60, 0.3);
	}

	header.shrunk #navToggle {
		grid-area: unset;
		position: relative;
		justify-self: end;
		margin-right: 0rem;
		font-size: 2rem;
	}
	
	nav {
		grid-area: unset;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		transition: max-height 0.3s ease, opacity 0.3s ease;
		overflow: hidden;
		max-height: 0;
		opacity: 0;
		display: flex; /* oder block – je nach Layout */
		flex-direction: column;
	}
	
	nav.show {
		max-height: 500px;
		opacity: 1;
	}

	nav ul {
		flex-direction: column;
		width: 100%;
		gap: 1rem;
	}

	nav ul li {
		width: 100%;
		text-align: center;
	}

	nav a {
		display: block;
		width: 100%;
		padding: 1rem 0;
	}

	.content-container {
		width: auto;
		max-width: none;
		margin: 1.5rem;
		padding: 1.5rem;
	}
	
	.social-links {
		flex-direction: column;
		align-items: stretch; /* Buttons volle Breite */
	}
	
	.social-button {
		justify-content: center;
		width: 100%; /* oder z. B. 90% für etwas Abstand zum Rand */
		max-width: 300px;
		margin: 0 auto;
	}
	
	#support_form {
		width: 100%;
		margin: 0 auto;
	}

}
