@font-face {
  font-family: 'Saonara';
  src: url('fonts/MADE SAONARA PERSONAL USE.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Saonara 2';
  src: url('fonts/MADE SAONARA 2 PERSONAL USE.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}



* {
  box-sizing: border-box;
}


body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: 'Saonara', serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Wrapper für das Grid */
.grid-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
}

/* 3x3-Grid über die Seite */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* genau 3 Spalten */
  grid-auto-rows: 340px; /* behält die gleichmäßige Höhe */
  width: 100%;
  height: auto;
  gap: 0; /* optional, wenn du keinen Abstand willst */
}

/* einzelne Kachel */
.card {
  position: relative;
  display: block;
  background: #fff;
  border: none;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

/* farbige Fläche komplett */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* knallige Farben je Kachel */
.card--color1::before { background: #a8dce6; }
.card--color2::before { background: #f9b8dc; }
.card--color3::before { background: #b0faf0; }
.card--color4::before { background: #fdffc4; }
.card--color5::before { background: #d4b8e8; }
.card--color6::before { background: #f5d4b0; }
.card--color7::before { background: #edafc0; }
.card--color8::before { background: #f5b8b0; }
.card--color9::before { background: #aaeadc; }
.card--color10::before { background: #c4edff; }
.card--color11::before { background: #f0b0d8; }
.card--color12::before { background: #f0ffb8; }

/* das Bild kleiner und zentriert */
.card-img {
  position: relative;
  z-index: 0;
  width: 88%;
  height: 88%;
  object-fit: cover;
  display: block;
  margin: 6% auto 0;
  background: #fff;
  transition: transform 0.2s ease;
}

/* Overlay mit Text – standard: versteckt */
.card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  color: #fff;
}

.card-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(0,0,0,0.6);
}

.card h2 {
  margin: 0.35rem 0 0.1rem;
  font-size: 2.8rem;
  line-height: 1.1;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-weight: normal;
}

.card p {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

/* Hover-Effekte */
.card:hover .card-img {
  transform: scale(1.12);
  transition: transform 0.4s ease;
}

.card:hover .card-info {
  opacity: 1;
}

/* White overlay effect between image and text on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  z-index: 1;
}

.card:hover::after {
  background: rgba(0,0,0,0.7);
}

/* ===== Footer ===== */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  background: transparent;
  color: #fff;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer-link--center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

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

/* ===== Logo Screen ===== */
.logo-screen {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background: url('img/zurich/DSC01076.png') center / cover no-repeat;
  padding: 1rem 1rem;
}


.logo-text {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  font-family: 'Anton', sans-serif;
  font-size: clamp(5rem, 20vw, 18rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #fff;
  text-align: right;
  mix-blend-mode: difference;
  animation: fadeIn 1.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== About Modal ===== */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.about-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.about-box {
  position: relative;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 40px;
  padding: 2.8rem 3rem;
  max-width: 780px;
  width: calc(100% - 4rem);
  color: #fff;
  transform: translateY(calc(100% + 3rem));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-overlay.open .about-box {
  transform: translateY(0);
}

.about-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.about-close:hover {
  color: #fff;
}

.about-img-wrap {
  flex-shrink: 0;
  width: 190px;
  height: 250px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 0.2rem;
}

.about-name {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}

.about-bio {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 340px;
}

.about-details {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.4rem 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
}

.about-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  font-size: 0.58rem;
  padding-top: 0.1rem;
}

.about-value {
  color: rgba(255,255,255,0.75);
}

.about-value a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.about-value a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .about-box {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-radius: 32px;
    padding: 2rem;
  }
  .about-img-wrap {
    width: 140px;
    height: 140px;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; /* wird per JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  z-index: 999; /* über alles drüber, auch über den Titel unten */
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.3rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.35);
}

/* responsive */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }
  .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    height: auto;
  }
  .card {
    min-height: 240px;
  }
  .card-img {
    width: 90%;
    height: auto;
    margin-top: 3rem;
  }
  .card-info {
    opacity: 1;
  }
  .card::after {
    background: none;
  }
}

@media (max-width: 420px) {
  .card {
    min-height: 200px;
  }
  .card h2 {
    font-size: 1.5rem;
  }
}

/* ===== Detail / Portfolio-Seite ===== */
body.detail-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.back-link {
  display: inline-block;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
  transition: color 0.2s;
  z-index: 10;
}

.back-link:hover {
  color: #fff;
}

/* ===== Hero-Bereich ===== */
.project-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2.5rem 2rem;
}

@media (max-width: 600px) {
  .project-hero {
    padding: 3.5rem 1.5rem 1rem;
  }
}

.project-label {
  display: block;
  font-family: 'Saonara', serif;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}

.project-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin: 0 0 1.2rem;
  color: #fff;
}

.project-category {
  font-family: 'Saonara', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ===== Info-Bereich (Credits + Beschreibung) ===== */
.project-info {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 2.5rem 2.5rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.project-credits {
  font-family: system-ui, -apple-system, sans-serif;
}

.credits-label {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 1.4rem 0 0.3rem;
}

.credits-label:first-child {
  margin-top: 0;
}

.credits-value {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.project-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin: 0;
  max-width: 520px;
}

@media (max-width: 600px) {
  .project-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== Detail / Portfolio-Seite ===== */
.detail-gallery {
  flex: 1;
  column-count: 3;
  column-gap: 0;
  width: 100%;
  line-height: 0; /* entfernt vertikalen Weissraum zwischen Bildern */
}

.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  margin: 0;
  padding: 0;
  width: 100%;
  display: inline-block;
  margin-bottom: 0; /* entfernt mögliche Restabstände */
  padding-bottom: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.9);
  border: none;
}

.gallery-item.portrait-auto {
  background: #fff;
}

@media (max-width: 1000px) {
  .detail-gallery {
    column-count: 3;
  }
}

@media (max-width: 700px) {
  .detail-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .detail-gallery {
    column-count: 1;
  }
}

/* ===== Download-Seite ===== */
body.download-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Anton', sans-serif;
}

.download-hero {
  position: relative;
  height: 100vh;
  background: center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

.download-hero-info {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.5rem 3rem;
}

.download-hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin: 0 0 0.6rem;
  color: #fff;
}

.download-hero-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.download-back {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
  z-index: 10;
}

.download-back:hover {
  color: #fff;
}

/* Bild-Raster */
.download-grid {
  column-count: 3;
  column-gap: 3px;
  padding: 3px;
  background: #000;
  line-height: 0;
}

.download-item {
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 3px;
  line-height: 0;
}

.download-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.download-item:hover img {
  filter: brightness(0.7);
}

/* ===== Download Viewer ===== */
.dl-viewer {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: #000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dl-viewer.open {
  opacity: 1;
  pointer-events: all;
}

.dl-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.dl-viewer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Anton', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.dl-viewer-close:hover {
  color: #fff;
}

.dl-viewer-download {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s;
}

.dl-viewer-download:hover {
  background: rgba(255,255,255,0.22);
}

.dl-download-wrap {
  position: relative;
}

.dl-quality-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(30,30,30,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 160px;
  backdrop-filter: blur(12px);
  z-index: 100;
}

.dl-quality-menu.open {
  display: flex;
}

.dl-quality-opt {
  padding: 0.75rem 1.2rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dl-quality-opt:last-child {
  border-bottom: none;
}

.dl-quality-opt:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.dl-viewer-img-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.dl-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.dl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.dl-nav:hover {
  color: #fff;
}

.dl-nav--prev { left: 0.5rem; }
.dl-nav--next { right: 0.5rem; }

.dl-nav:disabled {
  opacity: 0.15;
  cursor: default;
}

@media (max-width: 700px) {
  .download-grid {
    column-count: 2;
  }
}

@media (max-width: 420px) {
  .download-grid {
    column-count: 1;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff0000;
  pointer-events: none; /* soll nicht anklickbar sein */
  transform: translate(-50%, -50%);
  z-index: 9999;
}
