:root {
  --theme-color: #888;
  --theme-color-2: #76c3fA;
  --gray: #888;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 18px;

  background-color: var(--gray);
}

p {
  font-family: 'Roboto', Arial, sans-serif;
}

p.cv {
  margin-bottom: 0.5em;
  line-height: 1.25em;
}

q {
  font-family: 'Bitter', serif;
  font-style: italic;
  font-size: 28px;
  display: block;
  margin-bottom: 15px;
  margin-top: -40px;
  margin-left: 1em;
  color: var(--theme-color-2);
}

q::before {
  content: '„';
  font-size: 72px;
  color: #ccc;
}

q::after {
  position: absolute;
  content: '“';
  font-size: 72px;
  transform: translateY(25px);
  color: #ccc;
}

.alert {
  border-radius: 0;
}

.address {
  font-size: 24px;
}

.numeric {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: white;
  text-decoration: underline;
}

nav a:hover {
  text-decoration: none;
}

i {
  margin-right: 0.3em;
}

p:last-of-type {
  margin-bottom: 0;
}

h1, h2, h3, h4 {
  text-transform: none;
}

#team h3 {
  text-transform: none;
}

header {
  position: sticky;
  top: calc(min(0px, 110px - 100vh));

  height: calc(max(400px, 100vh + 1px));
  background-color: var(--theme-color);

  /* filter: opacity(0.98); */

  border-bottom: 1px solid white;

  z-index: 100;
}

footer {
  position: relative;
  padding-top: 2em;
  padding-bottom: 1em;

  background-color: var(--gray);
  color: white;

  font-size: 1.2em;
}

#wallpaper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 320px;

  background-image: url('sky.jpg');
  background-size: cover;
  background-position: 75% calc(100% - 225px);
  background-attachment: fixed;
}

#overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;

  height: 320px;

  background-color: var(--theme-color);

  border-top: 10px solid white;
}

#logo {
  position: absolute;
  bottom: 110px;

  transform-origin: bottom left;
}

#logo h1 {
  font-size: 80px;
  text-transform: lowercase;
  color: white;
  text-shadow: 0px 0px 5px #888;
}

#praxis {
  font-weight: 300;
  margin-bottom: -15px;
}

#biberzelten {
  font-weight: 100;
  margin-bottom: 0;
}

#info-wrapper {
  position: absolute;
  width: 100%;
  bottom: 210px;
}

#info {
  font-size: 24px;
  padding: 0.75em;

  color: white;

  background-color: rgba(255, 255, 255, 0.3);

  -webkit-backdrop-filter: blur(30px) brightness(0.6);
  backdrop-filter: blur(30px) brightness(0.6);

  border: 10px solid white;

  z-index: 10000;
}

#banner-wrapper {
  position: absolute;
  width: 100%;
  bottom: 590px;
}

@media (max-height: 725px) {
  #banner-wrapper {
    top: 20px;
  }
}

@media (max-width: 768px) {
  #banner-wrapper {
    top: 20px;
  }
}

@media (max-width: 500px) {
  #banner-wrapper {
    top: 150px;
  }
}

#banner {
  font-size: 24px;
  padding: 0.75em;

  color: white;

  background-color: rgba(255, 255, 255, 0.3);

  -webkit-backdrop-filter: blur(30px) brightness(0.6);
  backdrop-filter: blur(30px) brightness(0.6);

  border: 10px solid white;

  z-index: 10000;
}

#nav-wrapper {
  width: 100%;

  position: sticky;
  top: 35px;
}

#nav {
  display: inline-block;
  width: 100%;

  text-align: right;
  z-index: 5000;
}

#nav a  {
  display: inline-block;
  margin-left: 0.8em;
  margin-right: 0.8em;

  text-transform: lowercase;
  font-size: 30px;
  font-weight: 300;
  color: white;
  text-shadow: 0px 0px 5px #888;

  cursor: pointer;
  text-align: center;
}

#nav a:hover {
  color: #eee;
}

.nav-link.active {
  color: white !important;
}

.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 1px;
  width: 0px;
  background-color: #ddd;
  transition: width .1s ease-in;
  transform: translateY(-4px);
}

.nav-link.active::after {
  width: 100%;
  background-color: white;
}

#chevron-wrapper {
  position: absolute;
  width: 100%;
  bottom: 120px;
}

#chevron {
  color: white;

  animation-name: down;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

@keyframes down {
  0% {
    transform: translateY(0px) scale(1.3);
  }

  75% {
    transform: translateY(0px) scale(1.3);
  }

  87.5% {
    transform: translateY(20px) scale(1.3);
  }

  100% {
    transform: translateY(0px) scale(1.3);
  }
}

#main {
  padding-top: 90px;
  width: 100%;

  background-color: white;
}

section {
  margin-bottom: 4em;
}

section#lageplan {
  margin-bottom: 0;
}

section::before {
  display: block;
  content: " ";
  margin-top: -160px;
  height: 160px;
  visibility: hidden;
  pointer-events: none;
}

h1 {
  font-size: 4.5em;
  margin-bottom: 0.5em;
  font-weight: 400;
  color: var(--theme-color-2);
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-weight: 500;
  font-size: 1.35em;
  margin-bottom: 0;
}

h3 .title {
  font-weight: 200;
  text-transform: none;
}

.jobtitle {
  font-size: 1.2em;
  font-weight: 200;
}

h4 {
  font-weight: 500;
  font-size: 1.1em;
  margin-bottom: 0;
}

ul {
  color: var(--theme-color-2);
}

.tagline {
  display: none;
  font-size: 0.6em;
  margin-top: -10px;
  font-weight: 300;
  color: var(--theme-color-2);
}

.tagline::before {
  content: '';
}

.box {
  background-color: var(--theme-color);
  color: white;
  padding: 1.25em;
  page-break-inside: avoid;
}

.box:not(:last-of-type) {
  margin-bottom: 3.5em;
}

.outline {
  color: black;
  background-color: unset;
  border: 10px solid var(--theme-color-2);
  padding: 1em;
}

.box p {
  margin-right: 1em;
}

.box h2 {
  font-size: 1.5em;
}

.person {
  width: 100%;
}

.more, .less {
  display: inline-block;
  cursor: pointer;
}

.less {
  display: block;
  margin-top: 0.5em;
}

#map {
  width: 100%;
  height: calc(80vh - 200px);
  border: none;
  margin-bottom: -10px;
}

.copy {
  position: absolute;
  right: 10px;
  bottom: 10px;

  text-align: right;
  font-size: 0.7em;
  color: #ccc;
}

.copy a {
  color: #ccc;
}

@media (max-width: 1400px) {
  #nav a {
    font-size: 28px;
  }

  #nav-wrapper {
    top: 32px;
  }
}

@media (max-width: 1200px) {
  header {
    top: calc(min(0px, 90px - 100vh));
  }

  #nav-wrapper {
    top: 27px;
  }

  #logo h1 {
    font-size: 58px;
  }

  #praxis {
    margin-bottom: -5px;
  }
}

@media (max-width: 992px) {
  #info-wrapper {
    bottom: 250px;
  }

  #info {
    font-size: 1.1em;
  }

  #banner {
    font-size: 1.1em;
  }
}

/*
@media (max-height: 650px) {
  #nav {
    display: none;
  }
}
*/

@media (max-width: 768px) {
  #nav {
    display: none;
  }

  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 1.1em;
  }

  #wallpaper {
    background-attachment: scroll;
    background-size: 200%;
    background-position: 80% 70%;
  }

  #praxis {
    transform: translateX(-3px);
  }

  #biberzelten {
    transform: translateX(-3px);
  }

  #chevron-wrapper {
    display: none;
  }
}

@media (max-width: 500px) {
  #wallpaper {
    background-size: 250%;
    background-position: 20% 80%;
  }

  #logo {
    position: fixed;
    top: 10px;
    height: 0px;
  }

  #info-wrapper {
    bottom: 110px;
  }

  .box {
    padding: 1em;
  }

  .outline {
    padding: 0.75em;
  }
}

/* mobile Safari fix */
@supports (-webkit-touch-callout : none) {
  #wallpaper {
    background-attachment: scroll;
    background-position: 80% 88%;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    color: white;
  }

  #nav a {
    color: black;
  }

  #nav a:hover {
    color: #333;
  }

  #chevron {
    color: black;
  }

  a:hover {
    color: black;
  }

  #logo h1 {
    color: black;
    text-shadow: none;
  }

  #info, #banner, #overlay, header, footer {
    color: black;
    border-color: black;
  }

  #main {
    background-color: black;
  }

  .box {
    color: black;
    background-color: #666;
  }

  .outline {
    color: white;
    background-color: unset;
  }

  .alert-danger {
    background-color: #300;
    border: 1px solid #600;
    color: #faa;
  }

  #map {
    filter: brightness(0.7);
  }

  .copy {
    color: #333;
  }

  .copy a {
    color: #333;
  }
}
