@import url("../webfonts/Montserrat.css");

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    src: url('../webfonts/MaterialIcons-Regular.ttf') format('truetype');
  }
  
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    --accentColor: rgb(255, 100, 22);
    --textMainColor: rgb(32, 32, 32);
    --textSecondaryColor: rgb(115, 115, 115);
    --backgroundMainColor: white;
    --backgroundSecondaryColor: rgb(240, 240, 240);
    --siteWidth: 56vw;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

*:focus {
    outline: none;
    box-shadow: none;
}

a {
    color: var(--accentColor);
    height: 100%;
}

a:hover {
    color: var(--textSecondaryColor);
    transition: 0.2s;
}

a:hover i {
    color: var(--textSecondaryColor);
    transition: 0.2s;
}

body {
    margin: auto;
    color: var(--textMainColor);
    overflow-x: hidden;
}

p {
    padding: 1vh 0vw;
    line-height: 1.75rem;
    color: var(--textSecondaryColor);
}

h1 {
    font-size: 2rem;
    font-weight: 500;
    padding: 1rem 0vw;
}

h2 {
    font-size: clamp(.5rem, 1vw, 1.5rem);
    font-weight: 500;
    padding: .5rem 0vw;
    line-height: 2rem;
}

h3 {
    font-weight: 500;
    padding: 1vh 0vh;
}

ul {
    list-style: none;
}

.grid {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-auto-flow: row;
    align-items: center;
    margin-bottom: 3rem;
}
.grid > div, .grid > p{
    padding: 2rem;
}
.wide{
    grid-column: 1 / 3;
    padding: 2rem 2rem !important;
}
.backgroundSecondary {
    background-color: var(--backgroundSecondaryColor);
}

.dislocate {
    top: 6vh;
}
.dreifach{
    grid-template-columns: 1fr 6ch 1fr;
}
.vertical-line{
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.vertical-line .line{
    position: absolute;
    top: 0;
    width: 0.1rem;
    height: 110%;
    background-color: var(--accentColor);
    border-radius: 0;
    border: none;
    z-index: -1;
}
.vertical-line .line.first{
    top: 50%;
}
.vertical-line .line.last{
    top: -50%;
}
.vertical-line > div{
    background-color: var(--accentColor);
    border-radius: 50%;
    width: 6ch;
    height: 6ch;
    color: var(--backgroundMainColor);
    border: 10px solid var(--accentColor);
    padding: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain{
    height: 14rem;
    width: var(--siteWidth);
    display: flex;
    margin: auto;
}
.curtainElement::before{
    content: "";
    filter: brightness(40%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: filter ease .2s;
}
.curtainElement:nth-child(1)::before{
    background-image: url("../img/gruppenbild_2021.png");
    
}
.curtainElement:nth-child(2)::before{
    background-image: url("../img/Zeiterfassung_2018.png");
    
}
.curtainElement:nth-child(3)::before{
    background-image: url("../img/Historie.png");
    
}
.curtainElement{
    position: relative;
    width: 33%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    transition: flex ease .2s;
}
.curtainElement:hover{
    flex: 3;
    color: inherit;
}
.curtainElement:hover h3{
    opacity: 100%;
}
.curtainElement:hover::before{
    filter: brightness(80%);
}
.curtainElement > *{
    position: relative;
}

.curtainElement a {
    color: white;
}

.curtain h3 {
    opacity: 0%;
    font-size: 2rem;
    position: relative;
    color: white;
    text-shadow: 2px 2px black;
    transition: opacity ease .2s;
}

.curtain img {
    width: 355px;
    height: 200px;
    object-fit: cover;
    object-position: 46% 100%;
    filter: brightness(40%);
}

/* .curtain div:first-child img {
    border-radius: 10px 0px 0px 10px;
}

.curtain div:last-child img {
    border-radius: 0px 10px 10px 0px;
} */

.active h3 {
    color: white;
}

.references {
    background-color: var(--accordionBackground);
    text-align: center;
}

.references img {
    cursor: pointer;
    width: auto;
    max-width: 90%;
    max-height: 90%;
}

.scrollingImg {
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.scrollingImg div {
    background-color: white;
    width: 25%;
    height: 10rem;
    border-style: solid;
    border-color: var(--accentColor);
    display: flex;
    justify-content: center;
    align-items: center;
}

a.button{
    display: inline-block;
}

button, a.button {
    padding: 0.5rem 1rem;
    margin: 1rem;
    color: var(--accentColor);
    background-color: transparent;
    border: 2px solid var(--accentColor);
    border-radius: 1%;
    cursor: pointer;
}

button:hover, a.button:hover {
    background-color: var(--accentColor);
    color: var(--backgroundMainColor);
    transition: 0.2s;
}

button:hover a {
    color: var(--backgroundMainColor);
    transition: 0.2s;
}

.center {
    text-align: center;
}
.centerMargin{
    margin-left: auto;
    margin-right: auto;
    width: min-content;
}

.siteWidth {
    width: var(--siteWidth);
    margin: auto;
}

.material-icons {
    font-family: 'Material Icons';
    font-size: 2rem;
    font-style: normal;
    color: var(--accentColor);
    flex: 1;
    align-self: start;
    padding: 1rem 0.5rem;
    display: flex;
    align-items: center;
    justify-self: end;
}

.whiteText { 
    color: white;
    text-shadow: 0.5px 0.5px 0.5px var(--backgroundMainColor);
}

.blackText {
    color: var(--textMainColor);
    text-shadow: 0.5px 0.5px 0.5px var(--backgroundMainColor);
}

header {
    position: sticky;
    top: 0px;
    height: 9vh;
    margin: auto;
    transition: 0.2s;
    background-color: white;
    box-shadow: 1px 1px lightgray;
    z-index: 25;
    min-height: 3.5rem;
}

.titleBar {
    display: flex;
    height: 100%;
    width: var(--siteWidth);
    margin: auto;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100%;
}

.logo img {
    width: auto;
    height: 100%;
    padding: 10% 5% 10% 0%;
}

img {
    width: 100%;
}

nav {
    height: 100%;
}

nav ul {
    display: flex;
    justify-content: space-around;
    font-weight: 500;
    color: var(--accentColor);
    align-items: center;
    height: 100%;
    width: auto;
}

nav ul li {
    padding: 0vh 0vw 0vh 2vw;
    height: 100%;
}

nav ul li a {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li i {
    height: 100%;
}

.popUpMenu {
    visibility: hidden;
    position: fixed;
    top: 9vh;
    transition: opacity 0.2s;
    min-width: 10vw;
    padding: 0.5rem 0 1rem 1rem;
    background-color: var(--backgroundMainColor);
    box-shadow: 0px 2px 2px lightgray;
    border-left: 1px solid var(--backgroundSecondaryColor);
    border-right: 1px solid var(--backgroundSecondaryColor);
    border-bottom: 1px solid var(--backgroundSecondaryColor);
    border-top: 1px solid white;
}
.unterMenu{
    position: absolute;
    left: 100%;
    top: 0rem;
    transition: visibility 0.2s ease;
}
.unterMenuPfeil{
    padding: 0 .5rem;
    margin: -1rem 0;
    align-self: center;
}

.visible {
    display: block;
    visibility: visible;
    transition: visibility 0s;
}

.popUpMenu ul {
    justify-content: left;
    display: block;
}

.popUpMenu ul li {
    padding: 0.75rem 0rem;
    padding-right: 1rem;
}

.telefonPopUp {
    position: absolute;
    top: 0;
    left: calc(calc(calc(100vw - var(--siteWidth)) / 2) + var(--siteWidth) + 3rem);
    margin: auto;
    max-width: calc(calc(100vw - var(--siteWidth)) / 2 - 2rem);
    padding: 1rem;
    height: 4.75rem;
    background-color: var(--accentColor);
    color: var(--backgroundMainColor);
    font-size: 0.75rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.telefonPopUp div {
    width: 100%;
    font-size: 0.66vw;
}

.telefonPopUp .material-icons {
    color: var(--backgroundMainColor);
    padding: 0rem 0.5rem 0rem 0rem !important;
    margin: auto;
}

.telPopUpNr {
    font-size: 1.25vw;
    font-weight: bold;
}

main {
    margin: auto;
}

section {
    padding: 3vh 0vw 3vh 0vw;
}

section:nth-child(1) {
    padding: 1vh 0vw 3vh 0vw;
}

.titles {
    flex: 1;
    padding-top: 2%;
}

.hamburger {
    display: none;
}

#mobileNav {
    display: none;
    position: fixed;
    top: 9vh;
    left: 0;
    padding: 1vh;
    background-image: linear-gradient(var(--backgroundMainColor), var(--backgroundMainColor), transparent 110%);
    height: 100%;
    width: 100%;
}

#mobileNav ul li {
    padding: 1vh;
    font-size: 1.5rem;
}

.flex {
    display: flex;
    align-items: center;
}

.flexTop {
    align-items: flex-start;
}

.flex div {
    flex: 1;
    justify-content: space-between;
}

.flexDivider {
    max-width: 1.5rem;
}

.flex i {
    max-width: 3vw;
    justify-content: center;
    padding-left: 0;
}

.card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 2rem;
    box-shadow: 0.5px 0.5px 2.5px lightgray;
}

.dreierGruppe {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.dreierCard {
    width: 30%;
    margin-left: 5%;
    display: flex;
    flex-direction: column;
}
.flex-grow{
    flex-grow: 1;
}

.panel {
    padding: 0 0 12vh 0;
    display: none;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.65);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-height: 80%;
    margin-top: 7em;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 150px;
    font-size: large;
}

.modal-content, .caption {
    animation-name: zoom;
    animation-duration: 0.5s;
}
.close {
    position: absolute;
    bottom: 80vh;
    left: 90vw;
    color: var(--accentColor);
    font-size: 120px;
    font-weight: bold;
    transition: 0.25;
}

.close:hover, .close:focus {
    color: var(--accentColor);
    text-decoration: none;
    cursor: pointer;
}


footer {
    background-color: rgb(75, 75, 75);
    color: var(--backgroundMainColor);
    padding: 5vh 0vw 2vh 0vw;
}

footer .siteWidth {
    display: grid;
    grid-column-gap: 1vw;
    grid-row-gap: 2vh;
    grid-template-columns: repeat(3, 1fr 4fr);
    grid-template-rows: 1fr 3fr 1fr;
}

footer .siteWidth h2 {
    padding-top: 1rem;
    padding-bottom: 0vh;
    border-bottom: 1px solid var(--backgroundMainColor);
}

footer .siteWidth ul {
    line-height: 2rem;
    grid-row: 2 / 3;
}

footer .siteWidth ul:nth-of-type(1) {
    grid-column: 2 / 3;
}

footer .siteWidth ul:nth-of-type(2) {
    grid-column: 4 / 5;
}

footer .siteWidth ul:nth-of-type(3) {
    grid-column: 6 / 7;
}

footer a {
    color: var(--backgroundMainColor);
}

.copyright {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
}

.copyright a {
    color: var(--accentColor);
}

.datenschutz ul {
    list-style: circle;
    margin-left: 1rem;
    color: var(--textSecondaryColor);
    line-height: 1.75rem;
}

.box {
    padding: 1rem 1rem 1rem 1rem;
    background-color: transparent;
    color: var(--accentColor);
    justify-content: space-between;
    align-items: center;
    /* cursor: pointer; */
    cursor: default;
    border: 2px solid var(--accentColor);
    user-select: none;
}

.neuigkeit{
    padding: 1rem 0;
}
.neuigkeit small{
    color: var(--accentColor);
    font-weight: 500;
}
.neuigkeit h2{
    padding: 0;
}
.neuigkeiten > a{
    margin-left: 0;
}



@media only screen and (min-width: 1601px) {
    .dreierCard:nth-child(3n-2) {
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 1600px) and (min-width: 801px) {
    * {
        --siteWidth: 95vw;
    }
    html {
        font-size: smaller;
    }
    .dreierCard {
        width: 30%;
    }
    .dreierCard:nth-child(3n-2) {
        margin-left: 0 !important;
    }
    .telefonPopUp {
        visibility: hidden;
    }
}

@media only screen and (max-width: 800px) {
    * {
        --siteWidth: 95vw;
    }
    a {
        min-height: 48px;
    }
    html, body {
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
        line-height: 30px;
    }
    p {
        font-size: large;
        line-height: 25px;
    }
    li {
        margin-top: 2vh;
        font-size: larger;
    }
    .checkpoints {
        flex-direction: column;
    }
    .checkpoints i {
        align-self: center;
    }
    html {
        font-size: x-small;
    }
    header nav ul {
        display: none;
    }
    .hamburger {
        display: block;
    }
    footer .siteWidth {
        grid-template-rows: 0.2fr 0.2fr 0.2fr 0.2fr 0.2fr;
    }
    footer .siteWidth ul:nth-of-type(3) {
        grid-row: 4 / 5;
        grid-column: 2 / 4;
    }
    footer .siteWidth i:nth-of-type(3) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }
    footer .siteWidth h2:nth-of-type(3) {
        grid-row: 3 / 4;
        grid-column: 2 / 4;
    }
    .copyright {
        grid-row: 5 / 6;
    }
    .dreierCard {
        width: 47%;
    }
    .dreierCard:nth-child(2n-1) {
        margin-left: 0 !important;
    }
    .telefonPopUp {
        visibility: hidden;
    }

    /* <--- Testing ---> 

    .curtain {
        display: block;
    }
    .curtain div {
        margin-left: auto;
        margin-right: auto;
        width: 70%;
    }
    .curtain div a img {
        width: 95%;
        border-radius: 3%;
    }
    */
    .curtain h3 {
        font-size: 1.5rem;
        opacity: 1;
    }
    .center {
        width: 95%;
    }
    .grid div h3 {
        font-size: large;
    }
    .flex {
        font-size: 1.5rem;
    }
    .grid, #grid {
        display: block;
    }
    .grid.dreifach{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .grid.dreifach > *{
        grid-column: 2 / 3;
    }
    .grid.dreifach .vertical-line{
        grid-column: 1 / 2;
        grid-row-span: 2;
    }
    .secEinstein div img {
        width: 40%;
        height: auto;
    }
    #references_left img, #references_right img {
        display: none;
    }
    #references_mid img {
        width: 50vw;
        margin: 0;
        padding: 0;
    }
    .scrollingImg div:first-child, .scrollingImg div:last-child{
        display: none;
    }
    .scrollingImg div {
        width: auto;
        height: auto;
    }
}
@media only screen and (max-width: 600px){
    .dreierCard {
        width: 100%;
    }
}

.stoerung{
    position: sticky;
    top: 9vh;
    right: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    text-align: center;
    background-color: darkred !important;
    color: white !important;
    padding: 1rem !important;
    font-size: 2rem;
    font-weight: 500;
}
.stoerung.inaktiv{
    background-color: darkgreen !important;
}