:root {
  --light-gray: #cfcfcf;
  --gray: #898989;
  --mid-dark-gray: #454545;
  --dark-gray: #202409;
  --gray-orange: #a16a45;
  --logo-orange: #f07020;
  --yellow: #ffff00;
  --sky-blue: #bfe5fc;

  --background: #fff;
  --foreground: #000;
  --title-background: var(--sky-blue);
  --title-foreground: #000;
  --footer-background: var(--mid-dark-gray);
  --footer-foreground: var(--light-gray);
  --footer-link: var(--gray);
  --footer-link-hover: var(--footer-foreground);
  --nav-button-border: #000;
  --nav-button-hover-background: var(--yellow);
  --nav-button-hover-foreground: #000;
  --nav-button-background: #000;
  --nav-button-foreground: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: var(--mid-dark-gray);
    --foreground: var(--light-gray);
    --title-background: var(--mid-dark-gray);
    --title-foreground: var(--light-gray);
    --footer-background: var(--dark-gray);
    --footer-foreground: var(--light-gray);
    --nav-button-border: #fff;
    --nav-button-hover-background: var(--logo-orange);
    --nav-button-hover-foreground: #fff;
    --nav-button-background: var(--gray-orange);
    --nav-button-foreground: var(--light-gray);
  }
}

html {
  background-color: var(--footer-background);
  color: var(--footer-foreground);
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
}

main {
  flex: 1;
  background-color: var(--background);
  padding: 5vh;
}

nav {
  display: flex;
  flex-direction: column;
  background-color: var(--title-background);
  color: var(--title-foreground);
  padding-bottom: 5vh;
}

nav div {
  display: flex;
  padding-left: 10vw;
  padding-top: 2vh;
}

nav div a {
  font-weight: bold;
  text-decoration: none;
  min-width: 15vw;
  text-align: center;
  padding: 10px;
  background-color: var(--nav-button-background);
  color: var(--nav-button-foreground);
  border: 1px solid var(--nav-button-border);
  margin-right: -1px;
}

nav div a:hover,
nav div a:active {
  text-decoration: underline;
}

nav div a:hover,
nav div a:active,
nav div a.whereami {
  background-color: var(--nav-button-hover-background);
  color: var(--nav-button-hover-foreground);
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding: 2vh 2vw;
  background-color: var(--title-background);
  color: var(--title-foreground);
}

header img {
  height: 8vh;
  width: auto;
}

header span {
  font-size: 24px;
  font-weight: bold;
}

.platz-foto {
  float: right;
  max-width: 45vw;
  max-height: 45vh;
  width: auto;
  height: auto;
  margin: 0 0 1em 2vw;
}

footer {
  padding: 2vh 2vw;
  background-color: var(--footer-background);
  color: var(--footer-foreground);
}

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

footer a:hover {
  color: var(--footer-link-hover);
}
