* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "CactusJack";
  src: url("Cactus-Jack.woff") format("woff");
}

@font-face {
  font-family: "Milker";
  src: url("Milker.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Avenir", sans-serif;
  overflow-x: hidden;
}

.headline {
  font-family: "Milker";
}

.logo,
.hero,
nav a,
.subtitle {
  font-family: "CactusJack", sans-serif;
}

header {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "CactusJack";
}

.logo {
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: #1a1a1a;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.6;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #1a1a1a;
}

nav a:visited {
  color: #1a1a1a;
}

nav a:hover {
  opacity: 0.6;
}

.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.headline {
  font-size: 6rem;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.subtitle {
  font-size: 1.8rem;
  margin-top: 0.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.floating-icons {
  position: relative;
  width: 100%;
  height: 0;
}

.icon {
  position: absolute;
  display: block;
  isolation: isolate;
}

.icon img {
  width: 250px;
  display: block;
  transition: transform 0.2s;
  cursor: pointer;
}

.icon:nth-child(1) {
  top: -130px;
  left: 5%;
  transform: scale(0.8);
}

.icon:nth-child(2) {
  top: -170px;
  right: 5%;
}

.icon:nth-child(3) {
  top: 80px;
  right: 15%;
}

.icon:nth-child(4) {
  top: -300px;
  right: 32%;
  transform: scale(0.8);
  transform-origin: top right;
}

.icon:nth-child(5) {
  bottom: -360px;
  left: 17%;
  transform: scale(0.8);
  transform-origin: top right;
}

.icon:nth-child(6) {
  bottom: 35px;
  left: 23%;
  transform: scale(0.8);
  transform-origin: top right;
}

.icon.icon-about {
  bottom: 35px;
  left: 25%;
  transform: scale(0.8);
  transform-origin: top right;
}

.icon.icon-museum {
  bottom: -350px;
  left: 43%;
  transform: scale(1);
  transform-origin: top right;
}

.icon.icon-museum .icon-caption {
  inset: -12px; 
}

.icon-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  color: #1a1a1a;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.icon-caption__title {
  font-family: "CactusJack", sans-serif;
  font-size: 2.5rem;
  line-height: 0.9;
}

.icon:hover img {
  transform: scale(1.15);
}

.icon:hover .icon-caption {
  opacity: 1;
  transform: translateY(0);
}


.project-page {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 1rem;
  text-align: center;
}

.headline-projekt3 {
  max-width: 900px;
  text-align: center;
  width: 100%;
  display: block;
  margin: 0 auto;
  font-size: 6rem;
  font-weight: 500;
  font-family: "Milker";
}

.about-hero {
  max-width: 900px;
  text-align: center;
  width: 100%;
  display: block;
  margin: 0 auto;
  font-size: 6rem;
  font-weight: 500;
  font-family: "Milker";
  margin-top: 1rem;
  position: relative;
}

.project-gallery-cigarettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-gallery-cigarettes img {
  width: 110%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.project-gallery-journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  justify-content: center;
  max-width: 1200px;
  margin: 3rem auto;
  justify-items: center;
}

.project-gallery-journal > * {
  overflow: hidden;
}

.project-gallery-journal img {
  width: 120%;
  height: auto;
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 0.25s ease;
  will-change: transform;
}

.project-gallery-journal img:hover {
  transform: scale(1.4); 
}

.project-gallery-photography {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  justify-items: center;
}

.project-gallery-photography img {
  width: 70%;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.project-gallery-workreport1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  row-gap: 0rem;  
  max-width: 1200px;
  margin: 2rem auto;
  justify-items: center;
}

.project-gallery-workreport1 img {
  display: block;  
  width: 150%;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.project-gallery-workreport2 {
   display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  row-gap: -2rem;  
  max-width: 1200px;
  margin: 2rem auto;
  justify-items: center;
}

.project-gallery-workreport2 img {
  display: block;  
  width: 150%;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.project-gallery-cigarettes img:hover,
.project-gallery-photography img:hover,
.project-gallery-workreport1 img:hover,
.project-gallery-workreport2 img:hover,
.about-gallery img:hover {
  transform: scale(1.04);
  filter: brightness(1.03);
}

.about-content {
  max-width: 1100px;
  margin: 3rem auto;
  display: flex;
  gap: 3rem;
  align-items: stretch;
  padding: 0 2rem;
}

.about-text {
  flex: 1;
  text-align: left;
  max-width: 700px;
  margin: 3rem auto;
  font-size: 1.2rem;
  line-height: 1.7;
}

.about-facts {
  margin-top: 2rem;
  text-align: left;
}

.about-facts ul {
  list-style: none;
  padding: 0;
}

.about-facts li {
  font-size: 1.2rem;
  margin: 0.4rem 0;
}

.about-facts li::before {
  content: "→";
  margin-right: 0.6rem;
}

.about-image {
  flex: 0.9;
  display: flex;
  max-height: 400px;
  max-width: 300px;
  margin-top: 2.5rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.projects-overview {
  max-width: 1100px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-row {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: center;
}

.project-row.journal {
  margin-top: -3rem;
}
.project-row.saffron {
  margin-top: -8rem;
}
.project-row.hsbi {
  margin-top: -5rem;
}


.project-preview {
  width: 100%;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.project-preview-small {
  width: 30%;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  transition: transform 0.25s ease;
  cursor: pointer;
  margin-left: 9.5rem;
}

.project-preview-journal {
  width: 140%;
  transform: translateX(-9%);
}

.project-preview-journal-1 {
  width: 130%;
  transform: translateX(-15%);
}

.project-preview-journal-2 {
  width: 130%;
  transform: translateX(-12%);
}

.project-row.museum_website .project-image-link {
  display: flex;
  justify-content: center;  
}

.project-row.museum_website .project-preview {
  width: 60%;             
  max-width: 280px;
  margin: 0 auto;           
}

.project-row.museum_website .project-preview {
  transform: translateX(20px);
}

.project-row.museum_website {
  margin-top: -2.5rem;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-title {
  font-size: 2rem;
  font-family: "CactusJack", sans-serif;
}

.project-info p {
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0.4rem 0 0;
}

.project-img {
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.08);
}

.project-preview-journal,
.project-preview-journal-1,
.project-preview-journal-2 {
  transition: transform 0.3s ease;
}
.project-preview-journal:hover {
  transform: translateX(-9%) scale(1.06);
}
.project-preview-journal-1:hover {
  transform: translateX(-15%) scale(1.06);
}
.project-preview-journal-2:hover {
  transform: translateX(-12%) scale(1.06);
}

.footer {
  width: 100%;
  background: #f7f7f7;
  padding: 4rem 2rem 1.5rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-intro {
  font-family: "Milker", serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: normal;
}

.footer-link {
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.footer-legal {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.75;
}

.footer-legal a {
  color: #1a1a1a;
  text-decoration: none;
}

.footer-legal a:hover {
  opacity: 0.7;
}

.footer-legal .dot {
  opacity: 0.6;
}

.footer-link,
.footer-legal,
.footer-legal a {
  font-family: "Avenir", sans-serif;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.8;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 3.5rem;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox button:hover {
  opacity: 1;
}

.lightbox-journal {
  max-width: 160vw;
  max-height: 155vh;
}
.lightbox-photography {
  max-width: 80vw;
  max-height: 85vh;
}
.lightbox-cigarettes {
  max-width: 110vw;
  max-height: 110vh;
}
.lightbox-workreport1,
.lightbox-workreport2 {
  max-width: 150vw;
  max-height: 140vh;
}

.cv-section {
  max-width: 1100px;
  margin: 5rem auto 0;
  padding: 0 2rem;
}

.cv-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.cv-title {
  font-family: "Milker";
  font-size: 3rem;
  font-weight: 500;
}

.cv-text {
  max-width: 60ch;
  opacity: 0.85;
  line-height: 1.6;
  font-size: 1.1rem;
}

.cv-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.cv-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #1a1a1a;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cv-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.cv-btn--ghost {
  background: transparent;
  color: #1a1a1a;
}

.cv-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cv-modal.active {
  display: block;
}

.cv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.cv-modal__panel {
  position: relative;
  width: min(980px, 92vw);
  height: min(90vh, 900px);
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cv-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cv-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-nav {
  margin: 5rem auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.project-nav-arrows {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.project-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.3rem;
  font-family: "CactusJack", sans-serif;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.project-nav-home {
  font-size: 1.2rem;
}

.project-nav-link .arrow {
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(1px);
}

.project-nav-prev {
  justify-self: start;
}

.project-nav-home {
  justify-self: center;
  font-size: 1.15rem;
  opacity: 0.75;
}

.project-nav-next {
  justify-self: end;
}



@media (max-width: 900px) {
  .headline {
    font-size: 2.4rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .about-text {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 1.5rem auto;
  }

  .about-facts {
    text-align: center;
  }

  .about-facts ul {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
  }

  .about-image {
    width: min(320px, 80%);
    max-width: none;
    max-height: none;
    margin-top: 0.5rem;
  }

  .about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 800px) {
  .footer {
    padding: 3rem 1.5rem 1.2rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-contact {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .headline {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 0;
  }

  header .logo {
    font-size: 1.4rem;
    text-align: center;
    width: 100%;
  }

  header nav {
    display: flex;
    justify-content: center;
    gap: 1.3rem;
    width: 100%;
  }

  header nav a {
    font-size: 1.1rem;
  }

  .about-hero {
    font-size: 2.4rem;
    line-height: 1.1;
  }

  .headline-projekt3 {
    font-size: 2rem;
    line-height: 1.1;
    padding: 0 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2.2rem;
  }

  .cv-title {
    font-size: 2.2rem;
  }
  .cv-modal__panel {
    height: 88vh;
    margin-top: 6vh;
    border-radius: 14px;
  }
}

@media (max-width: 600px) { 
  .floating-icons { 
    position: relative; 
    height: auto !important; 
    margin-top: 1.5rem; 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 1.1rem 1.2rem; 
    justify-items: center; 
    align-items: start; 
    padding: 0 1rem; 
  } 
  
  .floating-icons .icon { 
    position: static !important; 
    top: auto !important; 
    right: auto !important; 
    bottom: auto !important; 
    left: auto !important; 
    will-change: transform; 
    transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)) !important; 
  } 
  
  .floating-icons .icon img { 
    width: min(175px, 46vw) !important; 
    height: auto; margin: 0 auto; 
    transform: none !important; 
  } 
  
.floating-icons .icon:nth-child(1) { --dx: -4px; --dy: -4px; --rot: -1deg; }
.floating-icons .icon:nth-child(2) { --dx:  4px; --dy:  4px; --rot:  1deg; }
.floating-icons .icon:nth-child(3) { --dx: -3px; --dy:  5px; --rot:  1deg; }
.floating-icons .icon:nth-child(4) { --dx:  3px; --dy: -4px; --rot: -1deg; }
.floating-icons .icon:nth-child(5) { --dx: -2px; --dy:  4px; --rot: -1deg; }
.floating-icons .icon:nth-child(6) { --dx:  2px; --dy: -4px; --rot:  1deg; }
 
  
  @keyframes iconFloat { 
    0% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); } 
    50% { transform: translate(calc(var(--dx, 0px) + 6px), calc(var(--dy, 0px) - 6px)) rotate(calc(var(--rot, 0deg) + 0.6deg)); } 
    100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); } 
  } 
  
  .floating-icons .icon { 
    animation: iconFloat 5.2s ease-in-out infinite; 
  } 
  
  .floating-icons .icon:nth-child(2) { 
    animation-duration: 6.1s; 
    animation-delay: -1.1s; 
  } 
  
  .floating-icons .icon:nth-child(3) { 
    animation-duration: 5.6s; 
    animation-delay: -2.0s; 
  } 
  
  .floating-icons .icon:nth-child(4) { 
    animation-duration: 6.4s; 
    animation-delay: -0.6s; 
  } 
  
  .floating-icons .icon:nth-child(5) { 
    animation-duration: 5.9s; 
    animation-delay: -1.6s; 
  } 
  
  .floating-icons .icon:nth-child(6) { 
    animation-duration: 6.7s; 
    animation-delay: -2.4s; 
  } 

@media (max-width: 600px) {
  .floating-icons .icon { animation: none !important; }
}
  
@media (prefers-reduced-motion: reduce) { 
  .floating-icons .icon { animation: none; } 
} 
}

@media (max-width: 600px) {
  [class^="project-gallery-"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.8rem !important;
    padding: 0 1rem;
    justify-items: center;
    align-items: start;
  }

  [class^="project-gallery-"] img {
    display: block;
    margin: 0 auto;
    width: var(--img-w, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  header {
    position: relative;
    z-index: 10;
    background: #fff;
  }

  .hero {
    height: auto;         
    padding: 1rem;
    justify-content: flex-start;
  }

  .subtitle {
    margin-top: 1rem;
  }
}

@media (max-width: 900px) {
  .projects-overview {
    margin: 2.5rem auto;
    padding: 0 1rem;
    gap: 2.2rem;
  }

  .project-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: 0;
  }

  .project-image-link {
    width: min(380px, 92vw);
    aspect-ratio: 4 / 5;
    display: block;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
  }

  .project-image-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: none;
    margin: 0 auto;
  }

  .project-info {
    max-width: 70ch;
  }
}

.icon:focus-within .icon-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .about-content {
    padding-left: 2.3rem !important;
    padding-right: 2.3rem !important;
  }
}

@media (max-width: 600px) {

  html, body { overflow-x: hidden !important; }

  .floating-icons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.9rem 0.7rem !important;
    padding: 0 1rem !important;
    margin-top: 1rem !important;
    position: relative !important;
    height: auto !important;
    justify-items: center !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  .floating-icons .icon {
    position: relative !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    transform: translateX(var(--dx, 0px)) rotate(var(--rot, 0deg)) !important;
    max-width: 100% !important;
  }

  .floating-icons .icon img {
    width: min(155px, 42vw) !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    transform: none !important;
    max-width: 100% !important;
  }

  .floating-icons .icon-caption {
    position: static !important;
    inset: auto !important;
    display: block !important;

    opacity: 1 !important;
    transform: none !important;

    background: transparent !important;
    backdrop-filter: none !important;

    padding: 0 !important;
    margin-top: 0.3rem !important;

    text-align: center !important;
    pointer-events: none !important;
  }

  .floating-icons .icon-caption__title {
    font-size: 1.15rem !important;
    line-height: 1.05 !important;
    color: #1a1a1a !important;
  }

  .floating-icons .icon:nth-child(odd)  { --dx: -6px; --rot: -1deg; }
  .floating-icons .icon:nth-child(even) { --dx:  6px; --rot:  1deg; }

  .icon:hover img { transform: none !important; }
}


