* {
    box-sizing: border-box
}

html {
    margin: 0 !important;
    height: 100%;
    scroll-behavior: smooth;
    --primary: #154880;
    --accent: #00afac;
}

#wpadminbar {
    opacity: 0.15;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    position: relative;
    height: 100%;
}

img {
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

h1, h2, h3, h4 {
    margin: 0;
}

a {
    text-decoration: none;
    color: #e5be00;
}

#wrapper, main {
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding-top: 20px;
    background: #fff;
}

.calculator {
    margin: 10px;
}

.footer {
    padding-top: 8px;
    padding-bottom: 25px;
    margin-top: auto;
}

.footer>.container {
    display: flex;
    justify-content: center;
}

.footer a {
    padding: 0 7px;
    position: relative;
    color: #b3b3b3;
}

@media (max-width: 768px) {
    .footer a {
        font-size: 0.8em;
    }
}

@media (max-width: 576px) {
    .footer {
        padding-bottom: 15px;
    }

    .footer>.container {
        flex-wrap: wrap;
    }
}

@media (min-height: 850px) {
    .calculator {
        margin-top: 15px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.calculator>.container {
    max-width: 840px;
    /* background-color: #ffffff0f; */
    padding-top: 44px;
    padding-bottom: 60px;
    border-radius: 25px;
    /* box-shadow: -5px 5px 18px #15355155; */
}

@media (max-width: 768px) {
    .calculator>.container {
        width: 100%;
        padding: 9px 10px;
    }

    main {
        height: auto;
        min-height: 100%;
        padding-top: 14px;
    }
}

/********************************************/
.navbar {
    padding-top: 25px;
}

.navbar>.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar>.container {
        justify-content: center;
    }
}

.logo {
    height: 48px;
}

@media (max-width: 576px) {
    .logo {
        height: 38px;
    }
}

#top_title {
    text-align: center;
    font-weight: lighter;
    color: #717679;
    font-size: 1.5em;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 4px;
    transition: opacity 0.3s
}

#progress {
    max-width: 700px;
    height: 6px;
    margin: 25px auto;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.05);
    background-color: #c5f5bd;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    #top_title {
        font-size: 1.4em;
        letter-spacing: 3px;
    }

    #progress {
        margin: 20px 0;
    }
}

@media (max-width: 576px) {
    #top_title {
        font-size: 1.1em;
        letter-spacing: 2px;
    }
}

#progressBar {
    width: 4%;
    height: 100%;
    background-color: #25f500;
    transition: width 0.7s;
}

.title_container {
    display: flex;
    align-items: flex-start;
    position: relative;
}

#dynamic_title {
    text-align: center;
    color: #363f45;
    font-size: 1.7em;
    letter-spacing: 1px;
    position: relative;
    transition: opacity 0.3s, transform 0.4s;
    margin: 4px 64px 0;
    width: 100%;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    #dynamic_title {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    #dynamic_title {
        font-size: 1.2em;
        margin: 0 43px 23px;
    }
}

@media (max-width: 400px) {
    #dynamic_title {
        font-size: 1.05em;
    }
}

@media (max-width: 340px) {
    #dynamic_title {
        font-size: 1.02em;
    }

    #top_title {
        font-size: 1em;
        letter-spacing: 1.5px;
    }
}

#prevBtn {
    width: 60px;
    height: 60px;
    position: relative;
    cursor: pointer;
    border-radius: 7px;
    transition: opacity 0.3s;
    flex-shrink: 0;
    position: absolute;
    transform: translateY(-5px);
}

@media (hover: hover) and (pointer: fine) {
    #prevBtn:hover {
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.03);
        background-color: rgba(255, 255, 255, 0.05)
    }
}

#prevBtn::before {
    content: "";
    width: 20px;
    height: 20px;
    transform: rotate(45deg) translate(31px, -4px);
    border-left: 2px solid #777;
    border-bottom: 2px solid #777;
    z-index: 1;
    transition: transform 0.25s;
    position: absolute;
}

@media (max-width: 576px) {
    #prevBtn {
        width: 46px;
        height: 46px;
        margin-left: -10px;
    }

    #prevBtn::before {
        width: 15px;
        height: 15px;
        transform: rotate(45deg) translate(25px, -3px);
        z-index: 1;
        transition: transform 0.25s;
        position: absolute;
    }
}

.selections {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    transition: opacity 0.3s, transform 0.4s;
}

.selections:first-child {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.sel {
    width: 23.7%;
    margin: 0 10px 20px;
    padding: 2px 2px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 25px 0 rgba(24, 46, 75, 0.21);
    background-color: #fff;
    border-radius: 7px;
    cursor: pointer;
    transition: box-shadow 0.3s, background-color 0.3s;
    position: relative;
    z-index: 50;
    user-select: none;
}

.multi .sel {
    margin: 0 5px 10px;
}

@media (max-width: 576px) {
    .sel {
        margin: 0 5px 10px;
        width: 38%;
    }
}

@media (max-width: 468px) {
    .sel {
        width: 46%;
    }
}

.sel:hover {
    box-shadow: 0 12px 25px 0 rgba(24, 46, 75, 0.21), inset 0 0 0 2px #25f500;
}

.sel.active {
    box-shadow: 0 12px 25px 0 rgba(24, 46, 75, 0.21), inset 0 0 0 2px #25f500;
}

.sel>img {
    width: 100%;
    margin-bottom: 16px;
    background-color: #fff;
    border-radius: 7px 7px 0 0;
}

.sel>img.transparent {
    background: none;
}

.sel>span {
    font-weight: 500;
    color: #1c1c1c;
}

@media (max-width: 576px) {
    .sel>span {
        font-size: 0.9em;
        align-self: center;
    }
}

@media (max-width: 468px) {
    .sel>img {
        width: 76%;
    }
}

#form {
    display: none;
    position: relative;
    transition: opacity 0.3s, transform 0.4s;
    flex-direction: column;
    margin-top: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media(max-width: 576px) {
    #form {
        margin-top: 30px;
    }
}

.i_row {
    position: relative;
    margin-bottom: 14px;
}

.i_row input {
    width: 100%;
    padding: 16px 18px 16px;
    background: none;
    transition: border-color 0.2s;
    color: #1d2125;
    outline: none;
    border: 1px solid #dbddde;
    font-size: 1em;
    border-radius: 5px;
}

.inp_icon>img {
    position: absolute;
    z-index: 90;
    right: 6px;
    top: 14px;
    display: block;
    width: 22px;
    height: 22px;
    background-size: cover;
    background-position: center;
    cursor: text;
    opacity: 0;
    transition: opacity 0.3s;
}

.inp_icon.success>.check {
    opacity: 1;
}

.inp_icon.error>.cross {
    opacity: 1;
}

.i_row input::placeholder {
    color: #b2c8d7;
}

.i_row input:focus {
    border-color: #25f500;
}

#telefon_row {
    display: flex;
}

#telefon_row::after {
    content: none;
}

#telefon_row>select {
    background: none;
    color: #b2c8d7;
    border: 1px solid #dbddde;
    border-radius: 5px 0 0 5px;
    outline: none;
    padding-left: 8px;
}

#telefon_row option, #telefon_row optgroup {
    color: black;
}

#telefon_row>input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.privacy {
    font-size: 0.8em;
    color: rgb(127 127 127);
    display: flex;
    position: relative;
}

.privacy>span {
    margin-right: 16px;
}

.privacy>input {
    margin: 3px 6px 0 0;
}

@media (max-width: 768px) {
    .privacy>input {
        min-height: 17px;
        min-width: 17px;
        margin: 2px 10px 0 0;
    }
}

.privacy .inp_icon {
    display: flex;
    align-items: center;
    padding-left: 5px;
}

.privacy .inp_icon>img {
    top: auto;
}

#sendBtn,
.weiterBtn {
    color: #fff;
    background-color: #25da05;
    align-self: center;
    padding: 16px 55px 16px 38px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s, color 0.25s;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 15px;
}
.weiterBtn {
    margin-left: 20%;
    margin-right: 20%;
}

@media (max-width: 576px) {
    #sendBtn,
    .weiterBtn {
        margin-top: 15px;
    }
    .weiterBtn {
        margin-left: 5%;
        margin-right: 5%;
    }
}

#sendBtn::after,
.weiterBtn::after {
    content: "";
    width: 7px;
    height: 7px;
    transform: translate(10px, 8px) rotate(225deg);
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    z-index: 1;
    transition: transform 0.3s, opacity 0.3s;
    position: absolute;
}

#sendBtn:hover::after,
.weiterBtn:hover::after {
    transform: translate(17px, 8px) rotate(225deg);
}

#sendBtn.sending {
    color: transparent;
}

#sendBtn.sending::after {
    transform: translate(30px, 8px) rotate(225deg);
    opacity: 0;
}

.lds-dual-ring {
    opacity: 0;
    transition: opacity 0.3s;
    transition-delay: 0.3s;
    position: absolute;
    top: calc(50% - 16px);
    left: calc(50% - 16px);
}

#sendBtn.sending .lds-dual-ring {
    opacity: 1;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #3668b4;
    border-color: #3668b4 transparent #3668b4 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

#thank-you {
    display: none;
    position: relative;
    transition: opacity 0.3s, transform 0.4s;
    color: #fff;
    font-weight: lighter;
    line-height: 1.5;
    background-color: rgb(38 57 66);
    box-shadow: -6px 10px 18px 0 rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
}

#thank-you .columns {
    display: flex;
}

#thank-you .columns>* {
    width: 50%;
}

#thank-you .texts {
    padding: 35px 0 22px 32px;
    flex-shrink: 0;
}

#thank-you h3 {
    font-size: 1.4em;
}

#thank-you .image {
    margin-left: 20px;
    object-fit: cover;
}

@media(max-width: 768px) {
    #thank-you .columns {
        flex-direction: column-reverse;
        padding: 20px 22px 10px;
    }

    #thank-you .columns>* {
        width: 100%;
    }

    #thank-you .texts {
        padding: 0;
        margin: 19px 0 0;
        font-size: 0.91em;
    }

    #thank-you .image {
        margin: 0;
        border-radius: 15px;
    }
}

.insta_box {
    display: flex;
    padding: 30px 30px;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: #1b3a4f;
    font-weight: 500;
    width: 100%;
}

#terminBtn {
    background-color: #25da05;
    padding: 15px 30px;
    flex-shrink: 0;
    border-radius: 12px;
    transition: transform 0.35s, box-shadow 0.35s;
    text-align: center;
    outline: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 500;
}

#terminBtn:hover {
    transform: translate(1px, -4px);
    box-shadow: -2px 4px 10px 0 rgba(0, 0, 0, 0.24);
}

.insta_box>.before_after {
    padding: 0 45px 0 30px;
    font-size: 1.1em;
}

.insta_box>img {
    width: 50px;
}

@media(max-width: 768px) {
    .insta_box>.before_after {
        padding: 0 25px 0 25px;
        font-size: 1em;
    }
}

@media(max-width: 650px) {
    .insta_box {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .insta_box>img {
        width: 11%;
    }

    .insta_box>.before_after {
        width: 89%;
        font-size: 1.1em;
    }

    #terminBtn {
        width: 100%;
        margin-top: 18px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media(max-width: 576px) {
    .insta_box>img {
        width: 38px;
        padding-right: 2px;
    }

    .insta_box>.before_after {
        width: 0;
        flex-grow: 1;
        font-size: 0.95em;
        padding: 0 0 0 16px;
    }
}

@media(max-width: 390px) {
    .insta_box {
        padding: 20px;
        line-height: 1.26;
    }

    .insta_box>.before_after {
        padding: 0 0 0 15px;
        font-size: 0.91em;
    }
}

.left {
    transform: translateX(-15px);
}

.right {
    transform: translateX(15px);
}

.hidden {
    opacity: 0 !important;
}

.unclickable {
    visibility: hidden;
}
