/* ----- CSS Variables ----- */

:root {
    --heading-font: "Manrope", sans-serif;
    --body-font: "Roboto", sans-serif;

    --primary-color: #082841;
    --primary-offset-color: #407bb3;

    --secondary-color: #DEF5FF;

    --alt-color: #1a71f3;

    --highlight-color: #13633e;
    --highlight-offset-color: #3fb67e;

    --light-color: #FAFAFA;
    --dark-color: #070707;

    --grey-color: #5f676e;
    --grey-offset-color: #a8b2b9;
}

/* ----- General CSS ----- */

body {
    font-size: 1rem;
    font-family: var(--body-font);
    color: var(--dark-color);
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
}

main {
    /* Compensate for fixed navbar */
    padding-top: 5.8rem;
    padding-bottom: 5rem;
    background-color: var(--light-color);
    min-height: 100vh;
}

.links {
    text-decoration: none;
    font-weight: 700;
}

.main-free {
    padding-top: 8rem;
}

.table {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

/* Scroll Button */
#scroll-top {
    display: none;
    position: fixed;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: none;
    bottom: 20vh;
    right: 0.5rem;
    z-index: 999;
}

#scroll-top i {
    font-size: 2rem;
    color: var(--alt-color);
}

/* ----- General Buttons ----- */

.button {
    display: inline-block;
    padding: 0.3rem 1.1rem;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0;
    border-radius: 5rem;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, .4), inset 0px 1px 0px rgba(255, 255, 255, .7), inset 0px 0px 3px rgba(255, 255, 255, .5);
}

.button-primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(0deg,
            var(--primary-color),
            var(--primary-offset-color));
    color: var(--light-color);
}

.button-primary:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--primary-color);
}

.button-save {
    border: 2px solid var(--highlight-color);
    background: linear-gradient(0deg,
            var(--highlight-color),
            var(--highlight-offset-color));
    color: var(--light-color);
}

.button-save:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--highlight-color);
}

.button-cancel {
    border: 2px solid var(--grey-color);
    background: linear-gradient(0deg,
            var(--grey-color),
            var(--grey-offset-color));
    color: var(--light-color);
}

.button-cancel:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--grey-color);
}

.cta {
    font-size: 0.9rem;
    width: fit-content;
    padding: 0 0.8rem;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, .4), inset 0px 1px 0px rgba(255, 255, 255, .7), inset 0px 0px 3px rgba(255, 255, 255, .5);
}

.language-btn {
    border: none;
    color: var(--primary-color);
    background-color: transparent;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.language-btn img {
    height: 1.1rem;
    width: auto;
    margin-right: 0.4rem;
}

/* ----- Navbar ----- */

nav {
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
}

nav a {
    text-decoration: none;
    color: white;
}

nav i {
    font-size: 1.25rem;
}

nav .burger-icon {
    font-size: 1.5rem;
}

.navbar-collapse.collapsing {
    transition: 0.3s ease-in-out;
}

/* Red dot centred on the bottom-right corner of the burger bars:
   the bars end 0.125em above the bottom of the icon's box */
nav .burger-icon .leave-notify {
    margin-top: -0.125em;
}

/* Same padding as the nav rule above (Bootstrap's .navbar overrides it),
   keeps the navbar 3.5rem high: the side nav starts below it */
.navbar {
    --bs-navbar-padding-y: 0.75rem;
}

/* Focus ring on the burger only for keyboard users, not after a click */
.navbar-toggler:focus:not(:focus-visible) {
    box-shadow: none;
}

.nav-link {
    color: var(--light-color);
}

.navbar-nav .nav-link.active {
    color: var(--light-color);
    font-weight: 700;
}

/* Burger menu in the navbar's colour. Narrower than Bootstrap's 400px,
   still wide enough for its longest link (Arbeitszeiterfassung) */
.navbar .offcanvas {
    --bs-offcanvas-bg: var(--primary-color);
    --bs-offcanvas-width: 15rem;
}

#logo {
    height: 2rem;
    width: auto;
}

.leave-notify {
    width: 0.9rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #FF0018;
    border: 1px solid var(--primary-color);
    z-index: 99;
}

.sub-nav {
    background-color: transparent;
    padding: 0.3rem 0;
}

/* ----- Side Navbar ----- */

.side-nav {
    display: none;
    position: fixed;
    top: 3.5rem;
    bottom: 0;
    left: 0;
    width: 9rem;
    background-color: var(--light-color);
}

.side-nav .list-group-item {
    background-color: var(--light-color);
}

.side-nav>div {
    margin-top: 2.8rem;
}

.side-nav .list-group-item.active {
    background-color: var(--primary-color);
}

/* Compensate for fixed side navbar */
.content-wrapper {
    flex: 1;
    min-width: 0;
}


/* ----- Django Messages ----- */

#messages {
    position: fixed;
    top: 5.6rem;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 9999;
    font-size: 1rem;
}

.alert-success {
    background-color: #198754;
    color: var(--light-color);
    border: none;
}

.alert-danger {
    background-color: #DC3545;
    color: var(--light-color);
    border: none;
}

.alert-warning {
    background-color: #FFC107;
    color: var(--dark-color);
    border: none;
}

.alert-info {
    background-color: #0DCAF0;
    color: var(--dark-color);
    border: none;
}

#messages .alert {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Crispy Forms ----- */

.form-label {
    color: var(--primary-color);
}

/* ----- Review portal ratings (homepage, pricing) ----- */

.review-ratings a {
    text-decoration: none;
    font-weight: 700;
}

.review-ratings i {
    color: #f5a623;
}

/* ----- Footer ----- */

footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    z-index: 99;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.3);
}

footer a {
    text-decoration: none;
    color: var(--primary-color);
}

footer a:hover {
    color: var(--alt-color);
}

footer ul li {
    margin-top: 0;
}

footer ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
}

.footer-heading {
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-bottom {
    font-size: 0.85rem;
}

footer .container {
    max-width: 69rem;
}

.footer-links {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
}

.footer-links ul {
    margin: 2rem 2rem 0 2rem;
    width: fit-content;
    min-width: 9.4rem;
}


/* allauth */

.allauth a {
    text-decoration: none;
    font-weight: 700;
}

#id_password_helptext {
    margin-top: 1rem;
}

/* ----- Tap targets ----- */
/* At least 44x44px on touch screens. Padding enlarges the clickable
   area, the negative margin keeps the header layout as it was. */

.navbar-brand {
    padding: 0.375rem 0.125rem;
    margin-top: -0.375rem;
    margin-bottom: -0.375rem;
}

.navbar-toggler {
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: -0.375rem -0.7rem;
}

.navbar .btn-group>a {
    padding: 0.625rem 0;
    margin: -0.625rem 0;
}

.language-btn {
    min-height: 2.75rem;
    margin: -0.625rem 0;
}

#scroll-top {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

/* ----- Media Queries ----- */

/* Phones - below 576px */
@media screen and (max-width: 575.98px) {}

/* Small screen sizes - 360px up*/
@media screen and (min-width: 360px) {
    .main-free {
        padding-top: 7rem;
    }
}


/* Small screen sizes - 450px up to*/
@media screen and (max-width: 450px) {
    .footer-links .legal {
        order: 1;
    }
}


/* Small screen sizes - 450px up*/
@media screen and (min-width: 450px) {
    .footer-links {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
    }

}


/* Medium screen sizes - 768px up*/
@media screen and (min-width: 768px) {
    #messages {
        font-size: 1.2rem;
    }

    #messages i {
        font-size: 1.5rem;
    }
}


/* Medium screen sizes - 992px up*/
@media screen and (min-width: 992px) {
    footer ul li a {
        min-height: 1.8rem;
    }
}



/* XX-Large screen sizes - 1600px up*/
@media screen and (min-width: 1600px) {
    #scroll-top {
        right: 5vw;
    }

    .navbar .offcanvas {
        --bs-offcanvas-width: 20rem;
    }
}