/* ============================================================
   BLINK Werbeagentur — Global Stylesheet
   ============================================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/rubik-light-latin-ext.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/rubik-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/rubik-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/rubik-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('../assets/fonts/rubik-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-dark: #080808;
  --color-red: #ED1C24;
  --color-blue: #0088CB;
  --color-yellow: #FFCB05;
  --color-gray-1: rgb(114,114,114);
  --color-gray-2: rgb(176,176,176);
  --color-gray-light: rgb(240,240,240);
  --color-gray-border: rgb(199,199,199);
  --color-gray-muted: rgb(153,153,151);

  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --header-height: 110px;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: 300;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

.header-logo .logo-text {
  font-family: var(--font-secondary);
  font-size: 25px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: #77787B;
  font-weight: 400;
}

.header-logo .logo-text strong {
  font-weight: 700;
  text-transform: uppercase;
  color: #77787B;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 500;
  color: #444444;
  letter-spacing: normal;
  padding: 0 18px;
  position: relative;
  transition: opacity 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 0.6;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overscroll-behavior: contain;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 10px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .site-header {
    padding: 0 20px;
  }
  .header-logo img {
    height: 36px;
    width: 36px;
  }
  .header-logo .logo-text {
    font-size: 18px;
  }
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 8px;
    align-items: center;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--color-white);
}

.footer-copyright {
  background: var(--color-white);
  padding: 20px 40px;
  font-size: 13px;
  font-weight: 400;
  color: #7A8283;
  border-top: 1px solid var(--color-gray-light);
}

.footer-links {
  background: #eff1f2;
  padding: 40px 40px 60px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
}

.footer-links a {
  color: #A4ABAD;
  text-decoration: underline;
  transition: opacity 0.2s;
}

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

.footer-links .footer-separator {
  color: #A4ABAD;
}

/* ============================================================
   HERO SLIDESHOW (Homepage)
   ============================================================ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-slideshow .slide img,
.hero-slideshow .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 40px;
  z-index: 2;
}

.hero-overlay h1 {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 94px);
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-overlay .hero-subtitle {
  margin-top: 20px;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(15px, 2vw, 23px);
  letter-spacing: normal;
}

/* Only show overlay text when a video slide is active */
.hero-overlay--video-only {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slideshow.has-active-video .hero-overlay--video-only {
  opacity: 1;
}

/* Slideshow arrows — thin SVG chevrons */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: opacity 0.2s;
  user-select: none;
  opacity: 0.8;
}

.slide-arrow svg {
  width: 18px;
  height: 38px;
  display: block;
  fill: rgba(255,255,255,0.9);
}

.slide-arrow:hover {
  opacity: 1;
}

.slide-arrow--prev {
  left: 20px;
}

.slide-arrow--next {
  right: 20px;
}

/* Slide indicator dots */
.slide-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.slide-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgb(240, 240, 240);
  transition: background 0.3s;
}

.slide-dots button.active {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   PORTFOLIO GRID (2×2 reference cards)
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 60px 60px;
  gap: 30px;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.portfolio-card__image img.portfolio-card__image--cover {
  object-fit: cover;
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.03);
}

.portfolio-card__info {
  padding: 20px 0 10px;
}

.portfolio-card__info h3 {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 27px;
  line-height: 33px;
  color: var(--color-black);
}

.portfolio-card__info p {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 21px;
  line-height: 26px;
  color: var(--color-black);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 30px;
  }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  padding: 60px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.video-section video {
  width: 100%;
  border-radius: 2px;
  background: var(--color-black);
}

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

/* Values — centered single-column layout */
.values-section {
  max-width: 850px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.values-section > h2 {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 100px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.value-block {
  margin-bottom: 0;
}

.value-block h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 31px);
  text-transform: none;
  margin-bottom: 18px;
  color: var(--color-black);
}

.value-block h3 .value-num {
  font-weight: 700;
}

.value-block .value-text p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--color-black);
}

.value-block .value-text p + p {
  margin-top: 10px;
}

.value-block .value-text p.value-highlight {
  font-family: var(--font-secondary);
  font-weight: 300;
  color: var(--color-black);
  font-size: 18px;
  margin-top: 40px;
}

.value-separator {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 31px;
  color: var(--color-black);
  padding: 20px 0;
  line-height: 1;
}

/* Team — side-by-side layout */
.team-section {
  background: var(--color-white);
  padding: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.team-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
  background: rgb(199, 199, 199);
}

.team-card__photo {
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 55 / 100;
}

.team-card h3 {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 23px;
  color: rgb(47, 46, 46);
  margin-bottom: 12px;
}

.team-card .team-title {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-black);
  line-height: 1.6;
}

.team-divider {
  border: none;
  border-top: 2px solid var(--color-black);
  width: 90px;
  margin: 24px auto;
}

.team-card .team-email {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-black);
  margin-top: 24px;
}

.team-card .team-email a {
  color: var(--color-black);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-card__photo img {
    aspect-ratio: 3 / 4;
  }
}

/* Clients */
.clients-section {
  padding: 60px 40px;
  text-align: center;
}

.clients-section h2 {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray-1);
  margin-bottom: 40px;
}

.clients-section img {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Showreel */
.showreel-section {
  background: var(--color-dark);
  padding: 80px 40px;
  text-align: center;
  color: var(--color-white);
}

.showreel-section h2 {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.showreel-section video {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: block;
  background: var(--color-black);
}

/* Office Gallery */
.office-section {
  padding: 60px 40px;
  text-align: center;
}

.office-section h2 {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray-1);
  margin-bottom: 40px;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.office-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 640px) {
  .office-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
/* Contact page — two-column: content left, map right */
.contact-page {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: calc(100vh - var(--header-height));
}

.contact-content {
  padding: 60px 80px 60px 100px;
}

.contact-intro {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.4;
  color: var(--color-black);
  margin-bottom: 50px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-details p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-black);
}

.contact-phone a {
  color: var(--color-black);
  text-decoration: none;
}

.contact-divider {
  border: none;
  border-top: 1px solid rgb(199, 199, 199);
  margin: 0 0 40px;
}

/* Contact form — underline style inputs */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 10px;
  border: none;
  border-bottom: 1px solid var(--color-black);
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 27px);
  transition: border-color 0.2s;
  background: transparent;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-black);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-family: var(--font-secondary);
  font-weight: 400;
  color: var(--color-black);
}

.contact-form textarea {
  resize: vertical;
  min-height: 60px;
  margin-bottom: 24px;
}

.contact-form button {
  display: inline-block;
  padding: 12px 36px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.8;
}

.form-success {
  display: none;
  padding: 20px;
  background: var(--color-gray-light);
  font-size: 16px;
  font-weight: 400;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

/* Map — right column, full height */
.contact-map {
  position: relative;
  min-height: 100%;
}

.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .contact-page {
    grid-template-columns: 1fr;
  }
  .contact-content {
    padding: 40px;
  }
  .contact-map {
    min-height: 400px;
  }
  .contact-map iframe {
    position: relative;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-content {
    padding: 30px 20px;
  }
  .contact-map {
    min-height: 280px;
  }
  .contact-map iframe {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
/* Project navigation arrows */
.project-nav {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  height: 0;
}

.project-nav__prev,
.project-nav__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--color-black);
  text-decoration: none;
  z-index: 10;
  padding: 10px;
  transition: opacity 0.2s;
}

.project-nav__prev { left: 20px; }
.project-nav__next { right: 20px; }

.project-nav__prev:hover,
.project-nav__next:hover {
  opacity: 0.5;
}

/* Project hero image */
.project-hero {
  width: 100%;
  background: var(--color-dark);
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.project-hero--transparent {
  overflow: visible;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* Background image behind hero (layered below the product/hero PNG) */
.project-hero--transparent .project-hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  z-index: 0;
}

.project-hero--transparent .project-hero__bg img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

/* Fallback: solid color ::before if no bg image used */
.project-hero--transparent::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: var(--project-hero-bg, transparent);
  z-index: -1;
}

.project-hero--transparent.has-bg-image::before {
  display: none;
}

.project-hero--transparent img.project-hero__main {
  max-height: none;
  object-fit: contain;
  position: relative;
  z-index: 1;
  /* Negative margin pulls image up so heads nearly touch the content */
  margin-top: -3%;
}

.project-hero--transparent img {
  max-height: none;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.project-hero--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 0 5%;
}

.project-hero--grid img {
  max-height: 80vh;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .project-hero--grid {
    grid-template-columns: 1fr;
  }
  .project-hero--transparent {
    margin-top: -40px;
  }
}

/* Project content */
.project-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 100px 40px;
  position: relative;
  z-index: 2;
}

.project-content--left {
  max-width: none;
  margin: 0;
  padding: 20px 52% 10px 10%;
}

.project-content h1 {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  color: var(--color-black);
}

.project-subtitle {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--color-black);
  margin-top: 14px;
  line-height: 1.5;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--color-gray-border);
  margin: 30px 0 24px;
  max-width: 550px;
  margin-left: 0;
}

/* Metadata grid */
.project-meta {
  display: grid;
  grid-template-columns: 4fr 2fr 1.5fr;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.project-meta dt {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  margin-bottom: 6px;
  color: var(--color-black);
}

.project-meta dd {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
}

@media (max-width: 768px) {
  .project-nav__prev,
  .project-nav__next {
    top: auto;
    bottom: 20px;
    font-size: 22px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-nav__prev { left: 16px; }
  .project-nav__next { right: 16px; }
}

@media (max-width: 640px) {
  .project-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-content {
    padding: 24px 20px;
  }
  .project-content--left {
    padding: 24px 20px;
  }
  .project-content--centered {
    padding: 24px 20px;
  }
}

/* Project gallery / image carousel */
.project-gallery {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-gallery::-webkit-scrollbar {
  display: none;
}

.project-gallery__track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 10%;
}

.project-gallery__track img {
  height: auto;
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.project-gallery__nav:hover {
  background: rgba(255,255,255,0.95);
}

.project-gallery__nav--prev { left: 10px; }
.project-gallery__nav--next { right: 10px; }

@media (max-width: 768px) {
  .project-gallery__track img {
    max-height: 50vh;
  }
}

/* Project body text */
.project-body {
  columns: 2;
  column-gap: 40px;
  margin-top: 0;
}

.project-body p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-black);
  margin-bottom: 16px;
  break-inside: avoid;
}

.project-body h3 {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 20px;
  margin: 32px 0 12px;
  break-after: avoid;
  column-span: all;
}

.project-body video {
  width: 100%;
  margin: 24px 0;
  background: var(--color-black);
  column-span: all;
}

@media (max-width: 640px) {
  .project-body {
    columns: 1;
  }
}

.project-back {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-gray-1);
  transition: color 0.2s;
}

.project-back:hover {
  color: var(--color-black);
}

/* Centered variant for project content (e.g. "Die Unterstützung") */
.project-content--centered {
  max-width: none;
  margin: 0;
  padding: 50px 25%;
  text-align: center;
}

.project-content--centered .project-body {
  columns: 1;
  text-align: center;
}

.project-content--centered .project-body h3 {
  column-span: none;
  margin: 0 0 16px;
}

/* Parallax fixed background reveal section.
   The image is position:fixed behind everything at z-index:0.
   All other sections sit at z-index:1 with white backgrounds,
   covering the image. The .project-parallax container provides
   a viewport-height gap where no content covers the image,
   creating the reveal/cover effect on scroll. */
.project-parallax {
  height: 100vh;
  position: relative;
}

.project-parallax__img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.project-parallax__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--color-white);
}

/* Every section before/after the parallax must cover the fixed image */
.project-nav,
.project-hero,
.project-gallery,
.project-related,
.project-flugblatt,
.project-campaign {
  position: relative;
  z-index: 1;
  background: var(--color-white);
}

.project-content {
  background: var(--color-white);
}

/* Related projects horizontal scroll */
.project-related {
  padding: 40px 0 60px;
}

.project-related__back {
  text-align: center;
  margin-bottom: 30px;
}

.project-related__back a {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-gray-1);
  transition: color 0.2s;
}

.project-related__back a:hover {
  color: var(--color-black);
}

.project-related__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Carousel nav buttons */
.project-related__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.project-related__nav:hover { background: rgba(255, 255, 255, 0.97); }
.project-related__nav--prev { left: 10px; }
.project-related__nav--next { right: 10px; }

.project-related__grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .project-related__grid {
    padding: 0 20px;
  }
}

.project-related__item {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-shrink: 0;
}

.project-related__item img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.project-related__item:hover img {
  opacity: 0.8;
}

.project-related__item span {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-gray-1);
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-page {
  max-width: 800px;
  margin: 0;
  margin-left: 20%;
  padding: 80px 40px;
  font-family: var(--font-secondary);
}

.legal-page--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.legal-page h1 {
  font-weight: 400;
  font-size: 27px;
  text-transform: none;
  letter-spacing: normal;
  color: rgb(81, 88, 90);
  line-height: 1.5;
  margin-bottom: 24px;
}

.legal-page .legal-divider {
  display: none;
}

.legal-page h2 {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  margin: 24px 0 8px;
}

.legal-page p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgb(81, 88, 90);
  margin-bottom: 16px;
}

.legal-page a {
  color: rgb(81, 88, 90);
  text-decoration: underline;
}

/* Datenschutz uses larger body text than Impressum */
.legal-page--datenschutz h1 {
  line-height: 27px;
}

.legal-page--datenschutz p {
  font-size: 18px;
  line-height: 27px;
}

@media (max-width: 768px) {
  .legal-page {
    margin-left: 0;
    padding: 40px 20px;
  }
}

/* ============================================================
   PROJECT FLUGBLATT (image-left + text-right split)
   ============================================================ */
.project-flugblatt {
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
}

.project-flugblatt__img {
  flex: 0 0 55%;
  max-width: 55%;
  margin-left: -5%;
}

.project-flugblatt__img img {
  width: 100%;
  height: auto;
  display: block;
}

.project-flugblatt__text {
  flex: 1;
  padding: 60px 8% 60px 5%;
}

.project-flugblatt__text h3 {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 32px);
  margin-bottom: 16px;
}

.project-flugblatt__text p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
}

/* ============================================================
   PROJECT HERO — TEXT OVERLAY
   ============================================================ */
.project-hero--overlay {
  position: relative;
}

.project-hero__overlay-text {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 38%;
}

.project-hero__overlay-text h2,
.project-hero__overlay-text h3 {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.2;
  color: white;
  margin: 0;
}

/* ============================================================
   PROJECT FLUGBLATT — REVERSE (text-left, image-right)
   ============================================================ */
.project-flugblatt--reverse {
  flex-direction: row-reverse;
}

.project-flugblatt--reverse .project-flugblatt__img {
  margin-left: 0;
}

.project-flugblatt--reverse .project-flugblatt__text {
  padding: 60px 4% 60px 10%;
}

@media (max-width: 768px) {
  .project-flugblatt,
  .project-flugblatt--reverse {
    flex-direction: column;
  }
  .project-flugblatt__img {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .project-flugblatt__text {
    padding: 30px 20px;
  }
  .project-flugblatt--reverse .project-flugblatt__text {
    padding: 30px 20px;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   LIGHTBOX OVERLAY
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
}
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  font-family: var(--font-secondary);
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
  padding: 20px;
  line-height: 1;
}
.lightbox-nav:hover {
  opacity: 1;
}
.lightbox-nav--prev {
  left: 10px;
}
.lightbox-nav--next {
  right: 10px;
}
