@import url("https://use.typekit.net/oat8wja.css");

/*Variables*/
:root {
  --bg: white;
  --text: black;
}

html {
  height: 100%;
}

img[src$=".gif"], img[src$=".png"] {
    image-rendering: -moz-crisp-edges;
    image-rendering:   -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

html, body {
  font-family: neue-haas-unica, sans-serif;
  font-weight: 400;
  font-size: 11px;
  font-size: calc(11px + (14 - 11) * ((100vw - 320px) / (1600 - 320)));
  -webkit-font-smoothing: auto;
  -webkit-text-size-adjust: 100%;
  line-height: 125%;
  overflow-x: hidden;
}

h1.title {
  font-size: 5em;
  font-weight: bold;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 2.5%;
  margin-top: -0.15em;
  margin-left: -0.055em;
}

h1:hover, .title a:hover {
  text-decoration: none;
}

.quote a, .aitext:first-line, nav a, footer a {
  font-weight: 500;
  font-size: 1.8em;
  line-height: 90%;
}

nav a, footer a {
  text-transform: uppercase;
}

jahr::before {
  content: " ";
}

/*Typografie Projekte*/
project-title {
  font-weight: bold;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.item a {
  display: block;
}

.item:hover a, nav a:hover, nav a.active {
  text-decoration: underline;
}

/*Layout*/

img {
  position: relative;
  width: 100%;
}

.content {
  margin: 1% 0.5% 4% 0.5%;
  position: relative;
  height: 100%;
}

.quote, .aitext {
  display: inline-block;
  margin: 0 5% 0 0;
  margin-top: 3.5em;
}

.aitext {
  margin: 0 5% 10% 0;
}

.startseite .quote {
  margin-top: 0;
}

.startseite .quote + .quote {
  margin-top: 0.8em;
}

.startseite .quote:has(img) {
  display: block;
  margin-top: 1.5em;
}

.startseite .quote img {
  width: auto;
  max-width: 220px;
}

nav {
  width: 45%;
  position: fixed;
  top: 1%;
  left: 50%;
  margin-bottom: 1em;
  z-index: 999;
  display: flex;
  justify-content: space-between;
}

footer a {
  padding-right: 3em;
}

footer {
  position: fixed;
  bottom: 1%;
}

.projects {
  width: 40%;
  margin-left: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 5%;
  margin-top: 6.5em;
  margin-bottom: 5em;
}

.projects .item {
  padding-bottom: 1em;
  flex: 0 0 30%;
}

.projects .item project-title {
  display: block;
}

/* Within-page section headings */
.section-label {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  text-transform: uppercase;
  font-weight: 500;
  font-style: italic;
  font-size: 1.15em;
  letter-spacing: 0.04em;
  margin-top: 0.5em;
  padding-top: 1.5em;
  padding-bottom: 0.75em;
  border-top: 2px solid black;
  margin-bottom: 0.25em;
}

.section-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

description {
  position: relative;
  z-index: 100;
  display: block;
  margin-top: 1em;
}

header {
  position: fixed;
  width: 48%;
  z-index: 101;
  display: block;
}

/*Background-Image hover*/
.item:hover .background-image .son, .item:hover .background-image {
  display: flex;
}

.background-image {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.son {
  display: none;
  position: fixed;
  background-repeat: no-repeat;
  z-index: -1;
  background-size: contain;
  height: 100%;
  top: 0;
  left: 0;
  width: 100%;
  background-position: center;
}

.background-image img {
  z-index: -1;
  height: 100%;
  width: auto;
}

/*Darkmode*/
body.dark {
  background: black;
  color: white;
}

body.dark a {
  color: white;
}

body.dark .section-label {
  border-top-color: white;
}

body.dark footer {
  background: black;
}

/*Responsive*/
@media only screen and (max-width: 1024px) {
  .quote { margin-right: 20%; }

  .projects {
    margin-bottom: 2em;
  }

  .projects .item {
    flex: 0 0 47.5%;
  }

  nav { width: 45%; }

  .quote a, .aitext:first-line, nav a, footer a {
    font-size: 1.8em;
  }
}

@media only screen and (max-width: 768px) {
  header {
    position: relative;
    width: 100%;
    display: block;
  }

  footer {
    bottom: 0%;
    background: white;
    padding: 0.5% 1% 1% 0%;
  }

  footer a {
    padding-right: 1em;
  }

  body.dark footer {
    background: black;
  }

  .quote a, .aitext:first-line, nav a, footer a {
    font-size: 1.6em;
  }

  .projects {
    width: 80%;
    margin: 0;
    margin-bottom: 3em;
  }

  .projects .item {
    flex: 0 0 47.5%;
  }

  nav {
    position: sticky;
    top: 0;
    left: 0;
    float: left;
    width: 95%;
    margin-top: 1em;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4em 1.2em;
  }

  nav a, footer a {
    font-size: 1.8em;
  }

  .section-label {
    font-size: 1.3em;
    border-top-width: 2px;
  }
}
