/* =================================
            Font
===================================*/

@font-face {
  font-family: mainFont;
  src: url(../fonts/Open_Sans/static/OpenSans-Medium.ttf);
}

/* =================================
            GLOBAL
===================================*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* =================================
                Header
===================================*/

header {
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5% 0 5%;
  height: 5vh;
}

header div a img {
  color: white;
  height: 32px;
  width: 32px;
  margin-top: 5px;
}

header span {
  color: white;
  background-image: url(/assets/img/menu.png);
  background-position: center;
  height: 50px;
  width: 50px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* =================================
                Main
===================================*/

main {
  height: 100%;
}

main img {
  width: 50vw;
  height: 50vh;
  position: absolute;
  left: 35%;
  top: 15%;
}

main section {
  display: flex;
}

main section div:nth-child(1) {
  width: 100%;
  background-color: black;
  height: 95vh;
  clip-path: polygon(0 0, 100% 0, 87% 100%, 0% 100%);
  margin-right: -20%;
  border: 5px solid black;
  position: relative;
}

main section div:nth-child(2) {
  background-color: rgba(0, 0, 0, 0.939);
  height: 95vh;
  width: 50%;
}

/* =================================
                Sidebar
===================================*/

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.98);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
  font-family: mainFont;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#main {
  transition: margin-left 0.5s;
  padding: 20px 0 0 5%;
}

/* @media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
} */

/* =============================
          Mobile
============================= */

.logo-mobile {
  display: none;
}

@media (max-width: 768px) {
  #main img:first-child {
    display: none;
  }

  body {
    background-color: #000; /* schwarzer Hintergrund */
  }

  .logo-mobile {
    display: block;
    max-width: 80%;
    height: auto;
  }

  #main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px); /* abzüglich Header */
  }
}
