:root {
  --top-color: '#000';
  --theme-color: #cea461;
  --theme-color-2: hsl(0, 0%, 40%);
  --background: #fff;
}

html {
  scroll-behavior: smooth;
}

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

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

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);
}

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: #777;
  text-decoration: underline;
}

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

#language-switcher a:hover {
  text-decoration: none;
}

i {
  margin-right: 0.3em;
}

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

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

img.team {
  width: 300px;
  height: 300px;
  border-radius: 7px;
  filter: grayscale(100%);
}

#info {
  border-radius: 7px;
}

.box {
  border-radius: 7px;
}

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

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

  /* filter: opacity(0.98); */

  border-bottom: 1px solid #ddd;

  z-index: 100;
}

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

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

  font-size: 1em;
}

#wallpaper {
  position: absolute;
  top: 0;
  right: 0;

  left: 0;
  bottom: 350px;

  background-color: black;
}

#tooth {
  margin-top: 100px;
  width: 20%;
}

/*
#b {
  margin-top: 50px;
  font-size: 300px;
  color: black;

  text-shadow:
      -2px -2px 0 var(--theme-color),
      2px -2px 0 var(--theme-color),
      -2px 2px 0 var(--theme-color),
      2px 2px 0 var(--theme-color);

  transform: translateX(-25px);
}
*/

#bubble {
  margin-top: 125px;
  width: 20%;
  transform: translateX(-15%);
}

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

  height: 350px;

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

  border-top: 10px solid var(--theme-color);
}

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

  transform-origin: bottom left;
}

#logo h1 {
  font-size: 50px;
  color: var(--theme-color);
}

#zahnarztpraxis {
  font-weight: 300;
  line-height: 95%;
  margin-bottom: -5px;
}

#braun {
  font-weight: 500;
  margin-bottom: 0;
}

em {
  font-style: normal;
  color: var(--theme-color);
}

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

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

  color: black;

  background-color: white;

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

  border: 10px solid var(--theme-color);

  z-index: 10000;
}

@media (max-width: 768px) {
  #tooth {
    margin-top: 100px;
    width: 33%;
  }

  #bubble {
    margin-top: 50px;
    width: 30%;
    
    position: absolute;
    left: 50%;
    transform: translateX(-60%);
  }
}

@media (max-width: 500px) {
  header {
    top: calc(min(0px, 65px - 100svh));
  }

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

  img.team {
    width: 100%;
    height: auto;
  }
}

@media (max-height: 768px) {
  #tooth {
    margin-top: 50px;
    width: 15%;
  }
}

#nav-wrapper {
  width: 100%;

  position: sticky;
  top: 35px;

  float: right;
  pointer-events: none;
}

#nav {
  width: 100%;

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

  pointer-events: none
}

#nav a {
  pointer-events: auto;
}

#lang-wrapper {
  position: absolute;
  width: 100%;
  top: 40px;
}

#language-switcher .active {
  color: #ddd;
}

#language-switcher a {
  color: #777;
}

#language-switcher a:hover {
  color: var(--theme-color);
}

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

  font-size: 24px;
  font-weight: 300;
  color: var(--theme-color);

  cursor: pointer;
  text-align: center;
}

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

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

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

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

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

#chevron {
  color: var(--theme-color);

  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 {
  border-bottom: 1px solid var(--theme-color);
  margin-bottom: 3em;
}

section#lageplan, section#location {
  margin-bottom: 0;
}

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

h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: var(--theme-color);
}

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);
}

.tagline {
  display: none;
  font-size: 0.6em;
  margin-top: -10px;
  font-weight: 300;
}

.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);
  padding: 1em;
}

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

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

.box h3 {
  font-size: 1.25em;
}

.person {
  width: 100%;
}

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

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

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

.copy a {
  color: #ccc;
}

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

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

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

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

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

  #info {
    font-size: 1.1em;
  }

  #banner {
    font-size: 1.1em;
  }

  #chevron-wrapper {
    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%;
  }
}

@media (max-width: 500px) {
  #wallpaper {
    bottom: 220px;
  }

  #tooth {
    margin-top: 130px;
    width: 50%;
  }

  #bubble {
    margin-top: 125px;
    width: 50%;

    position: absolute;
    left: 50%;
    transform: translateX(-55%);
  }

  #overlay {
    height: 220px;
  }

  #lang-wrapper {
    top: 75px;
  }

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

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

  #zahnarztpraxis {
    line-height: 100%;
    margin-bottom: 0px;
  }

  #info-wrapper {
    bottom: 120px;
  }

  .box {
    padding: 1em;
  }

  .outline {
    padding: 0.75em;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --top-color: '#000';
    --theme-color: #cea461;
    --theme-color-2: #333;
    --background: #000;
  }

  #logo h1 {
    text-shadow: none;
  }

  header {
    border-bottom: 1px solid #333;
  }

  footer, #info {
    color: white;
    background-color: black;
  }

  #main {
    background-color: black;
    color: #ddd;
  }

  .box {
    color: black;
  }

  .outline {
    color: white;
  }

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

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

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

  #map {
    filter: brightness(0.7);
  }

  .copy {
    color: #666;
  }

  .copy a {
    color: #333;
  }
}
