:root {
  --white: #f2f2f2;
  --black: #000;
  --color1: #6a6ff5;
  --color2: #CCFF66;
  --font: Arial, sans-serif;
  --font-large: 6rem;
  --font-mid: 4rem;
  --font-small: 3rem;
  --font-smaller: 2rem;
  --font-tiny: 1.5rem;
  --font-super-tiny: .5rem;
  --font-weight: 900;
  --font-weight-light: 100;
  --font-weight-heavy: bolder;
  --wtsw: 2px;
}

* {
  font-family: var(--font);
  margin: 0; padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 3rem 2rem 3rem;
  margin-top: 8%;
  background: var(--white);
  text-align: center;
}
.hero h1 {
  font-size: var(--font-large);
  text-transform: uppercase;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--color1);
}
.hero p {
  font-size: var(--font-mid);
  text-transform: uppercase; text-align: center;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--color2);
}
.hero .auto-input {
  font-size: var(--font-mid); font-weight: var(--font-weight-heavy);
  text-transform: uppercase; text-align: center;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--color2);
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--white);
  font-weight: var(--font-weight-heavy);
}
a:hover {
  background-color: transparent;
  color: black;
}

ul {
  list-style: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--black);
  color: var(--white);
}

nav ul {
  display: flex;
  gap: 1rem;
  font-weight: bolder;
  font-size: var(--font-mid);
}

nav a {
  color: var(--white);
  text-transform: uppercase;
  font-size: var(--font-mid); font-weight: var(--font-weight-heavy);
}

.description {
  font-size: var(--font-small); font-weight: var(--font-weight-heavy);
  padding: 2rem 4rem 3rem;
  margin-top: 5%;
}
.description a.email {
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  font-size: var(--font-smaller);
  color: var(--color2);
  font-weight: var(--font-weight-heavy);
}
.description p {
  color: var(--black);
  font-size: var(--font-tiny);
  font-weight: var(--font-weight-light);
}
.description a.site {
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  font-size: var(--font-smaller);
  color: var(--color2);
  font-weight: var(--font-weight-heavy);
}
.description a.email:hover { color: var(--black); }
.description a.site:hover  { color: var(--black); }

h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-left: 30%;
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #3e875b;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  margin: 3rem auto;
}

.pro {
  background: var(--white);
  text-align: center;
  margin-top: 5%;
  align-items: center;
}

h2 {
  font-family: Arial, sans-serif;
  font-size: 3rem;
  color: var(--white);
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--black);
  text-transform: uppercase;
  margin: 1px 0;
}

.topnav {
  background-color: transparent;
  padding: 2rem 2rem;
}
#links {
  display: none;
  flex-direction: column;
  gap: .2rem;
}
.topnav a {
  padding: 0px 10px;
  text-decoration: none;
  font-size: 4rem; font-weight: var(--font-weight-heavy);
  display: block;
  color: var(--white);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
}
.topnav a.icon {
  color: var(--white);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  size: 20;
}
.topnav a:hover {
  background-color: transparent;
  color: black;
}
.active {
  background-color: var(--white);
  color: white;
}

.about_ {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}
.about-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 100px;
}
.about-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.about-image img {
  width: 360px;
  height: 560px;
  object-fit: cover;
  padding: 12px;
}
.about-text {
  font-size: 2rem;
  flex: 1;
}

.row {
  margin: 0 -16px;
  width: 100%;
}
.column img {
  margin-top: 8px;
  vertical-align: middle;
  height: 300px;
  width: 300px;
}

.project-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 100px;
  position: relative;
}
.project-container.body { background: black; }
.project-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 5px;
  grid-auto-flow: dense;
}
.project-wrapper li.large {
  grid-column-end: span 2;
}
.project-wrapper li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-container h1 {
  font-size: 6rem; font-weight: var(--font-weight-heavy);
  text-transform: uppercase;
  color: #6a6ff5;
  -webkit-text-stroke-width: var(--wtsw);
  -webkit-text-stroke-color: var(--black);
  margin: 0;
  margin-top: 1px;
  text-align: center;
}
.project-container h2 {
  font-size: 3rem;
  color: var(--white);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  margin: 60px 0;
  text-align: center;
  line-height: 1.2em;
}
.project-container h3 {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--black);
  margin: 0;
}
.project-container h4 {
  font-family: Arial, sans-serif;
  font-size: 3rem;
  background: var(--black);
  color: var(--black);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--white);
  text-transform: uppercase;
  margin: 1px 0;
}
.project-container p {
  font-size: 2rem;
  flex: 1;
  margin: 100px 0;
}
.project-credits { }
.project-role {
  font-size: 3rem; font-weight: var(--font-weight-heavy);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--color1);
  display: inline;
  line-height: 1.2em;
  margin-right: 1rem;
}
.project-name {
  font-size: 3rem; font-weight: var(--font-weight-heavy);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--white);
  display: inline;
  line-height: 1.2em;
}
.project-label {
  font-family: Arial, sans-serif; font-size: 3rem; color: var(--color2);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--color1);
  text-align: center;
  line-height: 1.7em;
}
.project-label h6 {
  font-family: Arial, sans-serif; font-size: 4rem; color: var(--color2);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--color1);
  text-align: center;
}
.project-label span {
  background-color: transparent;
}

.back-arrow {
  transform: scaleX(-1);
  position: fixed;
  bottom: 1px;
  left: 20px;
  font-size: 4em;
  color: var(--white);
  -webkit-text-stroke-width: var(--wtsw);
  -webkit-text-stroke-color: var(--black);
  letter-spacing: -6px;
  z-index: 1000;
}
.back-arrow:hover { color: var(--black); }
.back-arrow a {
  color: var(--white);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
}

.site-footer {
  text-align: right;
  padding: 2rem;
  color: var(--black);
  font-size: 1.5rem;
  -webkit-text-stroke-width: .3px;
  -webkit-text-stroke-color: var(--color2);
  margin-top: auto;
}

/* ── Projekte list page ── */
article.post {
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 70px 0;
  gap: 0;
  height: 600px;
}
article.post:nth-child(even) {
  flex-direction: row-reverse;
}
a.title-link {
  font-size: var(--font-mid);
  font-weight: bolder;
  color: var(--white);
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--black);
  text-transform: uppercase;
  line-height: 1.2em;
}
article.post a.title-link:hover { color: var(--color1); }
article.post a.image-link {
  width: 50%;
  height: 100%;
  display: block;
}
article.post a.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-content {
  width: 50%;
  height: 100%;
  box-sizing: border-box;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
article.post p {
  font-size: 1rem;
  font-weight: bolder;
  margin-top: 10px;
  color: var(--white);
}
.highlighted-text {
  font-weight: var(--font-weight-light);
  display: inline-block;
  color: var(--black);
  font-size: 2rem;
}

/* ── Modal / slideshow ── */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}
.modal-content {
  max-width: 80%; max-height: 80%;
  margin: auto;
  display: block;
}
.close {
  position: absolute;
  top: 0px;
  right: 20px;
  color: var(--white);
  font-size: 80px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  background-color: transparent;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--color1);
}
.prev,
.next {
  font-size: 6rem; font-weight: bold;
  top: 52%; transform: translateY(-62%);
  z-index: 10;
  cursor: pointer;
  position: absolute;
  color: var(--white);
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  user-select: none;
  padding: 10px;
  background-color: transparent;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover {
  background-color: transparent;
  -webkit-text-stroke-width: var(--wtsw); -webkit-text-stroke-color: var(--black);
  color: var(--color2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --font-large: 3rem;
    --font-mid: 2rem;
    --font-small: 1.5rem;
    --font-smaller: 1.2rem;
    --font-tiny: 1rem;
    --font-super-tiny: 0.5rem;
    --wtsw: 1px;
  }
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .site-header, nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .hero {
    margin-top: 25%;
    padding: 1.5rem 1rem;
  }
  .hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
  .description {
    padding: 1rem;
    margin-top: 20%;
    line-height: 1.2;
  }
  .description a.site,
  .description a.email { font-size: 1.5rem; }
  .description div { margin-bottom: 0.5rem; }
  .description div:last-child { margin-bottom: 0; }
  .about_ {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  .about-image img {
    max-width: 100%;
    height: auto;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .about-text {
    font-size: var(--font-smaller);
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .about-container {
    padding: 1rem;
    max-width: 100%;
  }
  .project-container { padding: 2rem 1rem; }
  .project-wrapper { grid-template-columns: 1fr; }
  .project-container h2 { font-size: 1.5rem; line-height: 1.2; }
  .project-label h6 { font-size: 1.5rem; line-height: 1.2; }
  .project-label h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .project-role, .project-name { font-size: var(--font-small); }
  .project-role { margin-right: .5rem; }
  .project-container p { font-size: var(--font-smaller); margin: 1rem 0; }
  .row, .column { display: block; width: 100%; }
  .column img { width: 100%; height: auto; }
  .back-arrow { display: none; }
  .topnav a { font-size: var(--font-mid); padding: 0.5rem 0; }
  .site-footer { font-size: var(--font-tiny); text-align: center; padding: 1rem; }
  .modal-content { max-width: 95%; max-height: 95%; }
  .prev, .next { font-size: 3rem; }
  .close { font-size: 3rem; top: 10px; right: 10px; }
  .topnav a.icon { right: 1rem; top: 0.5rem; font-size: 4rem; }
  h1, h2, h3, h4, a,
  .auto-input,
  .description a,
  .project-role, .project-name, .project-label,
  .back-arrow {
    -webkit-text-stroke-width: 0.5px !important;
  }

  /* Projekte list responsive */
  article.post {
    display: block;
    padding: 0;
    margin: 2rem 0;
    height: auto;
  }
  article.post:nth-child(even) { flex-direction: column !important; }
  article.post a.image-link {
    width: 100%;
    height: 60vh;
    display: block;
    margin: 0; padding: 0;
  }
  article.post a.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  article.post .post-content {
    width: 100%;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .title-link {
    font-size: var(--font-small);
    margin-top: 0.8rem;
    line-height: 1.3;
    -webkit-text-stroke-width: 0.5px;
  }
  .post-content p,
  .highlighted-text { font-size: 1rem; line-height: 1.4; text-align: center; }
  .highlighted-text { display: block; margin-top: 0.5rem; }
}
