:root {
  --beige: #fff0dd;
  --black: #000;
  --gray: #4e4d4d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--beige);
  color: var(--black);
  font-family: Helvetica, sans-serif;
}

h1,
h2 {
  margin: 0;
  font: inherit;
}

main div {
  min-width: 0;
}

img {
  max-width: 100%;
}

header {
  background-color: var(--beige);
  padding: 16px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font: 300 24px/28px Helvetica, sans-serif;
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  padding: 8px 0;
  text-decoration: none;
  color: var(--black);
  font-weight: normal;
  font-size: 24px;
  text-transform: uppercase;
}

nav a[aria-current="page"] {
  font-weight: bold;
}

nav a:hover,
.links a:hover,
.impressum a:hover {
  color: gray;
}

a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  gap: 8px;
  font-size: 24px;
  color: var(--black);
  font-weight: 400;
  text-transform: uppercase;
}

.links a {
  font-family: Helvetica, sans-serif;
  text-decoration: none;
  color: var(--black);
  font-weight: normal;
  font-size: 24px;
  text-transform: uppercase;
  padding: 10px 20px;
}

.impressum {
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: 32px;
  font: 300 20px/140% Helvetica, sans-serif;
}

.impressum a {
  color: var(--gray);
  text-decoration: none;
}

/* Name pages without adding visible copy to the existing layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  nav {
    gap: 40px;
  }

  .impressum {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 16px;
  }

  nav a {
    font-size: 20px;
  }

  .links a {
    padding-inline: 12px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  img {
    transform: none !important;
    transition: none !important;
  }
}
