:root {
	--bg-color: #f9fafb;
	--header-bg-rgb: 255, 255, 255;
	--module-bg: rgba(235, 235, 235, 0.3);
	--table-th: rgba(240, 242, 245, 0.95);
	--table-th-text: #4c5c77;
	--table-text: #2b2b2b;

	--table-bg-odd: rgba(248, 250, 252, 0.8);
	--table-bg-even: rgba(235, 238, 243, 0.7);

	--text-color: #111827;
	--text-muted: #383c47;
	--accent-color: #FB7C3C;
	--accent-color-rgb: 251, 124, 60;
	--accent-color-dark: #D46A2C;
	--accent-color-dark-rgb: 212, 106, 44;
	--secondary-color: #2B6CB0;
	--caption-color: #555;
	--footer-bg: 255, 255, 255;
	--form-bg: #EDF2F7;
	--input-bg: rgba(226, 232, 240, 0.8);
	--input-bg-darker: rgba(203, 213, 224, 0.4);
	--input-border: #CBD5E0;

	--gradiant-light: rgba(240, 240, 240, 0.1);
	--gradiant-dark: rgba(203, 213, 224, 0.8);

	--suggestions-bg: rgba(236, 240, 241, 0.4);
	--suggestions-text: #000000;

	--button-bg: #FB7C3C;
	--button-text: #FFFFFF;
	--button-hover: #F5651E;
	--button-delete-bg: #9B2C2C;
	--button-delete-hover: #7B1F1F;
	--button-delete-text: #FFFFFF;

	--shadow-color: rgba(200, 200, 200, 0.4);
	--shadow-color-wide: rgba(200, 200, 200, 0.1);

	--link-color: #FB7C3C;
	--link-hover: #1A4971;

	--message-success-bg: #C6F6D5;
	--message-success-color: #276749;
	--message-error-bg: #FED7D7;
	--message-error-color: #9B2C2C;

	--infobox: #FFF3CD;
	--infobox-border: #FFEAA7;
	--infobox-color: #856404;

	--border-radius: 20px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #000000;
		--header-bg-rgb: 25, 25, 25;
		--module-bg: rgba(60, 60, 60, 0.3);
		--table-th: rgba(45, 45, 55, 0.95);
		--table-th-text: #afafaf;
		--table-text: #767676;

		--table-bg-odd: rgba(55, 55, 70, 0.6);
		--table-bg-even: rgba(35, 35, 45, 0.7);

		--text-color: #808080;
		--text-muted: #424242;

		--accent-color: #A95422;
		--accent-color-rgb: 212, 106, 44;
		--accent-color-dark: #9C4F21;
		--accent-color-dark-rgb: 156, 79, 33;

		--secondary-color: #4A90E2;
		--caption-color: #a0a0a0;
		--footer-bg: 25, 25, 25;
		--form-bg: #0d1117;
		--input-bg: rgba(55, 65, 81, 0.8);
		--input-bg-darker: rgba(13, 17, 23, 0.4);
		--input-border: #718096;

		--gradiant-light: rgba(100, 100, 100, 0.1);
		--gradiant-dark: rgba(50, 50, 50, 0.8);
		
		--suggestions-bg: rgba(60, 60, 60, 0.4);
		--suggestions-text: #FFFFFF;

		--button-bg: #A95422;
		--button-text: #2c2c2c;
		--button-hover: #C14A14;
		--button-delete-bg: #7B1F1F;
		--button-delete-hover: #5B1515;
		--button-delete-text: #E2E8F0;

		--shadow-color: rgba(200, 200, 200, 0.1);
		--shadow-color-wide: rgba(200, 200, 200, 0.05);

		--link-color: #D46A2C;
		--link-hover: #FFFFFF;

		--message-success-bg: #2F855A;
		--message-success-color: #C6F6D5;
		--message-error-bg: #9B2C2C;
		--message-error-color: #FED7D7;

		--infobox: #4B2E0C;
		--infobox-border: #7F5A30;
		--infobox-color: #FFEAA7;
	}
}

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

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

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

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

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

.wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--bg-color);
}

.content-wrapper {
	flex: 1;
	position: relative;
	z-index: 1;
}

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

.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 ##### */

header {
	background-color: rgba(var(--header-bg-rgb), 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4x);
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 0 40px 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	z-index: 100;
	transition: all 0.75s ease;
	gap: 2rem;
	padding-top: 7px;
	background: transparent;
}

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

header #logo img {
	filter: drop-shadow(0px 8px 16px rgba(251, 124, 60, 0.5));
	height: 120px;
	transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header.shrunk {
	padding: 0.8rem 2rem;
}

header.shrunk #logo span {
	font-size: 2rem;
}

header.shrunk nav a {
	font-size: 0.8rem;
	gap: 1.8rem;
	padding: 0.5rem;
}

header.shrunk #navToggle {
	transform: scale(0.85);
}

header #title {
	grid-area: logo;
	font-size: 4rem;
	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));
}

nav {
	display: flex;
	gap: 1rem;
}

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

nav ul li {
	padding-left: 0;
}

nav a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.8rem;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--text-color);
	background: rgba(var(--header-bg-rgb), 0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1.5px solid rgba(251, 124, 60, 0.25);
	border-radius: 40px;
	overflow: hidden;
	transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	letter-spacing: 0.5px;
}

nav a:hover, nav li.active a {
	color: white;
	background: var(--accent-color);
	border-color: var(--accent-color);
	transform: translateY(-6px) scale(1.05);
	box-shadow: 0 15px 35px rgba(251, 124, 60, 0.45);
}

header.shrunk nav a:hover { transform: translateY(-3px) scale(1.05); }

nav li.active a { transform: translateY(0px) scale(1.0); }

nav a::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 1.0s;
}

nav a:hover::before {
	left: 100%;
}

#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);
}

/* ##### BUTTONS ##### */
button.button_assign {
	background: linear-gradient(135deg, #4A90E2, #2B6CB0) !important;
}
button.button_assign:hover {
	background: linear-gradient(135deg, #2B6CB0, #4A90E2) !important;
	box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

button.button_cancel {
	background: linear-gradient(135deg, #6B7280, #4A5568) !important;
	transition: all 0.5s ease-in-out;
}
button.button_cancel:hover {
	background: linear-gradient(135deg, #4A5568, #6B7280) !important;
	box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

.button_delete {
	background: var(--button-delete-bg) !important;
	color: var(--button-delete-text) !important;
}
.button_delete:hover {
	box-shadow: 0 4px 12px rgba(155, 44, 44, 0.3) !important;
	background: var(--button-delete-hover) !important;
}

button:not(#navToggle) {
	background: var(--button-bg);
	color: var(--button-text);
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.5s ease-in-out;
}

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

.plan-radio {
	display: none;
}

.button-primary.active {
	opacity: 1;
	cursor: pointer;
}

.button-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.openButton { min-width: 240px !important; }

/* ##### CONTAINER ##### */

.button-group {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem !important;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 1rem;
}

.button-group button {
	flex: 1 1 45px;
	min-width: 150px;
	width: 200px;
	max-width: 100%;
}

.button-group form, .button-group form button {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: 100%;
	padding: 0 1rem;
	justify-content: center;
	align-items: center;
}

main {
	position: relative;
	width: 100%;
	max-width: min(1500px, calc(100% - 10rem));
	margin: 3rem auto;
	padding: 1rem 2rem 2rem;
	border-radius: var(--border-radius);
	animation: fadeIn 1s ease;
	z-index: 2;
	text-align: left;
}

.spacing { margin-bottom: 1.5rem; }
.spacing:last-child { margin-bottom: 1rem; }

/* ##### CONTENT */
h1 {
	font-size: 3.2rem !important;
	background: linear-gradient(135deg, var(--accent-color), #FF9D6C);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1.5rem !important;
}

h2 {
	font-size: 1.5rem;
	color: var(--accent-color);
	margin: 1rem auto;
	transition: all 1.0s ease;
}

h3 {
	font-size: 1.1rem;
	color: var(--accent-color);
	margin-top: 1rem;
	transition: all 1.0s ease;
}

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

.configFormContainer {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 2s ease, transform 2s ease;
}

.configFormContainer.show {
	opacity: 1;
	transform: translateY(0);
}

.config-details {
	width: 100%;
}

.config-details details {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	width: 100%;
}

.config-details hr {
	grid-column: 1 / -1;
	width: 100%; 
}

details {
	scroll-margin-top: 80px; /* Scrollt bei scrollIntoView xx Pixel höher */
}

details > div {
	overflow: hidden;
}

details:not([open]) > div {
	max-height: 0;
}

details[open] > div {
	max-height: 3000px; 
	transition: max-height 0.5s ease-out;
}

details summary {
	cursor: pointer;
	font-size: 1.25rem;
	transition: all 0.5s ease;
	text-align: center;
	color: var(--accent-color);
}

.details-content {
	overflow: hidden;
	transition: max-height 0.5s ease-in-out,
				opacity 0.5s ease-in-out;
	opacity: 1; 
}

details:not([open]) .details-content {
	max-height: 0 !important;
	opacity: 0;
}

details.animating .details-content {
	opacity: 1; 
}

.form-group-container:not(#support_form) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 2rem;
}

.module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.module {
	background: var(--module-bg);
	padding: 15px;
	border-radius: 10px;
	text-align: center;
	transition: transform 0.2s;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
}

.projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 2rem;
	margin: 5rem 0;
	padding: 0 1rem;
}

.project-card {
	background: rgba(var(--header-bg-rgb), 0.3);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(251, 124, 60, 0.25);
	border-radius: var(--border-radius);
	padding: 2.5rem 2rem;
	text-align: left;
	transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.project-card:hover {
	transform: translateY(-16px) scale(1.03);
	box-shadow: 0 20px 50px rgba(251,124,60,0.25);
	border-color: var(--accent-color);
}

.project-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--accent-color);
	position: relative;
}

.project-title::after {
	content: '';
	width: 60px;
	height: 4px;
	background: var(--accent-color);
	border-radius: 2px;
	display: block;
	margin: 0.8rem 0 0 0;
	opacity: 0.7;
}

.project-description {
	font-size: 1.1rem;
	line-height: 1.7;
	opacity: 0.9;
	margin-bottom: 2rem;
	color: var(--text-color);
}

.project-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: auto;
}

.project-links a {
	display: inline-block;
	padding: 0.875rem 1.5rem;
	background: rgba(251, 124, 60, 0.15);
	color: var(--accent-color);
	border: 2px solid rgba(251, 124, 60, 0.3);
	text-decoration: none;
	border-radius: calc(var(--border-radius) / 2);
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(251, 124, 60, 0.3);
}

.project-links a:hover {
	background: rgba(251, 124, 60, 0.25);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(251, 124, 60, 0.4);
	text-decoration: none;
	color: white;
	border-color: var(--accent-color);
	box-shadow: 0 8px 25px rgba(251, 124, 60, 0.3);
}

.project-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(135deg, rgba(var(--header-bg-rgb), 0.1), transparent);
	border-radius: var(--border-radius);
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.project-card:hover::before {
	opacity: 1;
}

.project-card:has(.project-icon) {
	padding-top: 3.5rem;
}

.project-icon {
	position: absolute;
	top: 1.5rem;
	left: 2rem;
	width: 48px;
	height: 48px;
	background: var(--accent-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.4rem;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal.active {
	display: flex;
}

ul {
	list-style-type: disc;
	list-style-position: inside;
}

ul li {
	padding: 5px 0;
	position: relative;
	padding-left: 25px;
}

ul.preview {
	list-style-type: none;
	padding: 0rem;
}

ul.preview li {
	padding: 5px 0;
	position: relative;
	padding-left: 25px;
}

ul.preview li:before {
	content: "\2713";
	position: absolute;
	left: 0px;
	color: var(--accent-color);
	font-weight: bold;
}

ul.preview li.highlight {
	font-style: italic;
	color: #7f8c8d;
}

.roadmap { max-width: 900px; margin: 60px auto;  }

.roadmap > ul {
	text-align: left;
	list-style-type: none;
	background: rgba(var(--header-bg-rgb), 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4x);
	padding: 2rem 2.5rem;
	border-radius: var(--border-radius);
	border-left: 5px solid var(--accent-color);
	max-width: 800px;
	margin: 3rem auto;
	font-size: 1.15rem;
	line-height: 1.8;
	box-shadow:
		10px 10px 20px 0 var(--shadow-color),
		5px 5px 10px 4px var(--shadow-color-wide);
}

.roadmap > ul li {
	padding: 0.7rem 0;
	position: relative;
	padding-left: 2rem;
}

.roadmap > ul li::before {
	content: "➤";
	color: var(--accent-color);
	position: absolute;
	left: 0;
	font-weight: bold;
}

.table-container, #twitchScheduleDisplay {
	width: 100%;
	overflow-x: auto;
	box-shadow: 0 4px 12px var(--shadow-color);
	border-radius: var(--border-radius);
}

.table {
	width: 90%;
	border-collapse: separate;
	min-width: 600px;
	border-spacing: 0;
	margin: 0 auto;
}

.table th,
.table td {
	padding: 12px 10px;
	text-align: center;
}

.table th {
	background-color: var(--table-th);
	color: var(--text-color);
	font-weight: 600;
	text-align: center;
	color: var(--table-th-text);
}

.table th:first-child {
	border-top-left-radius: 20px;
}

.table th:last-child {
	border-top-right-radius: 20px;
}

.table tr:nth-child(even) td {
	background-color: var(--table-bg-even);
}

.table tr:nth-child(odd) td {
	background-color: var(--table-bg-odd);
}

.table tr:last-child td {
	background-clip: padding-box; 
}

.table tr:last-child td:first-child {
	border-bottom-left-radius: 20px;
}

.table tr:last-child td:last-child {
	border-bottom-right-radius: 20px;
}

.calendar-link-box {
	padding: 1.5rem;
	background: var(--module-bg);
	border: 1px solid var(--text-color);
	border-radius: var(--border-radius);
	text-align: center;
	width: 90%;
	margin: 4rem auto;
	bottom: 0;
}

#calendarLink {
	display: inline-block; 
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	word-break: break-all;
}

/* ##### PROFILE */
.profile-section {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.profile-image img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent-color);
	box-shadow: 0 4px 12px var(--shadow-color);
}

.profile-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.profile-info p {
	margin: 0;
	font-size: 1.1rem;
}

.key-section {
	margin-bottom: 2rem;
}


/* ##### SUPPORT */

#support_form, #create-lobby-form, #edit-lobby-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;
}

.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;
	gap: 1rem;
}

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
	width: 100%;
	border: 1px solid var(--input-border);
	border-radius: var(--border-radius);
	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(30% - 1rem);
	text-align: center;
}

.form-group.color-picker.centered {
	flex: 0 0 calc(50% - 1rem);
	max-width: calc(50% - 1rem);
}

.form-group.color-picker.centered#standardColorField {
	flex: 0 0 100%;
	max-width: 100%;
}

.form-group-container {
	display: block;
	padding: 0;
}

.color-input-group {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.color-input-group input[type="text"] {
	width: 100px;
}

#colorPickersWrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	width: 100%;
	justify-content: center;
}

.form-group.color-picker.minimalColorField {
	flex: 0 0 calc(33.333% - 1rem);
	max-width: calc(33.333% - 1rem);
	margin-bottom: 0;
}

#standardColorField {
	margin-bottom: 0;
	flex: 0 0 calc(33.333% - 1rem);
	max-width: calc(33.333% - 1rem);
}

.selectWrapper {
	width: 100%;
	display: inline-block;
	overflow: hidden;
}

.selectWrapper select {
	vertical-align: middle;
	width: 100%;
	border: 1px solid var(--input-border);
	border-radius: var(--border-radius);
	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);
}

.selectWrapper select option {
	vertical-align: middle;
	width: 100%;
	color: var(--text-color);
}

.sliderWrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 0 1rem;
}

.sliderContainer {
	position: relative;
	width: 100%;
}

.sliderLabel {
	font-size: 1rem;
	color: var(--text-color);
	min-width: 40px;
	text-align: center;
}

.sliderLabel-left {
	order: -1;
}

.sliderLabel-right {
	order: 1;
}

.form-group input[type="range"] {
	width: 100%;
	border: 1px solid var(--input-border);
	border-radius: var(--border-radius);
	background: linear-gradient(to bottom, var(--input-bg), var(--input-bg-darker));
	box-shadow: inset 0 0 3px var(--shadow-color);
	padding: 10px 15px;
	height: 30px;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.5s ease-in-out;
}

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

.form-group input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: var(--accent-color);
	border-radius: 50%;
	border: 1px solid var(--input-border);
	box-shadow: 0 0 3px var(--shadow-color);
	cursor: pointer;
	transition: all 0.5s ease-in-out;
}

.form-group input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: var(--accent-color);
	border-radius: 50%;
	border: 1px solid var(--input-border);
	box-shadow: 0 0 3px var(--shadow-color);
	cursor: pointer;
	transition: all 0.5s ease-in-out;
}

.form-group input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(to bottom, var(--input-bg), var(--input-bg-darker));
	border-radius: var(--border-radius);
	height: 5px;
	width: 100%;
}

.form-group input[type="range"]::-moz-range-track {
	background: linear-gradient(to bottom, var(--input-bg), var(--input-bg-darker));
	border-radius: var(--border-radius);
	height: 5px;
	width: 100%;
}

details summary::-webkit-details-marker {
	display: none;
}

details[open] summary::before {
	content: "▼ ";
}

details summary::before {
	content: "▶ ";
}

/* ##### Dashboards */
.dashboard-sections {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin: 2rem auto;
	padding: 0 1rem;
}

.dashboard-section {
	padding: 0 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
}

.dashboard-section .blurred {
	filter: blur(8px);
	transition: filter 0.3s;
}

.dashboard-section a.blurred:hover {
	filter: none;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.dashboard-card {
	border-radius: 15px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
}

.dashboard-label {
	font-weight: bold;
	color: var(--text-color);
	width: 40%;
}

.dashboard-actions div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dashboard-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
	margin-bottom: 2rem;
	width: 100%;
}

.dashboard-item {
	text-align: center;
	align-items: center;
	background: var(--module-bg);
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px var(--shadow-color);
	padding-bottom: 2rem;
	display: flex;
	flex-direction: column;
	padding-bottom: 0;
	min-height: 250px;
}

.dashboard-itemcontent {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center; 
	text-align: center;
}

.dashboard-item-list {
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
	align-items: center;
	text-align: center;
	padding: 0.5rem 0;
	border-bottom: 1px dotted var(--input-border);
}

.dashboard-item a.blurred {
	word-break: break-all;
	color: var(--link-color);
}

.dashboard-item a.blurred:hover {
	filter: none;
	color: var(--link-hover);
}

/* Auswahlrahmen bei gewähltem Radio */
.dashboard-item-list label.selected {
border: 2px solid var(--accent-color);
border-radius: 10px;
background-color: var(--module-bg-hover);
transition: 0.2s ease;
}

/* Hovereffekt für Labels */
.dashboard-item-list label:hover {
background-color: var(--module-bg-hover);
cursor: pointer;
}

.dashboard-actions {
	display: flex;
	gap: 0.5rem;
	padding: 1rem;
	justify-content: center;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 1rem 0;
}

.pagination a {
	padding: 0.5rem 1rem;
	background: var(--input-bg);
	border-radius: var(--border-radius);
	color: var(--text-color);
	transition: background 0.3s;
}

.pagination a:hover {
	background: var(--accent-color);
	color: var(--link-hover);
}

.pagination a.current-page {
	background: var(--accent-color);
	color: var(--link-hover);
}

.info-box {
	background-color: var(--infobox);
	padding: 10px;
	margin: 10px 0;
	border: 1px solid var(--infobox-border);
	border-radius: 5px;
	color: var(--infobox-color);

	box-sizing: border-box;
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* ##### FOOTER ##### */
footer {
	position: relative;
	background-color: rgba(var(--footer-bg), 0.6);
	padding: 1rem;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.1);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4x);
	z-index: 1;
}

.footer-links a {
	margin: 0 1rem;
	color: var(--link-color);
	text-decoration: none;
	margin: 0 1.2rem;
	font-weight: 600;
	padding: 0.4rem 0;
	position: relative;
}

.footer-links a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	background: var(--accent-color);
	transition: all 0.3s ease;
}

.footer-links a:hover::after {
	width: 100%;
	left: 0;
}

/* ##### kleinere Desktopauflösungen ##### */
@media (min-width: 769px) and (max-width: 1600px) {

	header #logo {
		margin-top: 1.8rem;
	}
	header #logo img {
		height: 3.5rem;
	}

	header.shrunk #logo {
		margin-top: 0.6rem;
	}
	header.shrunk #logo img {
		height: 2.4rem;
	}

	#navToggle {
		display: grid;
		top: 2.8rem;
		right: 2.5rem;
		width: 42px;
		height: 42px;
		font-size: 2.3rem;
	}

	header.shrunk #navToggle {
		top: 0.8rem;
		right: 2rem;
		width: 34px;
		height: 34px;
	}

	.line {
		display: block;
		width: 100%;
		height: 4px;
		background-color: #333;
		transition: all 0.3s ease-in-out;
		border-radius: 2px;
	}

	#navToggle.active .line:nth-child(1) {
		transform: translateY(14px) rotate(45deg);
	}
	#navToggle.active .line:nth-child(3) {
		transform: translateY(-14px) rotate(-45deg);
	}
	header.shrunk #navToggle.active .line:nth-child(1) {
		transform: translateY(11px) rotate(45deg);
	}
	header.shrunk #navToggle.active .line:nth-child(3) {
		transform: translateY(-11px) rotate(-45deg);
	}

	nav {
		margin-top: 1.2rem;
	}
}

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

	h1 {
		font-size: 1.9rem;
		line-height: 2.0;
	}

	h2 {
		font-size: 1.4rem;
		line-height: 1.5;
		overflow-wrap: break-word;
		word-break: break-word;
		hyphens: auto;
	}

	h3 {
		font-size: 1.1rem;
		line-height: 1.2;
	}

	header {
		z-index: 1000;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
		transition:
			padding 0.5s ease,
			margin-bottom 0.5s ease,
			backdrop-filter 0.4s ease;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	}

	header.shrunk {
		transition: all 1s ease;
		padding: 0;
	}
	
	#logo {
		display: flex;
		justify-content: center;
		width: 100%;
		margin-top: 2rem;
		transition: all 1s ease;
	}

	header.shrunk #logo {
		margin-top: 0.5rem;
	}

	header #logo img {
		max-width: auto;
		height: 4rem;
		transition: all 0.9s ease;
	}

	header.shrunk #logo img {
		height: 2rem;
	}

	#userbar {
		display: flex;
		justify-content: center;
		width: 100%;
		right: 0;
	}

	header.shrunk #userbar {
		opacity: 0;
		visibility: hidden;
		max-height: 0;
		padding: 0;
	}

	#navToggle {
		position: absolute;
		top: 3rem;
		right: 1.5rem;
		font-size: 2rem;
		width: 35px;
		height: 35px;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		padding: 0;
		border: none;
		background-color: transparent;
		cursor: pointer;
		z-index: 1000;
		transition: all 0.9s ease;
	}

	header.shrunk + nav {
		transition-delay: 0.1s;
	}

	header.shrunk #navToggle {
		margin-right: 0rem;
		width: 25px;
		height: 25px;
		top: 0.5rem;
	}

	.line {
		display: block;
		width: 100%;
		height: 4px;
		background-color: #333;
		transition: all 0.3s ease-in-out;
		border-radius: 2px;
	}

	/* X-Animation */
	#navToggle.active .line:nth-child(1) {
		transform: translateY(12px) rotate(45deg);
	}

	#navToggle.active .line:nth-child(2) {
		opacity: 0;
	}

	#navToggle.active .line:nth-child(3) {
		transform: translateY(-11px) rotate(-45deg);
	}

	/* Animation shrunk */
	header.shrunk #navToggle.active .line:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}

	header.shrunk #navToggle.active .line:nth-child(2) {
		opacity: 0;
	}

	header.shrunk #navToggle.active .line:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	#navToggle button:hover {
		box-shadow: 0 0px 0px rgba(251, 124, 60, 0.3);
	}
	
	nav {
		position: static;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		margin-top: 1rem;

		pointer-events: none;
		
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transform: scaleY(0.92);
		transform-origin: top;
		transition-delay: 0.05s;
		transition:
			max-height 0.5s ease,
			opacity 0.4s ease,
			transform 0.45s cubic-bezier(0.32,0,0.08,1);
	}

	nav.nav-open {
		opacity: 1;
		transform: scaleY(1);
		pointer-events: auto;
		max-height: 600px;
		opacity: 1;
		transform: scaleY(1);
		transition-delay: 0s;
	}

	nav ul {
		width: 100%;
		gap: 0 !important;
	}

	nav ul li {
		width: 100% !important;
		text-align: center;
		padding: 0 !important;
	}

	nav a {
		background: transparent;
		border-radius: 18px;
		width: 100%;
		text-align: center;
		border: 0;
	}

	nav a:hover {
		transform: translateY(0px);
	}

	nav li.active a { transform: none; }
	nav ul li:last-child a {
		border-bottom-left-radius: 40px;
		border-bottom-right-radius: 40px;
		height: auto;
	}

	nav li {
		opacity: 0;
		transform: translateY(-4px);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}

	nav.nav-open li {
		opacity: 1;
		transform: translateY(0);
	}

	nav.nav-open li:nth-child(1) { transition-delay: 0.10s; }
	nav.nav-open li:nth-child(2) { transition-delay: 0.20s; }
	nav.nav-open li:nth-child(3) { transition-delay: 0.30s; }
	nav.nav-open li:nth-child(4) { transition-delay: 0.40s; }
	nav.nav-open li:nth-child(5) { transition-delay: 0.50s; }
	nav.nav-open li:nth-child(6) { transition-delay: 0.60s; }
	nav.nav-open li:nth-child(7) { transition-delay: 0.70s; }
	nav.nav-open li:nth-child(8) { transition-delay: 0.80s; }
	nav.nav-open li:nth-child(9) { transition-delay: 0.90s; }
	nav.nav-open li:nth-child(10) { transition-delay: 1.0s; }

	main {
		width: auto;
		max-width: 100%;
		margin: 7rem 0 0 0;
		padding: 0.5rem;
		border-radius: var(--border-radius);
		top: 0rem;
	}

	.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 60px 0; }
	.project-card { background: --var(--module-bg); padding: 30px; border-radius: 12px; text-align: center; }
	.project-card:hover { transform: none; }

	.main-cta {
		font-size: 1.25rem;
		padding: 0.5;
		width: 90%;
	}
	.cta-icon { font-size: 1.5rem; }
	.cta-arrow { font-size: 1.8rem; }

	.url-container {
		width: auto;
		max-width: none;
		box-sizing: border-box;
	}

	.button-group {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		margin-top: 0;
		width: 100%;
	}

	.button-group button {
		flex: 1 1 45px;
		width: 100%;
	}

	.module-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.preview_image {
		max-width: 100%;
	}

	.modal img {
		max-width: 90%;
		max-height: 90%;
	}

	#colorPickersWrapper {
		display: flex;
		flex-wrap: wrap;
		gap: 1.5rem;
		width: 100%;
	}

	#support_form, #create-lobby-form, #edit-lobby-form {
		width: min(800px, calc(100% - 1rem));
	}

	#standardColorField {
		flex: 0 0 100%;
		max-width: 100%;
	}

	#minimal1ColorField, #minimal2ColorField {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.form-group input[type="datetime-local"] {
		font-size: 1rem;
		padding: 0.5rem 0.75rem;
		height: 2.5rem;
		box-sizing: border-box;
	}

	form { width: 100%; }

	.dashboard-sections {
		padding: 0;
		gap: 1rem;
	}
	
	.dashboard-section {
		padding: 1rem;
	}

	.dashboard-section table {
		font-size: 0.85rem;
		display: block;
		overflow-x: auto;
	}

	.question-list {
		grid-template-columns: 1fr;
	}

	.pagination {
		flex-wrap: wrap;
	}

	.hidden-form-section {
		padding: 1rem;
	}

	.dashboard-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.dashboard-card {
		padding: 0.8rem;
	}

	.dashboard-item {
		font-size: 0.85rem;
		align-items: center;
		gap: 0.5rem;
		flex-wrap: wrap;
	}

	.dashboard-item a {
		order: 0;
	}

	.dashboard-item button {
		order: 1;
		width: 100%;
	}

	.dashboard-actions {
		flex-direction: column;
		align-items: flex-end;
		width: 100%;
		padding: 0rem 1rem;
	}

	.sliderWrapper { padding: 0; }
	.sliderLabel { min-width: 0; }

	.link-item .link-logoimage, td .link-logoimage { width: 30px; }

	footer { margin-top: 3rem; }
}

/* 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(--link-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: all 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);
	color: var(--link-hover);
}

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

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);
}


@media (max-width: 768px) {
	.social-links {
		flex-direction: column;
		align-items: stretch;
	}
	
	.social-button {
		justify-content: center;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
}
