@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    margin: 0;
    padding: 0;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background: white;
    font-family: 'Roboto', sans-serif;
    color: var(--darkGray);
    --darkBlue: #0f6b86ff ;
    --lightBlue: #a9dae4ff;
    --lightBlueTransparent: rgba(169, 218, 228, 0.5);
    --lightGray: #cececeff;
    --midGray: #b7b6b6ff ;
    --darkGray: #838382ff ;
    --bgWhiteGray: #f2f2f2ff;
    display: flex;
    flex-direction: column;
}

h1 {
    padding: 0;
    margin: 0;
}

.header-wrapper {
    position: relative;
    display: flex;
    background: var(--darkBlue);
    padding: 1.2rem 0;
}

#logo {
    margin-right: 1rem;
}

#input-form {
    background: white;
    width: 100vw;
    padding: 0 20rem;
    padding-top: 3%;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
}

#site-section-input-1 {
    padding: 0 32%;
}

#site-section-input-2 {
    padding: 2rem 32%;
    background: var(--lightBlueTransparent);
}

#site-section-input-2 .input-parameter {
    color: var(--darkBlue);
}

#site-section-input-3 {
    padding: 0 32%;
}

.input-section-title {
    margin: 0 -14%;
    padding-bottom: 1.2rem;
    display: flex;
    gap: 1.2rem;
    place-items: center;
    color: var(--darkBlue);
}

.title-icon {
    height: 3.8rem;
    width: auto;
}

.calc-wrapper {
    padding: 2% 0;
    color: var(--lightGray);
    background-color: var(--lightBlueTransparent);
    font-weight: 300;
    display: grid;
    grid-row: 0.4fr 1fr 0.2fr 0.8fr;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

#check-icon {
    grid-row: 1;
    grid-column: 1;
    height: auto;
    width: 3.4rem;
    opacity: 0;
    animation: rotate 1.7s linear infinite;
}

@keyframes rotate {
    0% {
        transform-origin: center center;
        transform: rotate(0deg);
    }
    25% {
        transform-origin: center center;
        transform: rotate(-20deg);
    }
    50% {
        transform-origin: center center;
        transform: rotate(0deg);
    }
    75% {
        transform-origin: center center;
        transform: rotate(20deg);
    }
    100% {
        transform-origin: center center;
        transform: rotate(0deg);
    }
}

#calc-box {
    grid-row: 1;
    grid-column: 2;
    color: var(--darkGray);
    font-weight: 300;
}

#arrow-icon {
    grid-row: 1;
    grid-column: 3;
    height: auto;
    width: 3.4rem;
}

#res-copy-arrows {
    height: auto;
    width: 2.2rem;
}

#calculate-now-btn {
    grid-row: 1;
    grid-column: 4;
    transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
}

.calc-ready {
    color: var(--darkBlue);
    font-weight: 600;
}

.input-parameter {
    font-size: large;
    font-weight: 400;
    color: var(--darkGray);
}

.input-field {
    width: 100%;
    position: relative;
    background: white;
    border-radius: 16px;
    border: solid;
    border-color: var(--midGray);
    border-width: 2px;
    padding-left: 0.6rem;
    padding-right: 1rem;
    font-size: medium;
    color: var(--darkGray);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-field:hover {
    border-color: var(--lightBlue);
}

input[type=text] {
    background: none;
    width: 68%;
    height: 3rem;
    font-size: medium;
    border: none;
    padding: 0;
    font-weight: 300;
}

.unit {
    font-weight: 500;
}

select {
    border: none;
    background: none;
    font-size: medium;
    color: var(--darkGray);
    font-weight: 500;
}

select > option {
    border: none;
    background: none;
    font-size: medium;
    color: var(--darkGray);
    font-weight: 500;
}

.selection-field {
    display: flex;
    place-items: center;
    gap: 2rem;
}

input[type=text]:focus {
    outline: none;
}

.calculator-btn {
    border: none;    
    border-radius: 100px;
    background: var(--darkBlue);
    color: white;
    font-weight: 600;
    font-size: medium;
    padding: 0.6rem 0.4rem;
    width: 136px;
    display: flex;
    place-content: center;
    white-space: nowrap;
    transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
}

.calculator-btn:hover {
    cursor: pointer;
    background: var(--lightBlue);
    color: var(--darkBlue);
}

.calculator-btn:active {
    border: solid;
    border-width: 3px;
    border-color: var(--darkBlue);
    background: var(--lightBlue);
    color: var(--darkBlue);
}

#site-section-input-1 > input[type="reset"] {
    border: solid;
    border-width: 3px;
    border-color: white;
}

#site-section-input-1 > input[type="reset"]:active {
    border: solid;
    border-width: 3px;
    border-color: var(--darkBlue);
    background: var(--lightBlue);
    color: var(--darkBlue);
}

#text-illustration > button:active {
    border: solid;
    border-width: 3px;
    border-color: var(--darkBlue);
    background: var(--lightBlue);
    color: var(--darkBlue);
}

#res-download-btn {
    padding: 0.6rem 7.2rem;
}

.site-header {
    position: relative;
    display: flex;
    grid-auto-flow: column;
    width: 100vw;
    padding: 0 12%;
}

#start-headline {
    color: white;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    padding: 1rem 0;
}

#start-headline > img {
    margin-right: 2rem;
    height: auto;
    width: 4rem;
    align-self: center;
    margin-bottom: 9px;
}

#start-title {
    display: flex;
    flex-flow: row;
    align-items: baseline;
    gap: 0.9rem;
    width: 100%;
    font-size: 1.4rem;
}

#start-title > h2 {
    font-weight: 400;
}

#headline {
    color: white;
    display: grid;
    grid-auto-flow: column;
    align-items: center;

}

#headline > a > img {
    margin-right: 2rem;
    height: auto;
    width: 3rem;
    align-self: center;
}

#site-title {
    display: flex;
    flex-flow: row;
    align-items: baseline;
    gap: 0.9rem;
    width: 100%;
    font-size: 1rem;
}

#site-title > h2 {
    font-weight: 400;
}

main {
    position: relative;
}

#start-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

#text-illustration {
    justify-content: center;
    padding: 0 12%;
    display: grid;
    grid: 1fr auto / minmax(23.5rem, 33rem) minmax(330px, 450px);
    column-gap: 7%;
    align-items: center;
}

#start-text {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    padding-top: 1rem;
}

#illustration {
    grid-row: 1 / span 2;
    grid-column: 2;
    height: auto;
    width: 100%;
}

#text-illustration > button {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
    align-self: center;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border: solid;
    border-width: 3px;
    border-color: white;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
    padding-top: 2rem;
}

.res-section-wrapper {
    max-width: 72rem;
    padding: 2rem;
    display: grid;
    grid: 48px auto 0.3fr 2fr / 3fr 3fr; /*Reihen / Spalten*/
    gap: 2rem;
    justify-items: center;
    align-items: baseline;
    place-content: center;
    margin: auto;
    margin-bottom: 6rem;
}

#goBack-btn {
    grid-column: 1 / span 2;
    grid-row: 1;
    justify-self: flex-start;
    margin-left: 2rem;
    width: 14rem;
    background: white;
    color: var(--darkGray);
    border: solid;
    border-color: var(--lightBlue);
    border-width: 3px;
    transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
}

#goBack-btn:hover {
    background: var(--lightBlueTransparent);
    border-color: var(--darkBlue);
    color: var(--darkBlue);
}

#goBack-btn:active {
    border-color: var(--lightBlue);
    background: var(--lightBlue);
    color: var(--darkBlue);
    font-weight: 600;
}

#res-copy-wrapper {
    background: var(--lightBlueTransparent);
    padding: 3% 6%;
    border-radius: 12px;
    grid-column: 1 / span 2;
    grid-row: 2;
    align-items: center;
    display: flex;
    grid-auto-flow: column;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 1.75rem;
}

#selected-calculations {
    grid-column: 2;
    grid-row: 3;
    font-weight: 400;
    color: var(--lightGray);
}

#res-copy-text {
    color: var(--darkBlue);
}

#res-section {
    grid-column: 1 / span 2;
    grid-row: 4;
    display: inline;
}

.result-field {
    font-weight: normal;
}

.res-value-field {
    font-weight: normal;
}

.noValue {
    color: var(--lightGray);
}

.resValue {
    color: var(--darkBlue);
    font-weight: 400;
    background: var(--lightBlueTransparent);
    padding: 0.2rem 0.6rem;
}

.tg {
    border-collapse: collapse;
    border-spacing: 0;
}

.tg td {
    border-color: var(--darkBlue);
    border-style: solid;
    border-radius: 16px;
    border-width: 1.65px;
    font-size: 14px;
    overflow: hidden;
    padding: 10px 6.5px;
    word-break: normal;
}

.tg th {
    border-color: var(--darkBlue);
    border-style: solid;
    border-radius: 16px;
    border-width: 1.65px;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    padding: 10px 6.5px;
    word-break: normal;
}
    
.tg .tg-0lax {
    text-align: left;
    vertical-align: center;
}

#women-th {
    background: var(--lightBlue);
    color: var(--darkBlue);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: large;
    padding-left: 1.2rem;
}

#men-th {
    background: var(--darkBlue);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: large;
    padding-left: 1.2rem;
}

#tsf-table {
    display: none;
}

#muac-mamc-table {
    display: none;
}

#calc-res-section-wrapper {
    grid-column: 1;
    grid-row: 3;
    padding-top: 2rem;
}

.site-section-calc {
    margin-top: 2rem;
}

#help-title {
    display: inline-block;
    padding-right: 0.6rem;
}

#help-title-2 {
    font-weight: 400;
    display: inline-block;
}

#center-help-title {
    padding: 0 3%;
    padding-top: 2%;
    padding-bottom: 1%;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

#help-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.2rem, 8.2rem));
    gap: 1rem;
    place-items: center;
    justify-content: center;
    padding: 0 3%;
}

.help-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.help-label .custom-help-checkbox {
    display: flex;
    place-items: center;
    justify-content: center;
    padding: 1rem;
    width: 6rem;
    height: 4rem;
    border: solid;
    border-width: 3px;
    border-color: var(--lightBlue);
    border-radius: 16px;
    font-weight: 400;
    transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
}

.help-label .custom-help-checkbox:hover {
    cursor: pointer;
    background: var(--lightBlueTransparent);
    color: var(--darkBlue);
    border-color: var(--darkBlue);
}

.help-label input:checked ~ 
.custom-help-checkbox {
    border-color: var(--lightBlue);
    background-color: var(--lightBlue);
    color: var(--darkBlue);
    font-weight: 600;
}

.input-field.show-help {
    border-radius: 16px;
    border: solid;
    border-width: 4px;
    border-color: var(--darkBlue);
}

.selection-field.show-help {
    border-radius: 16px;
    padding: 0.9rem 0.7rem;
    border: solid;
    border-width: 4px;
    border-color: var(--darkBlue);
}

#error-box {
    display: flex;
    place-content: center;
    padding: 2.6rem 0rem;
    color: darkred;
}

.gender-icon {
    height: auto;
    max-width: 1.6rem;
    padding-left: 3%;
}

.impressum {
    padding: 2rem 14%;
    min-height: 60vh;
}

footer {
    margin-top:auto;
    width: 100vw;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.15) 10px 3.2px 2.4px;
}

.footer-bottom-bar {
    position: relative;
    bottom: 0;
    display: flex;
    padding: 1rem;
    background: white;
}

.footer-menu {
    margin: auto;
    align-items: center;
}

.footer-menu > a {
    text-decoration: none;
    color: var(--darkBlue);
}

.footer-menu > a:hover {
    color: var(--lightBlue);
    font-weight: 600;
}

.weight-field {
    margin: 1rem;
}

.height-field {
    margin: 1rem;
}