﻿@font-face {
    font-family: "RecoletaRegular";
    src: url('fonts/RecoletaRegular/font.woff') format('woff'), url('fonts/RecoletaRegular/font.woff2') format('woff2');
}

@font-face {
    font-family: "RecoletaMedium";
    src: url('fonts/RecoletaMedium/font.woff') format('woff'), url('fonts/RecoletaMedium/font.woff2') format('woff2');
}

:root {
    --nav-height: 80px;
    --footer-height: 80px;
    --clr-primary: #7d68ab;
    --clr-secondary: #3e1e70;
    --form-height: 45px;
    --border-radius: 0.25rem;
}

html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    padding-top: var(--nav-height);
    padding-bottom: var(--footer-height);
    color: var(--clr-primary);
    min-height: 100%;
    font-family: RecoletaRegular;
    font-weight: 600;
    font-style: normal;
    font-size: 1.2rem;
    position: relative;
}

.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;
    padding-bottom: 1.5rem;
}

.validation-summary-errors:before {
    content: "Folgende Fehler sind aufgetreten:"
}

hr {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--clr-primary), rgba(0, 0, 0, 0));
    height: 1px;
    border: 0;
}

/* +--- Verlinkungen ---+ */
.link-style {
    text-decoration: underline;
    color: var(--clr-secondary) !important;
    box-shadow: inset 0 0 0 0 var(--clr-secondary);
    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-secondary);
    cursor: pointer;
}

.link-style:focus {
    outline: 2px solid var(--clr-secondary);
}

/* +--- Button ---+ */
.btn-primary, .btn-secondary {
    background-color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    border-radius: 50px;
    transition: all .3s ease-in-out;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: var(--clr-secondary);
    border-color: var(--clr-primary);
}

.btn-primary {
    min-width: 15rem;
    padding-inline: 40px;
}

.btn-secondary {
    min-width: 10rem;
}

/* +--- Label ---+ */
.control-label {
    margin-bottom: 0;
}

/* +--- Checkbox ---+ */
.control-checkbox {
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    margin-right: 10px;
    background-color: white;
    border: 2px solid var(--clr-primary);
    border-radius: 10% !important;
    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%;
    transform: scale(1.2);
}

.control-checkbox:checked {
    transition: 300ms ease all;
    background-image: url(/Content/assets/icons/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-primary);
    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-primary) !important;
    width: 20px;
    height: 20px;
    display: block;
    border: 4px solid white;
    outline: 2px solid var(--clr-primary) !important;
    background-color: green;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: 5px;
}

/* --- 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-primary) !important;
    padding-bottom: 0;
    border: 2px solid var(--clr-secondary);
}

.form-control:focus,
.k-picker-solid:focus,
.k-input-solid:focus-within {
    border-color: var(--clr-third) !important;
    outline: 0;
    box-shadow: 0 0 0 0.1rem rgba(0, 18, 61, 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;
}

.k-upload {
    height: auto !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% !important;
}

.k-upload-button-wrap > .k-button {
    height: 100%;
    border-radius: var(--border-radius) !important;
    background-color: var(--clr-primary);
    border: none;
    color: white;
    transition: all .3s ease-in-out;
    padding-inline: 2rem;
    font-family: ButterKeks !important;
    min-width: 100% !important;
    font-weight: normal;
}

.k-upload-status {
    color: var(--clr-brown) !important;
    font-family: MorangaMedium !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);
    font-family: MorangaMedium;
}

.k-upload-files {
    background-color:#ffffff !important;
    margin-bottom:20px !important;
}

.k-clear-value {
    margin-right: 0.3rem !important;
}

.k-input-button {
    background-color: var(--clr-primary) !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: '';
}