@font-face {
    font-family: "Dancing-Script";
    src: url('../fonts/Dancing-Script.woff') format('woff'), url('../fonts/Dancing-Script.woff2') format('woff2');
}

@font-face {
    font-family: "Montserrat-Regular";
    src: url('../fonts/Montserrat-Regular.woff') format('woff'), url('../fonts/Montserrat-Regular.woff2') format('woff2');
}

:root {
    --nav-height: 70px;
    --footer-height: 140px;
    --clr-primary: #ba0c2f;
    --clr-secondary: #757474;
    --clr-third: #000;
    --form-height: 45px;
    --border-radius: 5px;
    --clr-text: #363636;
}

html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    position: relative;
    padding-top: var(--nav-height);
    padding-bottom: var(--footer-height);
    color: var(--clr-text);
    min-height: 100%;
    font-family: Montserrat-Regular, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.2rem;
    background-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Dancing-Script;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

#header {
    height: 530px;
    background-image: url(../header.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 57%;
    background-position-x: 48%;
    max-height: 100vw;
    min-width: 100vw;
    overflow: hidden;
    border-bottom: 2px solid var(--clr-primary);
}

.scroll-element {
    scroll-margin-top: calc(var(--nav-height) + 20px)
}

.field-validation-error,
.validation-summary-errors {
    color: red;
    font-size: 80%;
}

.validation-summary-errors {
    padding-top: 1.5rem;
}

    .validation-summary-errors:before {
        content: "Folgende Fehler sind aufgetreten:"
    }

hr {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #000, rgba(0, 0, 0, 0));
    height: 1px;
    border: 0;
}

/* --- Navbar --- */
nav {
    position: fixed !important;
    z-index: 1;
}

.logo > img {
    height: 50px;
    transition: all .3s ease-in-out;
}

.logo:focus-visible {
    outline: none;
}

#logo-mobile {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 15px;
}

.logo:hover > img, .logo:focus-visible > img {
    filter: drop-shadow(0px 0px 6px var(--clr-third));
}

.navbar {
    background-color: white;
    width: 100%;
    height: var(--nav-height);
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
    border-bottom: 1px solid rgba(54, 54, 54, 0.1);
}

.navbar-brand {
    height: 100%;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    align-content: center;
}

.navbar-brand > img {
    height: 50px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-weight: bold;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    transition: all .3s ease-in-out;
    font-size: 20px;
    color: white;
    text-transform: uppercase;
    padding-bottom: 0;
    padding-top: 0;
}

.nav-link:hover {
    color: white;
}

.nav-link:focus-visible {
    outline: 2px solid white;
}

@media (min-width: 1281px) {
    .nav-item a::after {
        background-color: white;
        content: "";
        height: 3px;
        left: 50%;
        width: calc(100% - 40px);
        position: absolute;
        top: 100%;
        transition: transform .4s;
        transform: translateX(-50%) scaleX(0);
    }
}

@media screen and (max-width: 991px) {
    #navbar-nav {
        position: absolute;
        width: 100%;
        left: 0;
        top: var(--nav-height);
        background-color: var(--clr-secondary);
        text-align: center;
    }

    .nav-link {
        padding-top: .3rem;
        padding-bottom: .5rem;
        margin-top: .3rem;
        margin-bottom: .5rem;
        width: fit-content;
        margin-inline: auto;
    }
}

.nav-item:hover a::after {
    transform: translateX(-50%) scaleX(1);
}

#navbar-toggler {
    width: 4rem;
    height: 4rem;
    background-color: transparent !important;
    border-radius: 100%;
    position: relative;
}

.nav-toggler-line {
    position: absolute;
    width: 50%;
    height: 5px;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-transparent > * .nav-toggler-line {
    background-color: white;
}

#nav-toggler-line-1, #nav-toggler-line-2, #nav-toggler-line-3 {
    transition: all 0.3s ease-in-out;
}

#nav-toggler-line-1 {
    top: 30%;
}

    #nav-toggler-line-1.selected {
        top: 24%;
        transform: rotate(-45deg) translateX(-70%);
    }

#nav-toggler-line-2 {
    top: 50%;
}

    #nav-toggler-line-2.selected {
        opacity: 0;
    }

#nav-toggler-line-3 {
    top: 70%;
}

    #nav-toggler-line-3.selected {
        top: 74%;
        transform: rotate(45deg) translateX(-70%);
    }

.open-nav {
    top: 0% !important;
}

/* +--- Verlinkungen ---+ */
.link-style {
    text-decoration: underline;
    color: var(--clr-primary) !important;
    box-shadow: inset 0 0 0 0 var(--clr-primary);
    color: #54b3d6;
    padding: 0 .25rem;
    margin: 0 -.25rem;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
}

.link-style:hover, .link-style:focus, .link-style:active {
    color: white !important;
    box-shadow: inset 600px 0 0 0 var(--clr-primary);
    cursor: pointer;
}

.link-style:focus {
    outline: 2px solid var(--clr-primary);
}

/* +--- Button ---+ */
.btn-primary, .btn-secondary {
    background-color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    border-radius: 0;
    transition: all .3s ease-in-out;
    padding: 10px 20px;
    height: 52.5px;
    line-height: 1.3;
    font-weight: 700;
    border-radius: 2px;
    font-size: 0.875em;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: white;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-primary > svg {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-right: -5px
}

.btn-secondary {
    min-width: 10rem;
}

/* +--- Label ---+ */
.control-label {
    margin-bottom: 0;
}

/* +--- Checkbox ---+ */
.control-checkbox {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    margin-right: 10px;
    background-color: white;
    border: 2px solid var(--clr-primary);
    border-radius: var(--border-radius);
    vertical-align: middle;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position-y: 60%;
    background-position-x: 45%;
}

    .control-checkbox:focus-visible {
        outline: 3px solid var(--clr-primary);
    }

    .control-checkbox:checked {
        transition: 300ms ease all;
        background-image: url(../check.svg);
        background-size: 80%;
        border: 2px solid var(--clr-primary);
        background-repeat: no-repeat;
        background-position-y: 55%;
        background-position-x: 50%;
        background-color: var(--clr-primary);
    }

    .control-checkbox:empty {
        transition: all .4s ease-in-out;
    }

.checkBox-label {
    display: flex;
}

.checkBox-label:hover {
    cursor: pointer;
}

/* +--- Radio Styles ---+ */
.radio-item {
    align-items: center;
}

    .radio-item:hover {
        cursor: pointer;
    }

    .radio-item:focus-visible {
        outline: 2px solid var(--clr-primary);
        border-radius: 3px;
    }

.radio-text {
    align-self: end;
    margin-left: 10px;
}

input[type="radio"] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    appearance: none;
    /* For iOS < 15 to remove gradient background */
    background-color: #fff;
    /* Not removed via appearance */
    margin: 0;
}

.radio-style {
    width: 20px;
    border-radius: 100%;
    height: 20px;
    display: block;
    border: 4px solid transparent;
    outline: 2px solid var(--clr-secondary);
    background-color: white;
    aspect-ratio: 1/1 !important;
    transition: all .3s ease-in-out;
}

    .radio-style:hover {
        cursor: pointer;
    }

    .radio-style:checked,
    .radio-style:focus {
        background-color: var(--clr-secondary) !important;
        width: 20px;
        height: 20px;
        display: block;
        border: 4px solid white;
        outline: 2px solid var(--clr-secondary) !important;
        background-size: contain;
        background-repeat: no-repeat;
        background-position-y: 5px;
    }

/* +--- Konakt ---+ */
#kontakt > * #Frage {
    min-height: 220px;
}

/* TNB */
#tnb h2 {
    font-size: 1.5rem;
}

/* FAQ-Panel */
#hilfe h2 {
    font-size: 1.25rem;
}

.faq-panel {
    border-radius: 15px;
    background-color: var(--clr-secondary);
}

.faq-panel-clickable {
    background-color: black;
    color: var(--clr-secondary);
    border-radius: 15px;
    padding-left: 20px;
}

    .faq-panel-clickable:hover {
        cursor: pointer;
        /*background-color: var(--clr-light-blue);*/
    }

.faq-panel-heading {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    color: white;
    margin-bottom: 0;
}

.faq-panel-icon {
    width: 24px;
    aspect-ratio: 1/1;
    display: block;
    margin-right: 20px;
}

.faq-panel-clickable {
    align-items: center;
    flex-direction: row-reverse;
}

.faq-panel-body {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 10px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    color: white;
}

.panel-icon-line {
    width: inherit;
    display: block;
    background-image: url("../Content/assets/icons/line.svg");
    background-size: 100% 100%;
    top: 0;
    left: 50%;
    transition: 300ms ease-in-out;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    aspect-ratio: 1/1;
}

.rotated {
    transform: translateX(-50%) rotate(-90deg);
    transition: 300ms ease-in-out;
}

.hr-faq {
    padding-top: 20px;
    padding-bottom: 20px;
}

    .hr-faq > hr {
        margin: 0;
    }

/* --- Form Control --- */
.form-control {
    align-self: center;
}

    .form-control::placeholder {
        color: #545454 !important;
    }

    .form-control:not(.k-input-inner) {
        line-height: 1.5 !important;
        background-color: white !important;
        font-size: 1.125rem !important;
        border-radius: var(--border-radius) !important;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        height: var(--form-height);
        color: var(--clr-text) !important;
        padding-bottom: 0;
        border: 2px solid var(--clr-secondary);
        font-weight: bold;
    }

    .form-control:focus,
    .k-picker-solid:focus,
    .k-input-solid:focus-within {
        border-color: var(--clr-primary) !important;
        outline: 0;
        box-shadow: 0 0 0 0.1rem rgba(186, 12, 47, 0.25) !important;
    }

.k-picker-solid:hover,
.k-picker-solid:focus {
    background-color: white !important;
    color: var(--clr-primary) !important;
    border: 2px solid var(--clr-secondary) !important;
}

.form-control.k-input-inner:focus {
    box-shadow: none !important;
}

.k-input-button {
    background-color: var(--clr-primary) !important;
    color: white !important;
    transition: all .3s ease-in-out;
}

    .k-input-button:hover {
        opacity: 0.9;
    }

/* - Upload - */
.k-upload {
    height: var(--form-height) !important;
    font-size: inherit !important;
    border: 2px solid var(--clr-secondary) !important;
    border-radius: .5rem !important;
    padding-left: 0.75rem;
    font-weight: 700 !important;
    font-family: Source Sans Pro, sans-serif !important;
}

.k-dropzone {
    background-color: transparent !important;
    padding: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    text-align: start !important;
}

.k-upload-button-wrap {
    height: 100%;
    width: 50%;
}

    .k-upload-button-wrap > .k-button {
        height: 100%;
        border-radius: var(--border-radius) !important;
        background-color: var(--clr-secondary);
        border: none;
        color: white;
        transition: all .3s ease-in-out;
        padding-inline: 2rem;
        min-width: 100% !important;
        font-weight: normal;
    }

.k-upload-status {
    color: var(--clr-brown) !important;
}

.k-upload-button-wrap > .k-button:hover {
    opacity: 0.9;
    background-color: var(--clr-primary);
}

.k-upload .k-upload-files .k-file:last-child {
    padding: 10px !important;
    color: var(--clr-brown);
}

.k-upload-files {
    background-color: transparent;
}

.k-clear-value {
    margin-right: 0.3rem !important;
}

.k-input-button {
    background-color: var(--clr-secondary) !important;
    color: white !important;
    transition: all .3s ease-in-out;
    padding-inline: 1rem !important;
}

    .k-input-button:hover {
        opacity: 0.9;
    }

/* --- Select --- */
select option {
    font-family: Source Sans Pro, sans-serif;
}

.select-style,
.k-dropdownlist > .k-button {
    background: url("assets/icons/chevron.svg") no-repeat right 1rem center/15px 10px !important;
    background-size: 20px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
}

/* --- Footer --- */
footer {
    position: absolute;
    height: var(--footer-height);
    bottom: 0;
    border-top: 2px solid var(--clr-primary);
}

footer li {
    text-align: center;
    align-content: center;
}

footer img {
    width: 6rem;
    transition: all .3s ease-in-out;
}

.footer-link > a {
    color: var(--clr-text)!important;
    text-transform: uppercase;
    transition: all .3s ease-in-out;
    text-decoration: none;
    font-size: 1rem;
}

.footer-link a:hover {
    color: var(--clr-text);
    text-decoration: none;
    outline: none;
}

.footer-link a:focus-visible {
    text-decoration: none;
    outline: 2px solid white;
    color: white;
}


.footer-link.logo > a:hover > img {
    filter: drop-shadow(0 0 0.75rem crimson);
}

@media screen and (max-width: 991px) {
    :root {
        --footer-height: 170px;
    }
}

@media screen and (max-width: 766px) {
}

@media screen and (max-width: 575px) {
    .footer-link {
        margin-inline: auto;
    }

    .k-upload {
        padding-left: 0;
    }

    .k-upload-button-wrap {
        width: 100%;
    }
}

@media screen and (max-width: 550px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}