@font-face {
  font-family: "JetBrainsMono Nerd Font";
  src: url("fonts/JetBrainsMonoNerdFont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: #000;
  color: #fff;
  font-family: "JetBrainsMono Nerd Font", "JetBrains Mono", "CaskaydiaCove Nerd Font", "FiraCode Nerd Font", monospace;
  display: flex;
  flex-direction: column;
}

::selection { background: #fff; color: #000; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---- Hauptmenü ---- */

.brand {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 4rem;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.3rem 1.5rem;
  display: inline-block;
}

.menu a:hover, .menu a:focus {
  background: #fff;
  color: #000;
  outline: none;
}

/* ---- Subpages ---- */

.back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
}

.back:hover, .back:focus { color: #fff; }

.content {
  max-width: 60ch;
  text-align: left;
  line-height: 1.8;
  padding: 0 2rem;
}

.content h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #222;
  margin-bottom: 2rem;
}

.content h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 2rem 0 0.75rem;
}

.content p { margin-bottom: 1.25rem; }

.content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---- Footer ---- */

footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

footer a { color: #666; text-decoration: none; }
footer a:hover, footer a:focus { color: #fff; }
