/* =========================
   ROOT + RESET
========================= */

:root {
  --bg: #F2EFEA;
  --text: #1A1A1A;
  --muted: #4E4E4E;
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}
/* =========================
   HEADER
========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
}

.logo {
  letter-spacing: 0.08em;
  font-size: 14px;
}

.logo a {
  text-decoration: none;
  color: var(--text);
}

nav a {
  margin-left: 40px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 1;
}


/* =========================
   WORK ARCHIVE (MASONRY OHNE JS)
========================= */

.archive {
  column-width: 300px;      
  column-gap: 40px;         

  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 60px;
}

.project {
  display: inline-block;
  width: 100%;
  margin-bottom: 60px;
  break-inside: avoid;
  color: var(--text);
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.6s ease;
}

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


.project h2 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 500;
}

.project:hover p {
  opacity: 0.8;
}
.project:hover h2 {
  opacity: 0.6;
}

.project p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}


/* =========================
   STILL FRAMES (KLASSISCHES GRID)
========================= */

.still-archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;

  max-width: 1800px;
  margin: 0 auto;
  padding: 80px 60px;
}

.still img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.still:hover img {
  transform: scale(1.02);
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(242, 239, 234, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
}

.lightbox .close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 32px;
  cursor: pointer;
}


/* =========================
   ABOUT
========================= */

.about-container {
  padding: 80px 60px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;   /* verhindert Strecken */
}

.timetravel {
  position: relative;
  max-width: 350px;
  width: 100%;
}

.timetravel img {
  width: 100%;
  display: block;
  transition: opacity 0.8s ease;
}

/* Bild 2 liegt exakt über Bild 1 */
.img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* ECHTER Crossfade */
.timetravel:hover .img-base {
  opacity: 0;
}

.timetravel:hover .img-hover {
  opacity: 1;
}

.about-text h1 {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 500;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}


/* =========================
   CONTACT
========================= */

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 120px 30px;
  text-align: center;
}

.contact-content {
  max-width: 600px;
}

.contact-link {
  display: block;
  font-size: 28px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 18px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.contact-link:hover {
  opacity: 0.6;
  transform: scale(2.00);
}

.contact-location {
  margin-top: 70px;
  font-size: 14px;
  opacity: 0.6;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 40px 60px;
  /*border-top: 1px solid rgba(0,0,0,0.06);*/
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

.footer-right a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--muted);
  transition: opacity 0.3s ease;
}

.footer-right a:hover {
  opacity: 0.6;
}

/* =========================
   PROJECT PAGE
========================= */

.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

.project-hero img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 80px;
}

.project-info {
  margin-bottom: 80px;
}

.project-info h1 {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 10px;
}

.project-subline {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

.project-meta {
  display: flex;
  gap: 80px;
}

.project-meta span {
  font-size: 13px;
  opacity: 0.6;
  display: block;
  margin-bottom: 6px;
}

.project-meta p {
  font-size: 15px;
}

.project-video {
  margin-bottom: 100px;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.youtube-video {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #e5e5e5;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.project-gallery img {
  width: 100%;
  border-radius: 8px;
}

.project-back a {
  text-decoration: none;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.project-back a:hover {
  opacity: 1;
}

.project-back {
  padding-bottom: 15px;
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 25px;
}

.legal-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 30px;
  line-height: 1.7;
}

.legal-text h2 {
  margin-top: 60px;
  margin-bottom: 20px;
  font-size: 24px;
}

.legal-text h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 18px;
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #111;
  color: white;
  padding: 15px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  
  display: flex;
  align-items: center;
  gap: 80px;

  background: #111;
  color: white;

  padding: 14px 20px;
  border-radius: 8px;

  font-size: 13px;
  z-index: 2000;
}

.cookie-banner button {
  background: white;
  color: #111;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.cookie-banner button:hover {
  opacity: 0.8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .site-header {
    padding: 30px 30px;
  }

  .archive,
  .still-archive {
    padding: 60px 30px;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-footer {
    padding: 30px 20px;
  }
}

@media (max-width: 500px) {

  .archive {
    column-width: 100%;
  }

  nav a {
    margin-left: 20px;
  }
}

@media (max-width: 600px) {

.site-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


.site-footer {
  margin-top: 80px;
}

.video-wrapper {
  width: 100%;
  max-width: 100%;
}

 img {
  max-width: 100%;
  height: auto;
}

.site-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  margin: 0;
}

.cookie-banner {
  gap: 20px;
  max-width: 90%;
  width: 92vw;
  left: 50%;
  transform: translateX(-50%);
  }


.project-meta {
  flex-direction: column;
  gap: 25px;
}

.project-page,
.about-container,
.archive,
.still-archive {
  padding: 40px 20px;
}
}