/* Allgemeine Styles */
* {
	cursor: crosshair;
}

html {
	overflow-x: hidden;
}

#pointer {
	height: 50px;
	width: 50px;
	background-color: rgba(187, 187, 187, 0.2);
	border: 2px solid white;
	border-radius: 50%;
	position: absolute;
	display: none;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}

::-webkit-scrollbar {
	display: none; /* Scrollbar ausblenden */
}

body {
	background-color: #0a0a19; /* Dunkler Hintergrund */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	color: #ffffff;
	overflow-x: hidden;
	height: 100vh;
	-ms-overflow-style: none; /* Internet Explorer und Edge */
	scrollbar-width: none; /* Firefox */
	overflow-y: auto;
}

header {
	text-align: center;
	padding: 40px 0;
}

.title {
	font-size: 50px;
	margin: 0;
	color: #ffffff;
}

/* Flexbox für Karten */
.row {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 30px;
	margin-top: 50px;
	flex-wrap: wrap;
	padding: 0 20px;
}

/* Karte */
.card {
	border-radius: 10px;
	padding: 30px;
	width: 320px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	flex: 1;
	border: 2px solid #333;
	box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
}

h2 {
	font-size: 32px;
	margin-bottom: 15px;
}

p {
	font-size: 18px;
	line-height: 1.6;
	color: #ddd;
}

.card-button {
	border: none;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 18px;
	transition: background-color 0.3s ease, transform 0.3s ease;
	margin-top: 20px;
	border: 1px solid white;
	position: relative;
	z-index: 2;
}

.card-button:hover {
	background-color: #0a0a19; /* Dunkler Hintergrund */
	color: white;
}

/* Responsives Design */
@media screen and (max-width: 768px) {
	#pointer {
		display: none !important; /* Pointer ausblenden */
	}

	.card {
		width: 80%;
		max-width: 400px;
	}
}

/* Pointer auf Mobile nicht anzeigen und Karten zentrieren */
@media screen and (max-width: 768px) {
	* {
		cursor: default; /* Pointer-Effekt entfernen */
	}

	#pointer {
		display: none;
	}

	.card {
		width: 80%;
		max-width: 350px;
		text-align: center;
	}
}

/* From Uiverse.io by JkHuger */
.switch {
	position: relative;
	width: 130px;
	height: 50px;
	margin: 0px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-color: rgb(4, 52, 73);
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 25px;
	transition: background-image 0.7s ease-in-out;
	outline: none;
	overflow: hidden;
	z-index: 2;
}

.switch:checked {
	background-color: rgb(0, 195, 255);
	background-size: cover;
	transition: background-image 1s ease-in-out;
}

.switch:after {
	content: '';
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: #fff;
	position: absolute;
	left: 2px;
	top: 2px;
	transform: translateX(0px);
	animation: off 0.7s forwards cubic-bezier(0.8, 0.5, 0.2, 1.4);
	box-shadow: inset 5px -5px 4px rgba(53, 53, 53, 0.3);
}

@keyframes off {
	0% {
		transform: translateX(80px);
		width: 46px;
	}

	50% {
		width: 75px;
		border-radius: 25px;
	}

	100% {
		transform: translateX(0px);
		width: 46px;
	}
}

.switch:checked:after {
	animation: on 0.7s forwards cubic-bezier(0.8, 0.5, 0.2, 1.4);
	box-shadow: inset -5px -5px 4px rgba(53, 53, 53, 0.3);
}

@keyframes on {
	0% {
		transform: translateX(0px);
		width: 46px;
	}

	50% {
		width: 75px;
		border-radius: 25px;
	}

	100% {
		transform: translateX(80px);
		width: 46px;
	}
}

.switch:checked:before {
	content: '';
	width: 15px;
	height: 15px;
	border-radius: 50%;
	position: absolute;
	left: 15px;
	top: 5px;
	transform-origin: 53px 10px;
	background-color: transparent;
	box-shadow: 5px -1px 0px #fff;
	filter: blur(0px);
	animation: sun 0.7s forwards ease;
}

@keyframes sun {
	0% {
		transform: rotate(170deg);
		background-color: transparent;
		box-shadow: 5px -1px 0px #fff;
		filter: blur(0px);
	}

	50% {
		background-color: transparent;
		box-shadow: 5px -1px 0px #fff;
		filter: blur(0px);
	}

	90% {
		background-color: #f5daaa;
		box-shadow: 0px 0px 10px #f5deb4, 0px 0px 20px #f5deb4, 0px 0px 30px #f5deb4, inset 0px 0px 2px #efd3a3;
		filter: blur(1px);
	}

	100% {
		transform: rotate(0deg);
		background-color: #f5daaa;
		box-shadow: 0px 0px 10px #f5deb4, 0px 0px 20px #f5deb4, 0px 0px 30px #f5deb4, inset 0px 0px 2px #efd3a3;
		filter: blur(1px);
	}
}

.switch:before {
	content: '';
	width: 15px;
	height: 15px;
	border-radius: 50%;
	position: absolute;
	left: 15px;
	top: 5px;
	filter: blur(1px);
	background-color: #f5daaa;
	box-shadow: 0px 0px 10px #f5deb4, 0px 0px 20px #f5deb4, 0px 0px 30px #f5deb4, inset 0px 0px 2px #efd3a3;
	transform-origin: 53px 10px;
	animation: moon 0.7s forwards ease;
}

@keyframes moon {
	0% {
		transform: rotate(0deg);
		filter: blur(1px);
	}

	50% {
		filter: blur(1px);
	}

	90% {
		background-color: transparent;
		box-shadow: 5px -1px 0px #fff;
		filter: blur(0px);
	}

	100% {
		transform: rotate(170deg);
		background-color: transparent;
		box-shadow: 5px -1px 0px #fff;
		filter: blur(0px);
	}
}

/* Lightmode Styles */
.light-mode {
	background-color: #f4f4f4;
	color: #101010;
}

.light-mode .title {
	color: #101010;
}

.light-mode .card {
	border-color: #ccc;
	background-color: #fff;
	box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}

.light-mode p {
	color: #101010;
}

.light-mode .card-button {
	background-color: #101010;
	color: white;
	border-color: #101010;
}

.light-mode .card-button:hover {
	background-color: #ffffff;
	color: black;
}
