.switch-container {
	position: relative;
	padding: 0;
}

.switch {
	visibility: hidden; /* Checkbox unsichtbar machen */
}

.switch-label {
	display: block;
	width: 70px;
	height: 34px;
	background-color: #ccc;
	border-radius: 34px;
	position: relative;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.switch-inner {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
	font-size: 12px;
	color: white;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
}

.switch-inner::before,
.switch-inner::after {
	content: attr(data-off);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.switch-inner::after {
	content: attr(data-on);
	right: 10px;
	opacity: 0;
}

.switch-switch {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 28px;
	height: 28px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.switch:checked + .switch-label {
	background-color: #4CAF50;
}

.switch:checked + .switch-label .switch-inner::before {
	opacity: 0;
}

.switch:checked + .switch-label .switch-inner::after {
	opacity: 1;
}

.switch:checked + .switch-label .switch-switch {
	transform: translateX(36px);
}
