:root {
  color-scheme: dark;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #121212;
  color: #ddd;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 50px;
  background-color: #202123;
  border-radius: 5px;
  padding: 8px 12px;
}

.navbar a {
  text-decoration: none;
  color: #ddd;
  font-size: 18px;
  padding: 0 20px;
}

.navbar a:hover {
  color: #fff;
}

.navbar a:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

.github-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 20px;
}

.github-project {
  width: 300px;
  min-height: 200px;
  background-color: #202123;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.github-project h3 {
  margin: 0;
  font-size: 24px;
  text-align: center;
}

.github-project p {
  font-size: 18px;
  color: #ddd;
  text-align: center;
}

.button {
  display: inline-block;
  border: 1px solid #30363d;
  background-color: #4f565e;
  color: #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background-color: #1f252d;
}

.button:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

.about-header,
.contact-header {
  text-align: center;
}

.about-text,
.contact-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

.footer {
  text-align: center;
}

.footer-fixed {
  position: fixed;
  left: 10px;
  bottom: 5px;
  right: 10px;
  width: 95%;
}

.page-impressum body {
  margin: 0;
  padding: 0;
}

.page-impressum .navbar {
  margin: 16px;
  padding: 0 12px;
}

.page-impressum .content {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 60px;
  line-height: 1.6;
}

.page-impressum .footer {
  margin: 40px 0 24px;
}

@media (max-width: 480px) {
  .navbar a {
    font-size: 16px;
    padding: 0 14px;
  }
}

.error-page,
.error-page body {
  height: 100%;
  margin: 0;
}

.error-page .bg {
  background-image: url("/404.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
