@import "pico.zinc.min.css";
@import url("https://use.typekit.net/axb0iio.css");

:root {
    --default-x: 11vw;
    --default-color: #4C4E4F;   /* Background contrast color (used in .bg) is 10% darker (HSL -> L-10% -> 30% -> 20%) */
    /* Changed --pico-primary --pico-color --pico-muted-color --pico-h1-color to #4C4E4F */
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: bilo, sans-serif;
    background-color: var(--pico-background-color);
}

nav {
    padding-right: var(--default-x);
    padding-left: var(--default-x);
    background-color: var(--pico-accordion-border-color);
    position: fixed;
    width: 100vw;
    z-index: 1;
}

.backToTop {
    position: fixed;
    width: 4rem;
    bottom: 4rem;
    right: 3.25rem;
    z-index: 99;
    transform: translateX(10rem);
    opacity: 0;
    background-color: var(--pico-background-color);
    border-color: var(--pico-card-border-color);
}

.backToTop > p {
    font-size: 1.5rem;
    transform: scaleX(130%) scale(150%);
    margin-bottom: 0;
    font-weight: 400;
    padding-top: .5vh;
    color: var(--pico-color);
}

.backToTop:hover {
    background-color: var(--pico-color);
}

.backToTop:hover > p {
    color: var(--pico-background-color);
}

.activeBackToTop {
    opacity: 1;
    transform: translateX(0rem);
    transition: .2s;
}

ul[dir="rtl"] {
    width: fit-content;
}

.title {
    width: 100vw;
    height: 100vh;
    position: relative;
}

main.container {
    position: relative;
}

.retract {
    opacity: .5;
    transition: .2s;
    transform: translateY(-0.5rem);
}

.retract:hover {
    opacity: 1;
    transform: translateY(0rem);
    transition: .2s;
}

p {
    font-weight: 200;        /*Font-Weight variable in 100-Steps (100, 200, 300,...)*/
}

.sectionImg {
    border-radius: 1rem;
    height: fit-content;
}

#historie > section > article {
    display: flex;
    justify-content: space-around;
}

.sectionTextContainer {     /*Text*/
    align-content: center;
    padding: 3vh 1.5vw;
}

.sectionImgContainer {     /*Images*/
    display: inline-block;
    max-width: 30vw;
    align-content: center;
    padding: 2vh;
}

.vertical {
    max-height: 60vw;
}

.vertical > img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

#icon {
    width: 5vw;
    fill: var(--pico-color);
}

#logo {
    width: 30vw;
    fill: var(--pico-switch-color);
}

#jahre {
    width: 10vw;
    fill: var(--pico-switch-color);
    padding-top: 5vh;
}

.logoContainer {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding-top: 10vh;
}

.logoContainer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 35vw;
}

.logoContainer p {
    color: var(--pico-switch-color);
    font-weight: 300;
    font-size: 2.75vw;         /*Scale with width of screen*/
}

video {
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    object-fit: cover;
    z-index: 0;
}

.bg {
    position: absolute;
    height: 100%;
    width: 100vw;
    top: 100vh;
    background-color: var(--pico-accordion-border-color);
    box-shadow: 0 0 30px 40px var(--pico-accordion-border-color);
}

#privatkunde, #gewerbe, #hausverwaltung, #zeiten {
    scroll-margin-top: 10vh;
}

.current {
    opacity: .5;
    cursor: default;
}

#kontakt {
    margin-top: 0;
    margin-bottom: calc(var(--pico-block-spacing-vertical) * 2);
}

main#kontakt > article, main#datenschutz > article {
    height: fit-content;
    flex-wrap: wrap;
    justify-content: space-evenly;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: var(--pico-block-spacing-vertical);
    grid-row-gap: var(--pico-block-spacing-horizontal);
    grid-template-areas:
    "adresse rechtliches";
    background-color: var(--pico-accordion-border-color);
}

main#datenschutz > article {
    display: block;
}

article > article {
    height: 100%;
    width: 100%;
}

#anschrift {
    grid-area: adresse;
}

#rechtliches {
    grid-area: rechtliches;
}

footer {
    background-color: var(--pico-accordion-border-color);
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    padding: 0 12vw;
    height: 25vh;
    box-shadow: var(--pico-box-shadow);
}

footer > div:nth-child(1) {
    display: flex;
    width: 50vw;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3vw;
}

footer > div > div:nth-child(1) {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    width: min-content;
}

footer > div > div > svg {
    width: 15vw;
}

footer > div > div > p {
    font-size: 1.4vw;
    margin: 0;
    padding: 0;
}

#datenschutz {
    margin-top: 0;
}

.timelineContainer {
    margin: 0;
    padding-bottom: 10vh;
    box-sizing: border-box;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pico-accordion-border-color);
}

.timelineEntry > article{
    background-color: var(--pico-accordion-border-color);
}

#timeline {
    align-content: center;
    background-color: var(--pico-accordion-border-color);
}

#timeline > h1{
    margin-left: var(--default-x);
}

.timeline {
    width: 80%;
    height: auto;
    max-width: 1520px;
    margin: 0 auto;
    position: relative;
}

.timeline ul li {
    list-style: none;
}

.timeline ul li {
    padding: 20px;
    background-color: var(--pico-background-color);
    color: var(--pico-color);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.timeline ul li:last-child {
    margin-bottom: 0;
}

.timeline-content .datum {
    margin-bottom: 10px;
    font-weight: 100 !important;

}

@media screen and (max-width: 992px) {
    .container {
        max-width: 90vw;
    }

    p, nav ul li {
        font-size: calc(1rem + 1.5vh) !important;
    }

    h1 {
        font-size: calc(2rem + 1.5vh);
    }

    footer {
        font-size: calc(0.5rem + 1.5vh);
        padding: 0 1vh;
    }

    footer > div {
        width: fit-content;
    }

    footer > div:nth-child(2) {
        display: inline;
        text-align: right;
        padding-right: 1vh;
    }

    nav {
        height: 12vh;
        justify-content: center;
    }

    nav > ul {
        width: 100%;
        justify-content: space-around;
    }

    nav ul:first-child {
        display: none;
    }

    summary {
        height: fit-content !important;
    }

    summary::after {
        translate: 1px 1px;
    }

    footer svg  {
        display: none;
    }

    footer > div > div > p {
        display: none;
    }

    #historie > section > article > .sectionImgContainer {
        display: none;
    }

    #logo {
        width: 50vw;
    }

    .logoContainer p {
        font-size: 3.6vw;
    }

    #jahre {
        width: 30vw;
    }

    .backToTop {
        display: none !important;
    }
}
