:root {
    --font-size-base: 16px;
    --font-family-base: Arial, Helvetica, sans-serif;

    --hc--primaryBlue: #17375E;
    --hc--accent-darkBlue: #1A508A;
    --hc--accent-skyBlue: #3E8FCC;
    --hc--accent-grey: #D4D5D9;
    --hc--accent-orange: #ED7D31;
    --hc--accent-yellow: #FFC000;
    --hc--general-white: #FFFFFF;
    --hc--general-black: #000000;

    --system-ui-maxWidth: 1080px;
    --system-ui-backgroundColor: #FAFAFA;

    --system-ui-borderColor: var(--hc--accent-grey);
    --system-ui-borderRadius_pill: 999px;
    --system-ui-borderRadius_sm: 0.25em;
    --system-ui-borderRadius_md: 0.5em;
    --system-ui-borderRadius_lg: 1em;

    --system-ui-helperTextSize: 0.75em;
    --system-ui-headerColor: var(--hc--primaryBlue);
    --system-ui-bodyColor: #3D3D3D;
    --system-ui-linkColor: var(--hc--primaryBlue);
    --system-ui-linkColor--hover: var(--hc--accent-darkBlue);
    --system-ui-labelColor: var(--hc--general-black);

    --system-score-highRGB: 56, 154, 21;
    --system-score-mediumRGB: 237, 125, 49;
    --system-score-lowRGB: 196, 62, 74;

    --system-card-backgroundColor: var(--hc--general-white);
    --system-card-cta-backgroundColor: var(--hc--primaryBlue);
    --system-card-border: none;
    --system-card-borderRadius: var(--system-ui-borderRadius_md);

    --system-progress-backgroundColor: var(--hc--accent-grey);

    --system-control-borderColor: #CED4DA;
    --system-control-depthBorderColor: #9A9FA3;
    --system-control-color: #242424;

    --system-button-primary-backgroundColor: var(--hc--primaryBlue);
    --system-button-primary-color: var(--hc--general-white);
    --system-button-primary-backgroundColor--hover: var(--hc--accent-darkBlue);
    --system-button-primary-color--hover: var(--hc--general-white);
    --system-button-primary-border: none;
    --system-button-primary-borderRadius: var(--system-ui-borderRadius_pill);
    --system-button-primary-fontSize: 1.125em;
    --system-button-primary-fontWeight: 400;

    --system-button-cta-backgroundColor: var(--hc--accent-yellow);
    --system-button-cta-color: var(--hc--primaryBlue);
    --system-button-cta-backgroundColor--hover: var(--hc--accent-yellow);
    --system-button-cta-color--hover: var(--hc--primaryBlue);
    --system-button-cta-border: none;
    --system-button-cta-borderRadius: var(--system-ui-borderRadius_pill);
    --system-button-cta-fontSize: 1.125em;
    --system-button-cta-fontWeight: 400;
    --system-button-tertiary-backgroundColor: var(--hc--general-white);
    --system-button-tertiary-color: var(--hc--primaryBlue);
    --system-button-tertiary-backgroundColor--hover: var(--system-ui-backgroundColor);
    --system-button-tertiary-color--hover: var(--hc--primaryBlue);
    --system-button-border: none;
    --system-button-borderRadius: var(--system-ui-borderRadius_sm);

    --system-hero-title-fontSize: 2.15em;
    --system-hero-title-fontWeight: 900;
    --system-hero-title-textTransform: uppercase;
    --system-hero-title-color: var(--hc--general-white);
    --system-hero-text-fontSize: 1.15em;
    --system-hero-text-fontWeight: 400;
    --system-hero-text-color: rgba(255, 255, 255, .9);
    --system-hero-text-emphasis-fontWeight: 700;
    --system-hero-text-emphasis-color: var(--hc--general-white);

    --system-tooltip-fontSize: 0.875em;
    --system-tooltip-width: 24px;
    --system-tooltip-height: 24px;
    --system-tooltip-info-color: var(--hc--accent-skyBlue);
    --system-tooltip-info-color--hover: var(--hc--general-white);

    --system-toast-backgroundColor: var(--hc--accent-yellow);
    --system-toast-textColor: var(--hc--general-black);
}

*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html,
body {
    height: 100%;
    color: var(--system-ui-bodyColor);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
label,
span:not('input-group-addon') {
    margin: 0;
    padding: 0;
}

p {
    margin: 0 !important;
}

a {
    color: var(--system-ui-linkColor);
}

a:hover,
a:focus,
a:active {
    color: var(--system-ui-linkColor--hover);
}

*>span:not('input-group-addon') {
    all: inherit;
}

*>em,
*>strong {
    font-size: inherit;
}

i,
b {
    font-size: inherit;
}

label {
    color: var(--system-ui-labelColor);
}

.hero-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    background-image: url('../assets/images/hero_bg.svg');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.ui-wrapper {
    min-height: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.nav-bar h4 {
    font-weight: 700;
    color: var(--system-ui-headerColor);
}

.nav-logo-container {
    max-width: 76px;
    width: 100%;
    max-height: 76px;
    height: 100%;
}

.header-color {
    color: var(--system-ui-headerColor);
}

.hero-title {
    font-size: var(--system-hero-title-fontSize);
    font-weight: var(--system-hero-title-fontWeight);
    color: var(--system-hero-title-color);
    text-transform: var(--system-hero-title-textTransform);
}

.hero-text {
    font-size: var(--system-hero-text-fontSize);
    font-weight: var(--system-hero-text-fontWeight);
    color: var(--system-hero-text-color);
}

.emphasis {
    font-weight: var(--system-hero-text-emphasis-fontWeight);
    color: var(--system-hero-text-emphasis-color);
}

.btn-primary {
    background-color: var(--system-button-primary-backgroundColor) !important;
    border: var(--system-button-primary-border);
    border-radius: var(--system-button-primary-borderRadius);
    font-size: var(--system-button-primary-fontSize);
    font-weight: var(--system-button-primary-fontWeight);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--system-button-primary-backgroundColor--hover) !important;
    color: var(--system-button-primary-color--hover) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.btn-cta {
    background-color: var(--system-button-cta-backgroundColor) !important;
    border: var(--system-button-cta-border);
    border-radius: var(--system-button-cta-borderRadius);
    font-size: var(--system-button-cta-fontSize);
    font-weight: var(--system-button-cta-fontWeight);
    color: var(--system-button-cta-color) !important;
    transition: all 0.3s ease;
}

.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
    background-color: var(--system-button-cta-backgroundColor--hover) !important;
    color: var(--system-button-cta-color--hover) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.btn-cta .ph {
    font-size: 1.5em;
    color: var(--system-button-cta-color) !important;
}

.card {
    background-color: var(--system-card-backgroundColor);
    border: var(--system-card-border);
    border-radius: var(--system-card-borderRadius);
}

.card-body {
    padding: 0.5em;
}

.card h5 {
    font-size: 1.1em;
}

.info-icon-container {
    width: var(--system-tooltip-width);
    height: var(--system-tooltip-height);
    background-color: transparent;
    border-radius: 999px;
}

.info-icon-container:hover,
.info-icon-container:focus {
    background-color: var(--system-tooltip-info-color);
    border-radius: 999px;
}

.info-icon-container>.info-icon {
    position: relative;
    left: 0.016em;
    font-size: 1.25em;
    color: var(--system-tooltip-info-color);
}

.info-icon-container:hover>.info-icon,
.info-icon-container:focus>.info-icon {
    color: var(--system-tooltip-info-color--hover);
}

.cta {
    background-color: var(--system-card-cta-backgroundColor);
    color: var(--hc--general-white);
}

.card-header-container {
    align-items: start;
    min-height: 48px;
}

.helper-text,
.progress-helper-text {
    font-size: var(--system-ui-helperTextSize);
}

.score-container {
    background-color: var(--system-ui-backgroundColor);
    border-radius: var(--system-ui-borderRadius_sm);
}

.dashed-divider {
    height: 2px;
    width: 100%;
    background-image: linear-gradient(to right, var(--system-ui-borderColor) 33%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 6px 1px;
    background-repeat: repeat-x;
}

.score-container-icon {
    min-width: 32px;
    width: 100%;
    background-color: var(--system-ui-backgroundColor);
    border-radius: var(--system-ui-borderRadius_md);
    aspect-ratio: 1/1;
}

.score-container-icon .ph {
    font-size: 1.5em;
}

.progress-line-container {
    position: relative;
    height: 4px;
    width: 100%;
    background-color: var(--system-progress-backgroundColor);
    border-radius: var(--system-ui-borderRadius_sm);
    overflow: hidden;
}

.progress-line {
    position: relative;
    border-radius: var(--system-ui-borderRadius_sm);
}

.progress-label {
    font-size: 0.875em;
}

[data-score="high"] .score-container,
[data-score="high"] .score-container-icon {
    background-color: rgba(var(--system-score-highRGB), 0.08);
    color: rgba(var(--system-score-highRGB), 1);
}

[data-score="high"] .progress-line {
    background-color: rgba(var(--system-score-highRGB), 1);
}

[data-score="high"] .progress-label,
[data-score="high"] #OverallScoreCategory {
    color: rgba(var(--system-score-highRGB), 1);
}

[data-score="medium"] .score-container,
[data-score="medium"] .score-container-icon {
    background-color: rgba(var(--system-score-mediumRGB), 0.08);
    color: rgba(var(--system-score-mediumRGB), 1);
}

[data-score="medium"] .progress-line {
    background-color: rgba(var(--system-score-mediumRGB), 1);
}

[data-score="medium"] .progress-label,
[data-score="medium"] #OverallScoreCategory {
    color: rgba(var(--system-score-mediumRGB), 1);
}

[data-score="low"] .score-container,
[data-score="low"] .score-container-icon {
    background-color: rgba(var(--system-score-lowRGB), 0.08);
    color: rgba(var(--system-score-lowRGB), 1);
}

[data-score="low"] .progress-line {
    background-color: rgba(var(--system-score-lowRGB), 1);
}

[data-score="low"] .progress-label,
[data-score="low"] #OverallScoreCategory {
    color: rgba(var(--system-score-lowRGB), 1);
}

.btn-tertiary {
    background-color: var(--system-button-tertiary-backgroundColor) !important;
    color: var(--system-button-tertiary-color) !important;
    border: var(--system-button-border);
    border-radius: var(--system-button-borderRadius);
    transition: all 0.3s ease;
}

.btn-tertiary:hover,
.btn-tertiary:focus,
.btn-tertiary:active {
    background-color: var(--system-button-tertiary-backgroundColor--hover) !important;
    color: var(--system-button-tertiary-color--hover) !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-tertiary .ph {
    font-size: 1.5em;
}

.obscure-breakdown {
    opacity: 0.35;
}

.tooltip-inner {
    font-size: var(--system-tooltip-fontSize);
}

.footer {
    position: relative;
    margin-top: auto;
    width: 100%;
}

body[data-view="landing"] {
    background: var(--hc--primaryBlue);
    background: linear-gradient(130deg, rgba(23, 55, 94, 1) 0%, rgba(26, 80, 138, 1) 100%);
}

body[data-view="landing"] h1 {
    color: var(--hc--general-white);
    text-shadow: 0 2px rgba(0, 0, 0, .25);
}

body[data-view="landing"]>p {
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 1px rgba(0, 0, 0, .25);
}

body[data-view="landing"] b,
body[data-view="landing"] i {
    color: var(--hc--general-white);
}

body[data-view="login"],
body[data-view="register"],
body[data-view="reset-password"],
body[data-view="password-reset-request"],
body[data-view="assessment"] {
    background-color: var(--system-ui-backgroundColor);
    background-image: url('../assets/images/herspiegel_logotype.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-attachment: fixed;
}

body[data-view="landing"] .footer {
    color: var(--system-hero-text-color);
}

body[data-view="assessment"] .footer {
    color: var(--system-ui-bodyColor);
}

.w-fit {
    width: fit-content;
}

.fw-italic {
    font-style: italic;
}

.modal-body p {
    white-space: normal !important;
}

.toast {
    background-color: var(--system-toast-backgroundColor);
    color: var(--system-toast-textColor);
    border: none;
    z-index: 10;
}

.toast .btn-close {
    color: var(--system-toast-textColor);
    opacity: 0.9;
}


.dx-texteditor.dx-editor-outlined,
.form-control {
    background-color: #fff;
    border-radius: var(--system-ui-borderRadius_sm);
    border-width: 1px;
    border-style: solid;
    border-color: var(--system-control-borderColor) var(--system-control-borderColor) var(--system-control-depthBorderColor);
    color: var(--system-ui-bodyColor);
}

.form-check .form-check-input {
    position: relative;
    top: -3px;
}


[data-dx="dxDropDownBox"]:focus,
[data-dx="dxDropDownBox"]:focus-visible,
[data-dx="dxDropDownBox"]:focus-within {
    border-color: var(--hc--primaryBlue) !important;
}

.form-control:focus {
    border-color: var(--hc--primaryBlue);
    box-shadow: none;
}

.input-group-addon {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 222;
}

.input-group-addon svg {
    color: var(--system-button-primary-backgroundColor);
    cursor: hand;
}

.form-control:valid {
    background-image: none !important;
}

.form-control:invalid {
    background-image: none !important;
}

input[type="password"]::-ms-reveal {
    display: none !important;
}

.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control, .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select, .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-right-radius: var(--system-ui-borderRadius_sm);
    border-bottom-right-radius: var(--system-ui-borderRadius_sm);
}

#Login_Form .ph,
#Register_Form .ph {
    font-size: 1.2em;
}

@media screen and (min-width: 1081px) {
    .ui-wrapper {
        max-width: 1080px;
    }

    .toast {
        max-width: 1080px;
    }
}

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

    .ui-wrapper {
        max-width: 100%;
    }

    .toast {
        max-width: 95%;
    }

    .hero-image {
        display: none;
    }

    .hero-title {
        font-size: 2.75em;
    }
}
