/*
 Theme Name:   Hello Child
 Template:     hello-biz
 Version:      1.0
*/

:root {
  --main-color: #003366;
  --main-color-90: #002a59;
  --main-color-50: #8095ab;
  --result-color: #83BC57;
  --background-color: #ffffff;
  --background-light-color: #f8f9fa;
  --border-radius-1: 6px;
  --border-radius-2: 12px;
}


.foerderungsrechner {
	max-width: 928px;
	padding: 48px;
    margin: 32px auto 0 auto;
}

.foerderungsrechner h3 {
	font-weight: 400;
	color: var(--main-color);
	text-align: center;
}

.foerderungsrechner a.cta.termin,
.foerderungsrechner .cta-info {
	display: none;
    opacity: 0;
    visibility: hidden;
}

.foerderungsrechner a.cta.termin.visible,
.foerderungsrechner .cta-info.visible {
	display: block;
	opacity: 1;
    visibility: visible;
    animation: visible;
}

.foerderungsrechner .cta-info {
	font-weight: 700;
	color: var(--main-color);
}

.foerderungsrechner a.cta.termin {
	margin: 24px auto;
}

.foerderungsrechner #final-message #betrag-info {
	margin: 0;
}

.foerderungsrechner #endbetrag {
	font-size: 42px;
	line-height: 42px;
	font-weight: 900;
	color: var(--result-color);
	margin: 18px 0 24px 0;
	animation: visible 0.3s;
}

@keyframes visible {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);  
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);  
    }
}

.foerderungsrechner .result {
	max-width: 416px;
	margin: 0 auto;
	color: var(--main-color);
}

.foerderungsrechner .result .kurs-kosten {
	border-radius: var(--border-radius-2);
	background: #e3ebf5;
	text-align: center;
	margin: 48px 0;
	padding: 32px;
}

 .foerderungsrechner .result .kurs-kosten .ergebnis-headline {
 	margin-bottom: 6px;
 }


.foerderungsrechner .result .details.wrapper {
	gap: 12px;
	max-width: 330px;
	margin: 0 auto;
}

.foerderungsrechner .result .details.wrapper > .col:not(.value) {
	flex-basis: calc(100% - 112px);
}

.foerderungsrechner .result .details.wrapper > .col.value {
	flex-basis: 100px;
	font-weight: 700;
	text-align: right;
}
	
.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.foerderungsrechner .wrapper.fields {
	gap: 12px;
}

.foerderungsrechner .wrapper.fields .col {
	flex:1;
}

.foerderungsrechner .wrapper.fields input,
.foerderungsrechner .wrapper.fields select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	
	width: 100%;
	height: 50px;
	border: 1px solid var(--main-color);
	border-radius: var(--border-radius-1);
	padding: 12px 14px;
	background: #fff!important;
	
	font-family: inherit;
	font-size: 15px;
	color: var(--main-color);
	transition: all 0.3s;
}

.foerderungsrechner .wrapper.fields input:hover,
.foerderungsrechner .wrapper.fields select:hover {
	box-shadow: 0 4px 8px rgba(0, 51, 102, 0.03), 
				0 8px 16px rgba(0, 51, 102, 0.03), 
				0 16px 32px rgba(0, 51, 102, 0.03), 
				0 32px 64px rgba(0, 51, 102, 0.03);
}

.foerderungsrechner .wrapper.fields select {
	padding: 12px 30px 12px 14px;
}

.foerderungsrechner .wrapper.fields select > option:disabled {
	color: var(--main-color-50);
}

.foerderungsrechner .wrapper.fields .select-wrapper {
	position: relative;
}

.foerderungsrechner .wrapper.fields .select-wrapper::after {
	content: '\f107';
	font-family: 'Font Awesome 6 Free';
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	position: absolute;
	top: 0;
	right: 10px;
	height: 100%;
	pointer-events: none;
}

.foerderungsrechner button#calculate {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none!important;
	
	width: 100%;
	height: 50px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	background: var(--main-color);
	border-radius: var(--border-radius-1);
	padding: 12px 18px;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 51, 102, 0.08), 
				0 8px 16px rgba(0, 51, 102, 0.08), 
				0 16px 32px rgba(0, 51, 102, 0.08), 
				0 32px 64px rgba(0, 51, 102, 0.08);
	transition: all 0.3s;
}

.foerderungsrechner button#calculate:hover {
	background: var(--main-color-90)
}


.foerderungsrechner .wrapper.fields input.error,
.foerderungsrechner .wrapper.fields select.error {
	border-color: red;
}

.foerderungsrechner .wrapper.fields .error-message {
	font-size: 13px;
	line-height: 17px;
	color: red;
	margin-top: 4px;
}

.foerderungsrechner .details .value .info {
	display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    margin-left: 3px;
    transform: translateY(-8px);
	cursor: help;
}

.foerderungsrechner .details .value .info > .help {
	display: none;
	visibility: hidden;
	opacity: 0;
	
	position: absolute;
	bottom: 25px;
	left: -10px;
	width: 300px;
	padding: 8px 12px;
	background: #fff;
	border-radius: var(--border-radius-1);
	text-align: left;
	font-size: 13px;
	font-weight: 400;
	color: var(--main-color);
	box-shadow: 0 3px 6px rgba(0, 51, 102, 0.015), 
				0 6px 12px rgba(0, 51, 102, 0.015), 
				0 12px 24px rgba(0, 51, 102, 0.015), 
				0 24px 48px rgba(0, 51, 102, 0.015);
}

.foerderungsrechner .details .value .info > .help::after {
	content: '\f0d7';
	font-family: 'Font Awesome 6 Free';
	font-size: 18px;
	font-weight: 700;
	position: absolute;
	bottom: -11px;
	left: 10px;
	color: #fff;
}

.foerderungsrechner .details .value .info:hover > .help {
	display: block;
	visibility: visible;
	opacity: 1;
	animation: show-help 0.3s;
}


@keyframes show-help {
	0% {
		opacity: 0;
		transform: scale(0.95) translateY(5px);
	}
	
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}


@media all and (max-width:1024px) {
	.foerderungsrechner .details .value .info > .help {
		right: -10px;
		left: auto;
	}
	
	.foerderungsrechner .details .value .info > .help::after {
		right: 10px;
		left: auto
	}
}

@media all and (max-width:840px) {
	.foerderungsrechner .wrapper.fields {
		flex-direction: column;
	}
}

@media all and (max-width:640px) {
	.foerderungsrechner {
		padding: 32px 20px;
	}
	
	.foerderungsrechner .result .kurs-kosten {
		padding: 32px 20px;
	}
}

@media all and (max-width:480px) {
	.foerderungsrechner .result .kurs-kosten {
		padding: 24px 12px;
	}
	
	.foerderungsrechner .cta-info {
		font-size: 13px;
		line-height: 18px;
	}
}

span.info {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}
span.info i {
    color: #0073aa;
}
span.info .help {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 0;
    background: #fff;
    color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    width: 200px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
span.info:hover .help {
    display: block;
}

.foerderungsrechner .info {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    cursor: pointer;
    z-index: 1;
}

.foerderungsrechner .info i {
    font-size: 14px;
    color: var(--main-color);
}

.foerderungsrechner .info .help {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 0;
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: var(--main-color);
    font-size: 13px;
    line-height: 1.4;
    width: 280px;
    z-index: 100;
    transition: all 0.2s ease;
}

.foerderungsrechner .info:hover .help {
    display: block;
    visibility: visible;
    opacity: 1;
}

.cta.termin.visible {
	 background-color: var(--e-global-color-accent);
	padding:16px;
	border-radius:4px;
	color:#fff;
	font-weight:bold;
	cursor:pointer;
	display:inline-block !important;
	width:auto;
}
.cta.termin.visible:hover {
	background-color:#ff9d40;
	box-shadow: 5px 5px 20px 0px rgba(255, 157, 64.00000000000003, .65);
}