.hf-rechner {
	color: #484e56;
	-webkit-box-shadow: 0 0 20px #c2c2c2;
	box-shadow: 0 0 20px #c2c2c2;
	border-radius: 20px;
	padding: 20px;
	background-color: #fff;
}

#hfChart {
	transition: opacity 0.3s ease-in-out;
}

.hf-rechner h2 {
	font-size: 1.9rem !important;
	line-height: 1.3;
	margin: 0 0 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	border-bottom: none !important;
	text-decoration: none !important;
	position: relative;
}

.hf-rechner h2:after {
	display: none;
}

.hf-form label {
	font-style: normal;
	font-size: 1.8rem;
	font-weight: 500;
	margin-top: 10px;
	display: block;
	padding-left: 0;
}

.hf-form input {
	width: 100%;
	padding: 8px;
	border-radius: 6px;
	border: 1px solid #ccc;
}

.hf-form input[type="text"] {
	width: 100%;
	padding: 15px;
	border: 0;
	background-color: #f6f6f6;
	font-size: 1.5rem;
	margin-top: 10px;
	font-family: inherit;
	border-radius: 4px;
}

.hf-form button {
	background-color: #0073b7;
	color: white;
	border: none;
	padding: 10px 15px;
	margin-top: 15px;
	width: 100%;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s;
}

#mehrertrag {
	font-size: 3.8em;
	font-weight: bold;
	text-decoration: underline;
	color: #17a4e5;
	text-align: center;
}

.hf-form input[type=range] {
	width: 100%;
	margin: 10px 0;
	cursor: pointer;
}

.hf-form label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	margin-top: 10px;
}

.hf-form label span {
	font-weight: normal;
}

/* --- Basis für alle Slider --- */
.hf-form input[type=range] {
	-webkit-appearance: none; /* Safari & Chrome */
	appearance: none;
	width: 100%;
	height: 0;
	border-radius: 5px;
	background: transparent;
	outline: none;
	margin: 10px 0 20px 0;
	cursor: pointer;
	transition: background 0.3s;
	padding: 3px;
}

/* --- Track (Safari / Chrome) --- */
.hf-form input[type=range]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 5px;
	background: transparent;
}

/* --- Thumb (Safari / Chrome) --- */
.hf-form input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #9e8459;
	border: 2px solid white;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
	margin-top: -6px; /* gleicht den Daumen zur Mitte des Tracks aus */
}

.hf-form input[type=range]::-webkit-slider-thumb:hover {
	transform: scale(1.3);
	background: #9e8459;
}

/* --- Firefox --- */
.hf-form input[type=range]::-moz-range-track {
	height: 6px;
	border-radius: 5px;
	background: transparent;
}

.hf-form input[type=range]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #9e8459;
	border: 2px solid white;
	cursor: pointer;
	transition: transform 0.2s;
}

.hf-form input[type=range]::-moz-range-thumb:hover {
	transform: scale(1.3);
	background: #9e8459;
}


