/**
 * @copyright PRESTO GmbH
 * Härtefall-/Zuzahlungsrechner | IKK Brandenburg und Berlin
 */


/**
 * Font for Icons
 */ 
@font-face {
	font-family: 'rechner';
	src: url('../font/rechner.eot?18356468');
	src: url('../font/rechner.eot?18356468#iefix') format('embedded-opentype'),
		 url('../font/rechner.woff?18356468') format('woff'),
		 url('../font/rechner.ttf?18356468') format('truetype'),
		 url('../font/rechner.svg?18356468#rechner') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
    font-family: 'Prometo';
    src: url('font/Prometo.woff2') format('woff2'),
         url('font/Prometo.woff') format('woff');
    font-display:swap;

}
@font-face {
    font-family: 'Prometo';
    src: url('font/Prometo-Bold.woff2') format('woff2'),
         url('font/Prometo-Bold.woff') format('woff');
    font-weight:700;
	font-display:swap;

}

:root {
    --white: #ffffff;
	--lightGrey: rgba(204, 204, 204, 0.65);
	--darkGrey: #222222;
	--black: #000000;
	--bodyBgColor: rgba(0,0,0,.025);
	--bodyColor: #444444;
	--headerColor: #003d7b;
	--legendColor: #00a4c4;
	--visibleFieldsetLineColor: #00a4c4;
	--iconColor: #00a4c4;
	--linkColor: #00a4c4;
	--linkHoverColor: #00424e;
	--errorColor: #d00;
	--errorLinkColor: var(--linkColor);
	--errorLinkHoverColor: var(--linkHoverColor);
	--borderWidth: 1px solid;
	--inputColor: #444444;
	--inputBgColor: var(--white);
	--inputBorderColor: #dee2e6;
	--inputhoverBgColor: var(--white);
	--inputhoverBorderColor: #dee2e6;
	--checkedCheckboxBgColor: #005262;
	--checkedRadioBgColor: #005262;
	--readonlyBgColor: rgba(255,255,255,0);
	--readonlyColor: #444444;
	--readonlyBorderColor: #dee2e6;
    --buttonBg: #f7941d;
    --buttonColor: var(--white);
	--buttonBorderColor: #f7941d;
	--buttonBorderWidth: var(--borderWidth);
	--buttonHoverBg: #f7941d;
	--resultHighlightColor: #003d7b;
	--hrColor: var(--darkGrey);
	--trOddBg: var(--white);
	--trOddColor: #444444;
	--dialogTitlebarBg: #003d7b;
	--dialogTitlebarColor: var(--white);
	--focusBoxShadow: 0 0 0 .2rem #bfe7f7;
}

body.high-ct-enabled {
    --white: #ffffff;
	--lightGrey: rgba(204, 204, 204, 0.65);
	--darkGrey: #222222;
	--black: #000000;
	--bodyBgColor: rgba(0,0,0,.025);
	--bodyColor: var(--black);
	--headerColor: #003d7b;
	--legendColor: var(--darkGrey);
	--visibleFieldsetLineColor: var(--darkGrey);
	--iconColor: var(--black);
	--linkColor: var(--black);
	--linkHoverColor: var(--darkGrey);
	--errorColor: #d00;
	--errorLinkColor: var(--linkColor);
	--errorLinkHoverColor: var(--linkHoverColor);
	--borderWidth: 2px solid;
	--inputColor: var(--black);
	--inputBgColor: var(--white);
	--inputBorderColor: #444444;
	--inputhoverBgColor: var(--white);
	--inputhoverBorderColor: #444444;
	--checkedCheckboxBgColor: var(--black);
	--checkedRadioBgColor: var(--black);
	--readonlyBgColor: rgba(255,255,255,0);
	--readonlyColor: #444444;
	--readonlyBorderColor: #444444;
    --buttonBg: #f7941d;
    --buttonColor: var(--black);
	--buttonBorderColor: #f7941d;
	--buttonBorderWidth: var(--borderWidth);
	--buttonHoverBg: #f7941d;
	--resultHighlightColor: #003d7b;
	--hrColor: var(--darkGrey);
	--trOddBg: var(--white);
	--trOddColor: #444444;
	--dialogTitlebarBg: #003d7b;
	--dialogTitlebarColor: var(--white);
	--focusBoxShadow: 0 0 0 .25rem rgba(0,82,98,.25);
}

/* 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: rgba(0, 164, 196, 0.75);
		--visibleFieldsetLineColor: rgba(0, 164, 196, 0.75);
		--iconColor: rgba(0, 164, 196, 0.75);
		--linkColor: rgba(0, 164, 196, 0.75);
		--linkHoverColor: rgba(0, 164, 196, 0.75);
		--errorColor: #d00;
		--errorLinkColor: var(--linkColor);
		--errorLinkHoverColor: var(--linkHoverColor);
		--borderWidth: 1px solid;
		--inputColor: var(--darkGrey);
		--inputBgColor: var(--lightGrey);
		--inputBorderColor: #dee2e6;
		--inputhoverBgColor: var(--lightGrey);
		--inputhoverBorderColor: #dee2e6;
		--checkedCheckboxBgColor: #005262;
		--checkedRadioBgColor: #005262;
		--readonlyBgColor: rgba(255,255,255,0);
		--readonlyColor: var(--lightGrey);
		--readonlyBorderColor: var(--lightGrey);
		--buttonBg: rgba(247, 148, 29, 0.75);
		--buttonColor: var(--white);
		--buttonBorderColor: rgba(247, 148, 29, 0.75);
		--buttonBorderWidth: var(--borderWidth);
		--buttonHoverBg: rgba(247, 148, 29, 0.75);
		--resultHighlightColor: var(--white);
		--hrColor: var(--lightGrey);
		--trOddBg: var(--darkGrey);
		--trOddColor: var(--lightGrey);		
		--dialogTitlebarBg: #003d7b;
		--dialogTitlebarColor: var(--white);
		--focusBoxShadow:  0 0 0 .2rem #bfe7f7;
	}
	body.high-ct-enabled {
		--white: #ffffff;
		--lightGrey: rgba(204, 204, 204, 0.65);
		--darkGrey: #222222;
		--black: #000000;
		--bodyBgColor: var(--black);
		--bodyColor: var(--white);
		--headerColor: var(--white);
		--legendColor: var(--white);
		--visibleFieldsetLineColor: var(--lightGrey);
		--iconColor: var(--white);
		--linkColor: var(--white);
		--linkHoverColor: var(--white);
		--errorColor: #d00;
		--errorLinkColor: var(--black);
		--errorLinkHoverColor: var(--black);
		--borderWidth: 2px solid;
		--inputColor: var(--black);
		--inputBgColor: var(--white);
		--inputBorderColor: var(--white);
		--inputhoverBgColor: var(--white);
		--inputhoverBorderColor: var(--white);
		--checkedCheckboxBgColor: var(--black);
		--checkedRadioBgColor: var(--black);
		--readonlyBgColor: rgba(255,255,255,0);
		--readonlyColor: var(--white);
		--readonlyBorderColor: var(--lightGrey);
		--buttonBg: #f7941d;
		--buttonColor: var(--black);
		--buttonBorderColor: #f7941d;
		--buttonBorderWidth: var(--borderWidth);
		--buttonHoverBg: #f7941d;
		--resultHighlightColor: var(--white);
		--hrColor: var(--lightGrey);
		--trOddBg: var(--black);
		--trOddColor: var(--white);
		--dialogTitlebarBg: #003d7b;
		--dialogTitlebarColor: var(--white);
		--focusBoxShadow: 0 0 0 .2rem #bfe7f7;
	}
}

*,
*::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 "Prometo", sans-serif;
	background-color: var(--bodyBgColor);
	color: var(--bodyColor);
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

.nav-aria {
	position: fixed;
	top: 10px;
	left: 0;
	background: #fff;
    cursor: pointer;
    box-shadow: 0 0 3px 2px rgba(204, 204, 204, .8);
    transition: all 1s;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden;
}
.btn-contrast {
	-webkit-appearance: none;
	background-color: #fff;
    border: none;
    padding: 10px;
	text-align: left;
}
.btn-contrast.active {
	background-color: #000;
}
.btn-contrast.active svg {
	-webkit-filter:invert(1);
        filter:invert(1);
}

.icon {
	font-family: "rechner";
	font-style: normal;
	font-weight: normal;
	speak: none;     
	display: inline-block;
	text-decoration: inherit;
	font-size: 18px;
	text-align: center;
	font-variant: normal;
	text-transform: none;
	line-height: 1em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.icon-question {
    position: relative;
    top: -5px;
	padding: 0px 1px;
	color: var(--iconColor);
    cursor: help;     
}

main {	    
    max-width: 1000px;
    margin: 0 auto;
	padding: 50px 20px 20px 20px;
}
.strong {
	font-family: "Prometo", 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);
}
dfn,acronym, abbr {
	font-style: normal;
    cursor: help;
    text-decoration: underline dashed;
	text-underline-offset: 2px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--headerColor);
    font-family: "Prometo", sans-serif;
	font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}
h1 span {
	color: var(--linkColor);
}
p {
    margin-bottom: 25px;
}
p:last-child {
    margin-bottom: 0;
}
img, svg {
    vertical-align: middle;
}
.error {
	color: #d00;
}
.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 {
	width:100%;
}
.input-group {
	padding: 10px 10px;
	overflow: auto;
	display: flex;
	align-items: center;
	min-height: 61px;
}
fieldset {
	border: 0 none;
	margin: 0;
	padding: 0;
}
/* activate if applicable */
.visibleFieldset {
    margin: 10px 0 20px 0;
    border: 1px solid var(--visibleFieldsetLineColor);
	padding: 10px;
    width: auto;
}
.visibleFieldset fieldset {
    margin-left: 0;
    padding-left: 0;
}
legend {
	color: var(--legendColor);
	font-size: 14px;
    border-bottom: none;
    margin-bottom: 10px;
    width: auto;
}
div.label,
div.pseudolabel {
    border: 0;
    /* width: 33.33333333%; */
	width: 50%;
    text-align: left;
    margin: 0;
}
div.label label,
div.pseudolabel label,
div.pseudolabel span {
	font-size: 16px;
    font-weight: 700;
    margin: 0;
	line-height: 20px;
	cursor: default;
}
div.pseudolabel {
    padding: 0px 5px 0 0;
}
div.input {
   /*  width: 66.66666667%; */
   width: 50%;
}
div.input.checkbox {
    width: 50px;
}
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-bottom: 3px solid var(--iconColor);
	border-radius: .375rem;
    color: var(--inputColor);
    font-family: inherit;
    font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	padding: 6px 50px 6px 12px;	
	min-height: 40px;
    display: block;
    width: 100%; 
}
.inputinfo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    width: 50px;
	margin-left: -50px;
	color: var(--inputColor);
	background-color: transparent;
}
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
    background-color: var(--inputBgColor);
    border: var(--borderWidth) var(--inputBorderColor);
	border-radius: .75rem;
    color: var(--inputColor);
	font-family:inherit;
    font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	padding: 6px 36px 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;
}
input[readonly], select[readonly],
input[disabled], select[disabled],
input[readonly] + .addon, select[readonly] + .addon,
input[disabled] + .addon, select[disabled] + .addon {
	cursor: not-allowed;
	background-color: var(--readonlyBgColor);
	border-color: var(--readonlyBorderColor);
	color: var(--readonlyColor);
}

/* Custom Checkbox */
.customCheckbox label {
    padding-left: 40px;
    cursor: pointer;
}
input[type=checkbox] { /* hide the original */
    -moz-appearance: none;
    -webkit-appearance: none;
	appearance: none;
    position: absolute;
    display: block;
    height: 20px;
	width: 20px;
    opacity: 0;
	cursor: pointer;
}
.customCheckbox label:before { /* construct a new one in its place */
    content: " ";
    position: absolute;
    display: inline-block;
    width: 28px;
	height: 28px;
	border-radius: 5px;
    margin-left: -40px;
    background-color: var(--inputBgColor);
    border: var(--borderWidth) var(--inputBorderColor);
}
input[type=checkbox]:checked+label:before { /* condition: checked */
    content: " ";
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.3,8.7l-8.3,8.4c-.2.2-.5.4-.9.3-.3,0-.6-.1-.9-.3l-4.6-4.7c-.5-.5-.5-1.2,0-1.7s1.2-.5,1.7,0l3.8,3.9,7.5-7.5c.5-.5,1.2-.5,1.7,0s.5,1.2,0,1.7v-.1Z' style='fill:%23ffffff;'%3E%3C/path%3E%3C/svg%3E");
	background-color: var(--checkedCheckboxBgColor);
	background-repeat: no-repeat;
    background-position: center;
}

/* 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: 50px;
    color: var(--buttonColor);
	font-size: 16px;
	padding: 10px 16px;
	font-family: "Prometo", sans-serif;
	font-weight: 400;
	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);
	opacity: .75;
}
.btn:active {
	background-color: #00424e;
}

.btn-print {
  margin-bottom: 50px;
}

/* states */
* {
    outline: none !important;
}
*:focus,
*:focus-visible,
input[type=checkbox]:focus+label:before,
input[type=checkbox]:focus-visible+label:before,
input[type=radio]:focus+label:before,
input[type=radio]:focus-visible+label:before,
.icon-question:focus,
.icon-question:focus-visible,
.btn:focus,
.btn:focus-visible {
	box-shadow: var(--focusBoxShadow);
}
.icon-question:focus,
.icon-question:focus-visible {
	border-radius: 50px;
}
.ui-button:focus,
.ui-button:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px;
}
.btn-contrast:focus svg,
.btn-contrast:focus-visible svg {
	box-shadow: var(--focusBoxShadow);
    outline: 2px solid currentColor !important;
    outline-offset: 2px;	
	border-radius: 50px;
}

/* modal */
.ui-widget.ui-widget-content {
    border: 1px solid var(--black);
	background: var(--white);
}
.ui-dialog {
	/* width: 400px !important; */
	font-family: "Prometo", sans-serif;
	font-weight: 400;
	color: var(--darkGrey);
	border-radius: 8px;
}
.ui-dialog-titlebar {
	font-family: "Prometo", sans-serif;
	font-weight: 700;
	background-color: var(--dialogTitlebarBg);
	color: var(--dialogTitlebarColor);
    border: 0;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid var(--iconColor);
    background: var(--iconColor);
}
.ui-widget-overlay {
    background: #aaa;
    opacity: .6;
}


.flex,
.flex-right {
	display: flex !important;
	align-items: center;
	flex: 1;
}
.flex-right {
	justify-content: flex-end;
}

.grid {
    display: table;
    margin: 0;
    padding: 0;
    width: 100%;
}
.grid-row {
    display: table-row;
}
.grid-cell {
	display: table-cell;
	padding-bottom:5px;
	width: 50%;
	white-space: nowrap;
}
.vermerklabel {
    margin:5px 5px 5px 0;
	white-space: nowrap;
}
.kostenform .inputright {
    width: 50%;
}

.summederausgaben {
    margin: 30px 0;
}
.summederausgaben .label {
    width: 75%;
    text-align: right;
    font-weight: bold;
	padding: 7px 10px 0 0;
	display: table-cell;
}
.summederausgaben .input {
    width: 25%;
    display: table-cell;
}


div.resulttext {
    padding: 20px;
    background: var(--white);
	color: var(--darkGrey);
    margin: 20px 0;
	border-radius: .375rem;
	border: 1px solid var(--visibleFieldsetLineColor);
}

.table { border: 1px solid #ccc; border-collapse: collapse; overflow: auto; width: 100%; margin: 25px 0; }
.table th { text-align: left;}
.table td { padding: .5em; border: 1px solid #ccc; vertical-align: top; }
.table tr:nth-child(odd) td {
	background-color: #f1f1f1;
}
.printer {
	width: 20px;
    height: 20px;
	display: inline-block;
    vertical-align: -.125em;
    fill: var(--linkColor);
}
.printer:hover {
    fill: var(--linkHoverColor);
}

@media only screen and (max-width: 767.98px) {
	body {
		-webkit-hyphens: auto;
		-ms-hyphens: auto;
		hyphens: auto;
	}
	p {
		word-wrap: break-word;
		word-break: break-word;
		line-height: initial;
	}
	.fform .input-group {
		display: block;
	}
	.fform div.label,
	.fform div.pseudolabel,
	.fform div.input,
	input:not(input[type=checkbox]):not(input[type=radio]),
	select,
	.input,
	.grid	{
		width: 100%;
	}
	.ui-dialog {
		width: auto !important;
	}
	.btn {
		display: block;
		width: 100%;
		margin: 15px 0;
	}
	.grid-row .grid-cell:nth-child(1) {
		padding-right: 5px;
	}
	.grid-row .grid-cell:nth-child(2) {
		padding-left: 5px;
	}
	.summederausgaben .label,
	.summederausgaben .input	{
		width: 50%;
	}
}

@media print {
	*,
	body {
		background-color: #fff;
		color: #000;
	}
	main {
		max-width: none;
		margin: 0 auto;
		padding: 1px;
	}
	h1.visually-hidden {
		clip: none;
		clip-path: none;
		overflow: visible;
		padding: 0;
		position: relative;
		width: auto;
		color: #000;
	}
	table { page-break-inside:auto }
    tr    { page-break-inside:avoid; page-break-after:auto }
    thead { display:table-header-group }
	.btn,
	.input-group.submit,
	.footnote,
	#printlink,
	.nav-aria,
	.saveadd,
	.icon-question	{
		display: none;
	}
	input[type=text],
	select {
		min-height: unset;
		border: 1px solid #dee2e6;
		border-radius: 0;
		background-image: unset;		
	}
	.input-group {
		min-height: unset;
		padding: 5px 0;
	}
	div.resulttext {
		padding: 0;
		margin: 0;
		border-radius: 0;
		border: none;
	}
	.customCheckbox label:before { display: none }
	input[type=radio]+label:before,
	input[type=radio]:checked+label:after { display: none }
	input[type=checkbox],
	input[type=radio] { 
		-webkit-appearance: revert;
		appearance: revert;
		opacity: 1;
	}
	input[type=radio]	{
		height: 20px;
		width: 20px;
		overflow: visible;
		position: revert;
	}
	input[type=radio]+label {
		margin-left: 10px;
        padding: 0;
	}

}