html {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  margin: 0;
  min-height: 100%;

  display: flex;
  flex-flow: column;

  background-color: #383838;
  color: white;
}
header, main {margin: 0 10%}
hr {
  width: 100%;
  box-sizing: border-box;
}
h1, h2 { margin: 0.5em 0}
h1 {font-size: 1.5em}
h2 {font-size: 1.2em}

ul {margin: 0}

main {
  flex-grow: 1;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
}

button {
  padding: 0;
  border: 0;
  text-align: left;
  font-size: inherit;
  color: inherit;
  background-color: inherit;
}

:where(a, a:active, a:visited) {text-decoration: none}
body>:not(header) :where(a, a:active, a:visited) {color: yellow}
body>header :where(a, a:active, a:visited) {color: white}

#skip-to-content {
  z-index: 2;
  position: absolute;
  padding: 1.5em;
  color: white;
  background-color: cornflowerblue;
  border-width: 0 2px 2px 0;
  border-style: solid;
  border-color: black;
  border-bottom-right-radius: 5px;
}
#skip-to-content:not(:focus) { /* Effectively .sr-only */
	position: absolute !important;
	margin: -1px !important;
	border: 0 !important;
	padding: 0 !important;
	width: 1px !important;
	height: 1px !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
		clip-path: inset(50%) !important;
	overflow: hidden !important;
	white-space: nowrap !important;
}

header {
  z-index: 1;
  padding-top: 2.5em;
  margin-bottom: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border: 0 solid white;
  border-bottom-width: 1px;
  background-color: #383838;

  font-size: 0.8em;
}
header #logo {
  margin-bottom: 0.48rem;
  display: flex;
  flex-direction: column;
}
header #logo :first-child {
  font-size: 2em;
  font-weight: bolder;
}
header :where(a, button) {user-select: none}

#toggle-navigation {display: none}

nav {
  display: flex;
  align-items: flex-end;
}
nav :where(a, button) {padding: 0.6em}
nav :where(a, button):hover {
  background-color: rgba(20, 20, 20, 0.4);
}

#projekte-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}
#projekte.toggled {display: flex}
#projekte {
  position: absolute;
  margin: 0;
  padding: 0;
  left: 0;
  bottom: 0;
  transform: translate(0, 100%);

  display: none;
  flex-flow: column;

  background-color: rgba(20, 20, 20, 0.6);
}
@media screen and (min-width: 1024px) {
  #projekte-wrapper:where(:focus-within, :hover)>#projekte {
    display: flex;
  }
}
@media screen and (max-width: 1024px) {
  #projekte {
    position: static;
    transform: none;
  }
}
#projekte>li {display: inline}
#projekte>li>a {
  width: 100%;
  display: inline-block;
  box-sizing: border-box;
  white-space: nowrap;
}
#projekte a:hover {
  background-color: rgba(20, 20, 20, 0.8);
}

.contact-field {
  padding: 10px;
  width: auto;

  display: flex;
  flex-flow: column;
  align-items: flex-start;

  background: #282828;
}
.contact-field > * {margin-bottom: 8px}
.contact-field > *:last-child {margin-bottom: 0}
.contact-field > .contact-numbers {
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-gap: 0 5px;
  gap: 0 5px;
}

.subtext {font-size: 0.8em}

.mobile-only {display: none !important}

.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
		clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;
}

/* Mobile-Queries */
@media screen and (max-width: 1024px) {
  main {margin-bottom: 1em}

  header {position: relative}
  header #logo {white-space: break-spaces}

  #toggle-navigation {
    padding: 4px 0;
    width: 2rem;
    height: 2rem;

    display: flex;
    flex-flow: column;
    justify-content: space-between;

    box-sizing: border-box;
  }
  #toggle-navigation > * {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 1px;
  }
  #toggle-navigation::before, #toggle-navigation::after {
    content: "";
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 1px;
  }

  nav {
    position: absolute;
    width: 100%;
    bottom: 0;
    transform: translate(0, 100%);

    display: none;

    flex-flow: column;
    align-items: stretch;
    box-sizing: border-box;

    border: 1px solid white;
    background-color: #383838;
  }
  nav.toggled {display: flex}
  #projektliste-wrapper {flex-flow: column}
  #projektliste {
    position: static;
    transform: translate(0, 0);
  }

  .mobile-only {display: initial !important}
}
