@font-face {
  font-family: "TeXGyreHeros";
  font-style: normal;
  font-weight: 400;
  src: local("TeXGyreHeros"),
    url("fonts/texgyreheros-regular-webfont.woff") format("woff");
}
@font-face {
  font-family: "TeXGyreHeros";
  font-style: normal;
  font-weight: 700;
  src: local("TeXGyreHeros"),
    url("fonts/texgyreheros-bold-webfont.woff") format("woff");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*https://serp.co/tools/css-reset/*/
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding-right: 2rem;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}

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

a {
  color: inherit;
}

body {
  font-family: "TeXGyreHeros", "Arial", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  line-height: 1.3;
}

.project-subtitle {
  font-weight: 400;
}

.project-intro h2:first-child,
#content :is(h1, h2, h3, h4, p):first-child {
  font-size: 1em;
  font-weight: inherit;
  text-transform: uppercase;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 0.3rem;
}

.project-intro h2 + p {
  margin-top: 0;
  padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
p {
  max-width: 700px;
}

img,
video {
  max-width: 100%;
}

:is(h1, h2, h3, h4, p):first-child {
  margin-top: 0;
  padding-top: 0;
}

h2 {
  font-size: 1em;
}

a,
.site-claim {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px;
}

.site-title {
  font-weight: inherit;
  position: absolute;
  margin-top: 0;
}

.site-title p:first-child {
  margin-bottom: 0.5rem;
  line-height: 0.8;
  font-weight: inherit;
  font-size: 4.65rem;
  translate: -0.07em 0;
  letter-spacing: 0.125em;
}

.site-claim {
  font-size: 1rem;
  line-height: 1;
  margin-top: 0;
}

header h1 a,
header a:not(:hover) {
  text-decoration: none;
}

header h1 a:hover .site-claim {
  text-decoration: underline;
}

header {
  position: fixed;
  top: 0;
  bottom: 0;
  padding-left: 2rem;
  overflow-y: auto;
  overflow-x: visible;
  width: 18rem;
  padding-bottom: 1rem;
  z-index: 2;
}

header {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

header::-webkit-scrollbar {
  display: none;
}

#content,
header {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#content {
  max-width: 1000px;
  min-height: 100vh;
  padding-top: 8.7rem;
  margin-left: 18rem;
  width: calc(100% - 18rem);
  overflow-y: auto;
}

#content.start-lower {
  padding-top: 9.2rem;
}

footer {
  background-color: white;
  position: fixed;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: calc(1000px + 20rem);
  padding-right: 2rem;
  height: 3rem;
  text-align: right;
  font-size: 0.85rem;
  padding-top: 1em;
}

.contacts {
  margin-top: 6.7rem;
}

header nav {
  margin: 3rem 0;
}

.menu,
.sub-menu,
.subsub-menu,
.filters {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.menu,
.sub-menu:last-child,
.subsub-menu:last-child {
  margin-bottom: 0;
}

.filters {
  margin-bottom: 0;
}

.menu > a,
.filters > a {
  text-transform: uppercase;
}

.sub-menu > a,
.subsub-menu > a {
  text-transform: lowercase;
}

a.active {
  font-weight: 700;
}

a + .sub-menu,
a+ .subsub-menu {
  display: none;
}

a.open + .sub-menu,
a.open + .subsub-menu {
  display: flex;
}

a.active {
  position: relative;
}

a.active:before {
  content: "";
  height: 0.15em;
  width: 0.7em;
  left: -1em;
  top: 0.67em;
  background-color: black;
  position: absolute;
}

a:not(.open) + .filters {
  display: none;
}

.filters[data-filter="1"] ~ a:not([data-filter="1"]),
.filters[data-filter="2"] ~ a:not([data-filter="2"]) {
  display: none;
}

#content[data-view="bilder"] .project-section:not(#bilder),
#content[data-view="plaene"] .project-section:not(#plaene),
#content[data-view="text"] .project-section:not(#text),
#content[data-view="grafik"] .project-section:not(#grafik) {
  display: none;
}

#content[data-view="bilder"] .project-nav a[data-id="bilder"],
#content[data-view="plaene"] .project-nav a[data-id="plaene"],
#content[data-view="text"] .project-nav a[data-id="text"],
#content[data-view="grafik"] .project-nav a[data-id="grafik"] {
  text-decoration: none;
  pointer-events: none;
}

.project-section#text {
  padding-top: 2rem;
}

.project-images img {
  display: block;
  margin-top: 2rem;
}

.project-images img + .img-description {
  margin-top: 0.25em;
  text-align: right;
  max-width: 100%;
  font-size: 0.85rem;
}
.tns-item > a {
  width: 100%;
  display: flex;
  justify-content: center;
}
.tns-item {
  mix-blend-mode: multiply;
}
.tns-outer {
  position: relative;
}
.tns-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  transition: opacity 1s ease;
}

.tns-outer:not(:hover) .tns-controls {
  opacity: 0;
}

.tns-controls button {
  border: none;
  background-color: transparent;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><path style="fill:black" d="m17.5 5.999-.707.707 5.293 5.293H1v1h21.086l-5.294 5.295.707.707L24 12.499l-6.5-6.5z" data-name="Right"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  height: 2rem;
  width: 2.5rem;
  overflow: hidden;
  display: block;
  position: relative;
  pointer-events: all;
}

.tns-controls button:first-child {
  rotate: 180deg;
}

.tns-slider img {
  aspect-ratio: 5 / 3;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.home-slider {
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.home-slider.tns-slider {
  opacity: 1;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  row-gap: 2rem;
}

.project-list > :last-child {
  margin-bottom: 100%;
}

.project-list a:not(:hover) {
  text-decoration: none;
}

.project-list figure {
  margin: 0;
}

.project-list figcaption > * {
  margin: 0;
  font-size: inherit;
}

.project-nav {
  display: flex;
  gap: 1em;
}

.project-nav > a:not(:first-child):before {
  content: ".";
  display: block;
  position: absolute;
  left: -0.5em;
}

.project-nav:not(:has(> :nth-child(2))) {
  display: none;
}

.nav-control {
  display: none;
}

.team-member-image {
  margin: 0;
}

.project-list .team-email {
  text-decoration: underline;
}

.back-button {
  margin-top: 3rem;
}

@media (max-width: 800px) {
  body {
    padding-right: 0;
  }
  #content {
    margin-left: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    transition: filter 0.25s ease;
    margin-top: 0;
  }
  footer {
    padding-right: 1.5rem;
    width: 100%;
  }
  header {
    background: white;
    left: auto;
    left: 0;
    padding-left: 1.5rem;
    padding-right: 8vw;
    width: 16.5rem;
    padding-bottom: 6rem;
    transition: all 0.25s ease;
  }

  header:not(.is-open) {
    left: -13.4rem;
    background-color: transparent;
    pointer-events: none;
  }

  header > *:not(.nav-control) {
    transition: opacity 0.25s ease;
  }

  header:not(.is-open) > *:not(.nav-control) {
    opacity: 0;
  }

  #content,
  header {
    padding-top: 1.5rem;
  }
  .hamburger,
  .hamburger-box {
    margin: 0;
    padding: 0;
    width: 28px;
  }
  .hamburger-inner,
  .hamburger-inner:after,
  .hamburger-inner:before {
    width: 28px;
    height: 1.5px;
  }
  header > * {
    transition: opacity 0.25s ease;
  }
  .nav-control {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 13.95rem;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    align-items: center;
    justify-content: center;
    transition: left 0.25s ease;
    pointer-events: all !important;
    z-index: 999999;
  }
  header:not(.is-open) .nav-control {
    left: 1rem;
  }
  header ~ * {
    background-color: white;
  }
  header.is-open ~ * {
    pointer-events: none;
    filter: brightness(0.85) grayscale(1);
  }
  #content {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
  }
  #content.slider-page {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tns-outer {
    margin-bottom: 10vh;
  }
  .tns-controls {
    display: none;
  }
}
