:root {
    --theme-transition-time: 0s; /* on start no theme transition time - later 0.5s*/

    --gradient-color-1: #e01847;
    --gradient-color-2: #4b3252;
    --gradient: linear-gradient(to right, var(--gradient-color-1) 0, var(--gradient-color-2) 100%);

    --color-link: #ee842a;

    --color-headline: var(--gradient-color-1);
    --color-headline-on-gradient: #ffffff;

    --animation-fade-in: 2500ms cubic-bezier(1, 0, 1, 0) 0s 1 animateOpacityIn;

    --transition-ui-interaction: all 300ms ease-in-out;
}

[data-theme="light"] {
    --color-bg: #ffffff;
    --color-card-bg: #ffffff;
    --color-card-bg-80: rgba(255, 255, 255, 0.8);

    --color-fg: #000000;

    --color-lnk-down-hover-bg: rgba(0, 0, 0, 0.05);

    --box-shadow-nav: 0 0 2px 2px rgba(128, 128, 128, 1);
    --box-shadow-nav-hover: 0 0 2px 3px rgba(64, 64, 64, 0.8);
    --box-shadow-nav-show: 0 0 2px 3px rgba(0, 0, 0, 0.8);

    --color-input-border: hsl(0, 0%, 82%);
}

[data-theme="dark"] {
    --color-bg: #202020;
    --color-card-bg: #2e2e2e;
    --color-card-bg-80: rgba(46, 46, 46, 0.8);

    --color-fg: #e0e0e0;

    --color-lnk-down-hover-bg: rgba(0, 0, 0, 0.45);

    --box-shadow-nav: 0 0 2px 2px rgba(64, 64, 64, 1);
    --box-shadow-nav-hover: 0 0 2px 3px rgba(128, 128, 128, 0.5);
    --box-shadow-nav-show: 0 0 2px 3px rgba(255, 255, 255, 0.5);

    --color-input-border: hsl(0, 0%, 40%);
}

*, :before, :after {
    box-sizing: border-box;
    padding: 0;
    border: none;
    /* not margin because of dialog */
}

html, body, section, div, span, :before, :after {
    margin: 0;
}

.noUserSelect {
    user-select: none;
}

html, body {
    height: 100%;
    position: relative !important;
}

html {
    scroll-behavior: smooth;
    font-family: Open Sans, sans-serif;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-fg);
    transition: background-color var(--theme-transition-time) ease-in-out;
}

body {
    overflow: auto;
    /*overflow-x: hidden;*/
    /*wg. Transform sonst kommt kurz ein Scroller*/
}


h1, h2, h3, h4, h5, h6 {
    display: block;
    color: var(--color-headline);
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

h1 {
    display: none;
}

h2 {
    margin-left: 50px;
    margin-top: 100px;
    margin-bottom: 0;
    min-height: 55px;
    text-transform: uppercase;
    font-size: 2em;
}

h3 {
    margin-left: 60px;
    margin-bottom: -10px;
    text-transform: uppercase;
    font-size: 1.5em;
}

h4 {
    flex: 1;
    background: var(--gradient);
    color: var(--color-headline-on-gradient);
    height: 30px;
    line-height: 30px;
}

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

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

a:hover {
    text-decoration: underline;
}

a:focus {
    text-decoration: underline;
}

section {
    min-height: 100vh;
    /*border: 1px solid var(--gradient-color-1);*/

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;

    & .sectionContent {
        position: relative;
        flex: 1;
        width: 80vw;
        max-width: 1600px;
        /*border: 1px solid var(--gradient-color-1);*/
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 650px) {
    section {
        & .sectionContent {
            justify-content: center;
        }
    }
}

.additionalContent {
    position: relative;
    display: inline-flex;
    padding: 0 16px 0 4px;
    border: 2px solid var(--gradient-color-1);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.additionalContent:after {
    content: " ";
    background-image: url(../images/touch.svg);
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    right: 2px;
    top: 2px;
    width: 13px;
}


#backgroundMonitor {
    position: absolute;
    width: 30%;
    height: 30%;
    right: 0;
    bottom: 5%;
    background-image: url(../images/work.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    z-index: -1;
    min-width: 300px;
    min-height: 300px;
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

#scrollToTop {
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 5vh;
    height: 40px;
    line-height: 40px;
    padding-left: 50px;
    text-shadow: 1px 1px 0px #000000;

    &::before, &::after {
        position: absolute;
        content: "";
        border-color: var(--color-link);
        border-width: 2px;
    }

    &::before {
        border-style: solid;
        border-radius: 50%;
        left: 0;
        top: 0;
        bottom: 0;
        aspect-ratio: 1;
    }

    &::after {
        border-top-style: solid;
        border-left-style: solid;
        border-top-left-radius: 21%;
        left: 0;
        top: 0;
        aspect-ratio: 1;
        width: 20px;
        transform: translate(10px, 14px) rotateZ(45deg);
    }
}


footer {
    position: relative;
    height: 50px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width:100%;
    max-width: 100%;

    & #footerLogo {
        position: absolute;
        right: 0;
        bottom: 50px;
        height: 150px;
        width: 230px;
        background-image: url(../images/adler_logo_frayed.svg);
        background-repeat: no-repeat;
        background-size: cover;
        z-index: -1;
    }

    & #footer_lnks_container {
    width:100%;
    max-width:100%;
    overflow: auto;

    & #footer_lnks {
        text-align: right;
        height: 30px;
        line-height: 30px;
        min-width: fit-content;
        padding: 0 20px;
        box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.5);
        background: var(--gradient);
        font-size: smaller;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-end;
        gap: 12px;
        white-space: nowrap;

        & a {
            color: var(--color-headline-on-gradient);
        }
    }}

    & #footer_copyright {
        height: 20px;
        line-height: 20px;
        text-align: right;
        padding: 0 20px;
        font-size: x-small;
        color: #7e7e7e;
    }
}

#useCookieContainer {
    position: fixed;
    box-sizing: border-box;
    bottom: -200px;
    font-size: 10px;
    left: 20px;
    right: 20px;
    max-height: 50%;
    overflow: auto;
    z-index: 9;
    background: linear-gradient(to left, var(--gradient-color-1) 0, var(--gradient-color-2) 100%);
    padding: 5px 5px 5px 10px;
    color: var(--color-headline-on-gradient);
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.5);
    transition: var(--transition-ui-interaction);

    & a {
        color: var(--color-headline-on-gradient);
    }

    &.show {
        bottom: 50px;
    }

    & #useCookieOk {
        padding: 5px 10px;
        border: 2px solid var(--color-headline-on-gradient);
        border-radius: 10px;
        display: inline-block;
        margin-left: 15px;
        text-align: center;
        float: right;
        cursor: pointer;
    }
}

@media only screen and (max-width: 1500px) {
    #backgroundMonitor {
        opacity: 0.6;
    }
}

@media only screen and (max-width: 650px) {
    #backgroundMonitor {
        display: none;
    }
}

@keyframes animateOpacityIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes animateSlideIn {
    0% {
        top: -100vh;
    }
}
