html, body {
  height: 100%;
  min-height: 100vh;
}

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

body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  background: #0a0a0a;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #e0e0e0;
  overflow: hidden;
  line-height: 1.6;
  padding: 5vw;
  position: relative;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  min-height: 100vh;

  &::before {
    content: none;
  }
}

.mobile-only { display: none; }
#logo {
  width: max-content;
  margin-bottom: 15px;
  display: block;
  margin-top: -122px;
  max-height: 122px;
}

h1 {
  font-family: 'Grenze Gotisch', serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #ecd504;
}

content, sidebar {
  z-index: 10;
  position: relative;
}
sidebar {
  font-family: 'Grenze Gotisch', serif;
  font-size: 1.8em;
  line-height: 1.1;
  color: rgba(255,255,255,0.5);
  transition: color .2s;
  width: 25%;
  max-width: 355px;
  float: left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 28px;
  a { 
    text-decoration: none;
    color: inherit;
  }
  a:hover {
    color: rgba(255, 255, 255, 1);
    transition: color .2s;
  }
  li {
    list-style: none;
    margin-bottom: 3px;

    &.active {
      color: rgba(255, 255, 255, 1);
    }
  }
  endcap {
    img {
      width: 100%;
      padding-bottom: 1px;
    }
  }
}

#footer {
  margin-top: auto;
} 

content {
  display: block;
  width: 75%;
  max-width: 1200px;
  float: right;
  padding: 20px;
  position: relative;
  font-size: 1.2em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  strong, a {
    color: rgba(255, 255, 255, 1);
  }
  p { margin-bottom: 15px; }
  span {
    opacity: 0;
    transition: opacity 1s ease;
  }
  endcap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    .end-line { width: 50%; }
  }
}

#bg-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Above background and bg-fade-overlay, below content */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

#bg-fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s;
}

@media (min-width: 1400px) {
  body {
    padding: 8vw;
  }
}

@media (max-width: 1024px) {
  body {
    padding: 3vw;
  }
}

@media (max-width: 870px),
(max-width: 480px),
(pointer: coarse) {
  body {
    padding: 2vw;
    display: block;
    overflow: scroll;
    background-attachment: fixed;
  }
  sidebar {
    width: 100%;
    max-width: 100%;
    float: none;
    height: auto !important;
    #logo {
      margin-top: 20px;
      width:100%;
    }
    #menu {
      text-align: center;
      li { 
        display: inline-block;
        margin-right: 10px;
      }
    }
    #footer,
    endcap { display: none; }
  }
  content {
    width: 100%;
    float: none;
  }
}