/* ============================================
   CUSTOM FONT: Humane
   ============================================ */
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #f5f0eb;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.65;
}

ul {
  list-style: none;
}

/* ============================================
   LAYOUT: SIDEBAR + MAIN
   ============================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background-color: #f5f0eb;
  z-index: 100;
  overflow-y: auto;
  padding: 4% 2% 0 3.5%;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-grid {
  margin-left: 320px;
  min-height: 100vh;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: block;
  margin-bottom: 32px;
  line-height: 1;
}

.logo-img {
  width: 100%;
  max-width: 60px;
  height: auto;
  display: block;
}

.logo-line {
  display: block;
  font-family: 'Archivo Black', 'Impact', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #333;
  line-height: 1.05;
}

/* ============================================
   NAVIGATION (Sidebar)
   ============================================ */
.main-nav {
  margin-bottom: 28px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-links li a {
  font-family: Humane, Impact, sans-serif;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 5rem;
  letter-spacing: 0px;
  color: rgba(11, 0, 255, 1);
  text-transform: uppercase;
  display: block;
  padding: 4px 0;
  transition: opacity 0.3s;
}

.nav-links li a:hover {
  opacity: 0.5;
}

/* ============================================
   SOCIAL LINKS (Sidebar)
   ============================================ */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-icon {
  color: #333;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.5;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   CONTACT INFO (Sidebar)
   ============================================ */
.sidebar-contact {
  margin-top: auto;
  padding-bottom: 30px;
}

.sidebar-contact p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
}

.sidebar-contact .contact-label {
  font-family: Humane, Impact, sans-serif;
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: rgba(11, 0, 255, 1);
  margin-bottom: 1px;
}

.sidebar-contact .contact-rep {
  margin-top: 14px;
  font-weight: 500;
  color: #333;
}

.sidebar-contact .contact-agency {
  font-weight: 500;
  color: #333;
}

.sidebar-contact a {
  color: #555;
}

.sidebar-contact a:hover {
  color: #333;
  opacity: 1;
}

/* ============================================
   MOBILE HEADER (hidden on desktop)
   ============================================ */
.mobile-header {
  display: none;
}

/* ============================================
   3-COLUMN MASONRY GRID
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: 0 18px;
  padding-top: 4%;
  padding-right: 3%;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  grid-row-end: span 28;
  margin-bottom: 18px;
  transition: opacity 0.3s ease;
}

.grid-item img,
.grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder items (no image) */
.grid-item:not(:has(img)):not(:has(video)) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(0, 0, 0, 0.06) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.grid-item:hover {
  opacity: 0.9;
}

/* Tall items (CSS fallback before JS masonry) */
.grid-item.tall {
  grid-row-end: span 52;
}


/* Placeholder labels inside grid items */
.ph-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
  position: relative;
}

.ph-label.light {
  color: rgba(255, 255, 255, 0.4);
}

/* Video grid item */

.video-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ============================================
   ABOUT + CONTACT PAGE
   ============================================ */
.about-content {
  margin-left: 320px;
  padding: 6% 12% 6% 8%;
  min-height: 100vh;
}

/* Hero: 2-column layout */
.about-hero {
  display: flex;
  gap: 60px;
  margin-bottom: 64px;
  align-items: flex-start;
}

.about-hero-left {
  flex: 1;
  min-width: 0;
}

.about-hero-right {
  flex: 0 0 340px;
}

.about-title {
  font-family: 'Humane', 'Impact', sans-serif;
  font-size: 3.8rem;
  font-weight: 500;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 28px;
}

.about-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: 14px;
}

.about-heading {
  font-family: 'Humane', 'Impact', sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 12px;
}

.about-contact {
  margin-bottom: 48px;
}

.about-contact-block {
  margin-bottom: 20px;
}

.about-contact-type {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.about-contact-block a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: #555;
}

.about-contact-block a:hover {
  color: #333;
  opacity: 1;
}

.about-clients {
  margin-bottom: 48px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 12px;
}

.client-logo {
  height: 55px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0);
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 0.5;
}

.about-portrait {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Active nav link */
.nav-links li a.active {
  opacity: 0.5;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-content {
  margin-left: 320px;
  padding: 6% 12% 6% 8%;
  min-height: 100vh;
}

.legal-content h1 {
  font-family: 'Humane', 'Impact', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: 'Humane', 'Impact', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #333;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-family: 'Humane', 'Impact', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #333;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.legal-content a {
  color: #555;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #333;
  opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-frame {
  background: #fff;
  padding: 28px 28px 24px 28px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-img,
.lightbox-video {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-video {
  display: none;
}

.lightbox-title {
  font-family: 'Humane', 'Impact', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
  width: 100%;
  flex-shrink: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.6;
}

/* ============================================
   HAMBURGER MENU TOGGLE (mobile)
   ============================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   RESPONSIVE - TABLET (sidebar collapses)
   ============================================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
    padding: 35px 30px 30px;
  }

  .portfolio-grid {
    margin-left: 280px;
    gap: 0 15px;
  }

  .logo-line {
    font-size: 1.7rem;
  }

  .about-content {
    margin-left: 280px;
    padding: 5% 5% 5% 5%;
  }

  .legal-content {
    margin-left: 280px;
    padding: 5% 5% 5% 5%;
  }

  .about-hero {
    gap: 40px;
  }

  .about-hero-right {
    flex: 0 0 280px;
  }

  .nav-links li a {
    font-size: 3.5rem;
    line-height: 4rem;
  }

  .sidebar-contact .contact-label {
    font-size: 2.4rem;
  }

  .about-title {
    font-size: 3.2rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (sidebar becomes overlay)
   ============================================ */
@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background-color: #f5f0eb;
    padding: 16px 20px;
  }

  .mobile-header .logo {
    margin-bottom: 0;
  }

  .mobile-header .logo-img {
    max-width: 36px;
  }

  .mobile-header .logo-line {
    font-size: 1.2rem;
    display: inline;
  }

  .mobile-header .logo-line:first-child::after {
    content: ' ';
  }

  .menu-toggle {
    display: flex;
  }

  /* Sidebar becomes fullscreen overlay */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    padding: 80px 30px 40px;
    z-index: 150;
    transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background-color: #f5f0eb;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar .logo {
    display: none;
  }

  .sidebar-inner {
    align-items: center;
    text-align: center;
    height: 100%;
  }

  .sidebar-inner .main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }

  .nav-links {
    gap: 4px;
    align-items: center;
  }

  .nav-links li a {
    font-size: 9rem;
    line-height: 9.5rem;
    padding: 4px 0;
    letter-spacing: 0px;
    color: rgba(11, 0, 255, 1);
  }

  .sidebar-contact {
    text-align: center;
  }

  .sidebar-contact .contact-label {
    font-size: 5rem;
    line-height: 5.5rem;
    color: rgba(11, 0, 255, 1);
  }

  /* Grid fills full width */
  .portfolio-grid {
    margin-left: 0;
    margin-top: 65px;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .grid-item {
    margin-bottom: 10px;
  }



  .about-content {
    margin-left: 0;
    margin-top: 65px;
    padding: 30px 20px 40px;
  }

  .legal-content {
    margin-left: 0;
    margin-top: 65px;
    padding: 30px 20px 40px;
  }

  .about-hero {
    flex-direction: column;
  }

  .about-hero-right {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .about-title {
    font-size: 3.5rem;
  }

  .lightbox-title {
    font-size: 1.6rem;
    letter-spacing: 1.5px;
  }

  .lightbox {
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .lightbox-frame {
    padding: 8px 8px 12px 8px;
    max-width: 100vw;
    max-height: 100vh;
    box-shadow: none;
    width: 100%;
    height: auto;
  }

  .lightbox-img,
  .lightbox-video {
    max-height: calc(100vh - 60px);
    width: 100%;
    object-fit: contain;
  }

  .lightbox-title {
    margin-top: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    color: #fff;
    mix-blend-mode: difference;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  .mobile-header .logo-line {
    font-size: 1rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .grid-item {
    margin-bottom: 8px;
  }

  .ph-label {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }

  .nav-links li a {
    font-size: 9rem;
    line-height: 9.5rem;
  }

  .sidebar-contact .contact-label {
    font-size: 3rem;
    line-height: 4.5rem;
  }

  .about-heading {
    font-size: 2rem;
  }

  .lightbox-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .sidebar,
  .mobile-header {
    display: none;
  }

  .portfolio-grid {
    margin-left: 0;
  }
}
