/**
 * Pfändungsrechner | IKK BB
 */

@font-face {
	font-family:"Proxima Nova Regular";
	font-style:normal;
	font-weight:300;
	font-display:swap;
	src:url('font/ProximaNova-Regular.eot');
	src:url('font/ProximaNova-Regular.eot?#iefix') format("embedded-opentype"),
		url('font/ProximaNova-Regular.woff2') format("woff2"),
		url('font/ProximaNova-Regular.woff') format("woff"),
		url('font/ProximaNova-Regular.ttf') format("truetype")
}
@font-face {
	font-family:"Proxima Nova Semi Bold";
	font-style:normal;
	font-weight:500;
	font-display:swap;
	src:url('font/ProximaNova-Semibold.eot');
	src:url('font/ProximaNova-Semibold.eot?#iefix') format("embedded-opentype"),
		url('font/ProximaNova-Semibold.woff2') format("woff2"),
		url('font/ProximaNova-Semibold.woff') format("woff"),
		url('font/ProximaNova-Semibold.ttf') format("truetype")
}
@font-face {
	font-family:"Proxima Nova Extra Bold";
	font-style:normal;
	font-weight:700;
	font-display:swap;
	src:url('font/ProximaNova-Extrabld.eot');
	src:url('font/ProximaNova-Extrabld.eot?#iefix') format("embedded-opentype"),
		url('font/ProximaNova-Extrabld.woff2') format("woff2"),
		url('font/ProximaNova-Extrabld.woff') format("woff"),
		url('font/ProximaNova-Extrabld.ttf') format("truetype")
}

*,
*::before,
*::after {
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    font-size: 100%;
}
body {
	font: 400 16px / 25.2px "Proxima Nova Regular", sans-serif;
	background-color: var(--bodyBgColor);
	color: var(--bodyColor);
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

.pfaendungsrechner {
    max-width: 930px;
    margin: 0 auto;
	/* padding: 2rem 1rem;	 */
}

.strong {
	font-family: "Proxima Nova Extra Bold", sans-serif;
	font-weight: 700;
}
.text-xs { font-size: 14px; }
a, a:active, a:visited { 
	color: var(--linkColor); 
	text-decoration: underline; 
}
a:hover { 
	color: var(--linkHoverColor);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--headerColor);
    font-family: "Proxima Nova Extra Bold", sans-serif;
	font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}
.h1, h1 {
	font-size: 1.5rem;
    letter-spacing: -.04375rem;
    margin-bottom: 1.25rem;
}
.h2, h2 {
	font-size: 1.25rem;
    letter-spacing: -.04375rem;
    margin-bottom: 1.25rem;
}
p {
    margin-bottom: 25px;
}
p:last-child {
    margin-bottom: 0;
}
hr {
    border: none;
    border-top: var(--borderWidth) var(--inputBorderColor);
    color: #fff;
    background-color: var(--inputBorderColor);
    height: 1px;
    margin: 2.5rem 0;
}
.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

/**
 * Form
 */
.fform {
	margin: 0 0 0 0;
}
.fform fieldset {
	border: 0 none;
    margin: 0;
	padding: 0;
	width: 100%;
}
.fform legend {
    font-family: "Proxima Nova Semi Bold", sans-serif;
	color: var(--visibleFieldsetLineColor);
    border-bottom: none;
    margin-bottom: 10px;
    width: auto;
}
.fform div.flex,
.fform div.flex-right {
    display: flex;
}
.fform div.flex input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.fform .input-group {
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 1.5rem;
}
.fform div.label,
.fform div.pseudolabel {
	font-family: "Proxima Nova Semi Bold", sans-serif;
    border: 0;
    width: 45%;
    text-align: left;
    padding-right: 1rem;
}
.fform div.input {
    width: 55%;
}
input[type=text] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    background-color: var(--inputBgColor);
    border: var(--borderWidth) var(--inputBorderColor);
	border-right: 0;
	border-top-left-radius: .25rem;
	border-bottom-left-radius: .25rem;
    color: var(--inputColor);
    font-family: inherit;
    font-size: 1rem;
	font-weight: 400;
	line-height: 20px;
	box-shadow: inset 0 1px 1px rgb(0 0 0 / .075);
	padding: 6px 12px;	
	min-height: 40px;
    display: block;
    width: 100%; 
}
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
    background-color: var(--inputBgColor);
    border: var(--borderWidth) var(--inputBorderColor);
	border-radius: .25rem;
    color: var(--inputColor);
	font-family:inherit;
    font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	box-shadow: inset 0 1px 1px rgb(0 0 0 / .075);
	padding: 6px 0px 6px 12px;
    display: block;
	min-height: 40px;
    width: 100%;
	cursor: pointer;	
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
	background-position: right 12px center;
    background-size: 16px 12px;
}
.fform .addon {
    padding: 6px 12px;
    color: var(--addonColor);
    font-size: 16px;
    text-align: center;
    background-color: var(--addonBgColor);
    border: var(--borderWidth) var(--inputBorderColor);
	border-left: 0;
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
	box-shadow: inset 0 1px 1px rgb(0 0 0 / .075);
	min-height: 40px;
	align-items: center;
    display: flex;
}
/* custom radio */
input[type=radio] {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
    display: inline;
    height: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
    left: -1000px;
}
input[type=radio]+label:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
	top: 0;
    width: 24px;
    height: 24px;
	background-color: var(--inputBgColor);
    border: var(--borderWidth) var(--inputBorderColor);
    border-radius: 50%;
    cursor: pointer;
}
input[type=radio]:checked+label:after {
    content: "";
    display: block;
    position: absolute;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background-color: var(--checkedRadioBgColor);
	cursor: pointer;
}
input[type=radio]+label {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}
.radioLabel {
    margin: 0 10px 0 0;
	vertical-align: middle;
}

/* buttons */
.btn {
    background-color: var(--buttonBg);
	border: var(--buttonBorderWidth) var(--buttonBorderColor);
    border-radius: 35px;
    color: var(--buttonColor);
	font-size: 16px;
	padding: .875rem 1.75rem;
	font-family: "Proxima Nova Semi Bold", sans-serif;
	font-weight: 500;
	letter-spacing: .1875rem;
	text-transform: uppercase;
	cursor: pointer;
    display: inline-block;
    position: relative;
    text-align: center;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}
.btn:hover {
    background-color: var(--buttonHoverBg);
	border: var(--buttonBorderWidth) var(--buttonHoverBg);
}

input[type=text]#personen {
	border: var(--borderWidth) var(--inputBorderColor);
	border-radius: .25rem;
}

.textbox {
	pointer-events: none;
}
input[type=text].textbox {
	font-family: "Proxima Nova Semi Bold";
    font-weight: 500;
    border: 2px dotted var(--inputBorderColor);
    border-right: 2px dotted var(--inputBorderColor);
    border-radius: 0;
	box-shadow: none;
    height: 3rem;
    padding: 1rem;
}
.leiste {
	padding:10px 0;
}
.liability {
	font-size: smaller;
	padding:10px 0;
}

/* states */
body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus {
  outline: none;
}

select:focus,
input[type=text]:focus,
input[type=radio]:focus + label:before,
.btn:focus {
	border-color: #006eb7 !important;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / .075), 0 0 8px rgb(102 175 233 / .6);
}
select:focus-visible,
input[type=text]:focus-visible,
input[type=radio]:focus-visible + label:before,
.btn:focus-visible {
	outline: 3px dashed #d20a11;
    outline-offset: 3px;
}

@media only screen and (max-width: 575.98px) {
  .fform .input-group {
		display: block;
	}
	input[type=text],
	select,
	.fform div.label,
	.fform div.input {
		width:100%;
	}
	.btn {
		display: block;
		width: 100%;
		margin-bottom: 15px;
	}
	.fform div.label {
		font-weight: bold;
		margin-bottom: 1rem;
		padding-right: 0;
	}
	input[type=radio]+label {
		display: block;
		margin: 1rem 0;
	}
}
@media print {
	.btn {
		display: none;
	}
	.textbox {
		border: none;
		padding: 5px;
		width: 85%;
		background-color: transparent;
	}
	h1.visually-hidden {
		clip: auto !important;
		clip-path: none !important;
		height: auto !important;
		margin: 0;
		overflow: visible !important;
		position: static !important;
		width: auto !important;
		white-space: normal !important;
		margin-bottom: 1.5rem;
	}
	input[type=checkbox]:checked+label:before,
	input[type=radio]:checked+label:before {
		/* Statt background-color */
		box-shadow: inset 0 0 0 5px #777 !important; 
		border: 2px solid #000 !important;
	}
	input[type=radio]:checked+label:after { display: none; }
}

:root {
    --white: #ffffff;
	--lightGrey: rgba(204, 204, 204, 0.65);
	--darkGrey: #222222;
	--black: #000000;
	--bodyBgColor: #ffffff;
	--bodyColor: #1d1d1b;
	--headerColor: #006eb7;
	--legendColor: #006eb7;
	--visibleFieldsetLineColor: #006eb7;
	--iconColor:  #006eb7;
	--errorColor:#d20a11;
	--linkColor: #006eb7;
	--linkHoverColor: #006eb7;
	--borderWidth: 1px solid;
	--inputColor: #1d1d1b;
	--inputBgColor: var(--white);
	--inputBorderColor: #e8e8e8;
	--inputhoverBgColor: var(--white);
	--inputhoverBorderColor: #e8e8e8;
	--addonBgColor: var(--white);
	--addonColor: #1d1d1b;
	--checkedCheckboxBgColor: #006eb7;
	--checkedRadioBgColor: #006eb7;
	--readonlyBgColor: rgba(0,0,0,.025);
	--readonlyColor: #1d1d1b;
	--readonlyBorderColor: #e8e8e8;
    --buttonBg: #d20a11;
    --buttonColor: var(--white);
	--buttonBorderColor: #d20a11;
	--buttonBorderWidth: var(--borderWidth);
	--buttonHoverBg: rgb(137,7,11);
	--resultHighlightColor: #006eb7;
	--hrColor: var(--darkGrey);
	--trOddBg: var(--white);
	--trOddColor: #1d1d1b;
	--dialogTitlebarBg: #006eb7;
}
/* Dark theme */
@media (prefers-color-scheme: dark) {
	:root {
		--white: #e5e5e5;
		--lightGrey: rgba(204, 204, 204, 0.65);
		--darkGrey: #222222;
		--black: rgba(0, 0, 0, 0.65);
		--bodyBgColor: var(--darkGrey);
		--bodyColor: var(--lightGrey);
		--headerColor: var(--lightGrey);
		--legendColor: var(--lightGrey);
		--visibleFieldsetLineColor: rgba(0, 110, 183, 0.75);
		--iconColor: rgba(0, 110, 183, 0.75);
		--errorColor: #d20a11;
		--linkColor: #006eb7;
		--linkHoverColor: #006eb7;
		--borderWidth: 1px solid;
		--inputColor: var(--darkGrey);
		--inputBgColor: var(--lightGrey);
		--inputBorderColor: #dee2e6;
		--inputhoverBgColor: var(--lightGrey);
		--inputhoverBorderColor: #dee2e6;
		--addonBgColor: var(--lightGrey);
		--addonColor: var(--darkGrey);
		--checkedCheckboxBgColor: #006eb7;
		--checkedRadioBgColor: #006eb7;
		--readonlyBgColor: rgba(255,255,255,0);
		--readonlyColor: var(--lightGrey);
		--readonlyBorderColor: var(--lightGrey);
		--buttonBg: rgba(210, 10, 17, 0.75);
		--buttonColor: var(--white);
		--buttonBorderColor: rgba(210, 10, 17, 0.75);
		--buttonBorderWidth: var(--borderWidth);
		--buttonHoverBg: rgba(137, 7, 11, 0.75);
		--resultHighlightColor: var(--white);
		--hrColor: var(--lightGrey);
		--trOddBg: var(--darkGrey);
		--trOddColor: var(--lightGrey);		
		--dialogTitlebarBg: #006eb7;
	}
}