/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* --- HEADER --- */
  .site-header {
    width: 100%;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-inner {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Wichtig als Bezugspunkt */
  }
  
  /* Header Left */
  .logo-link {
    display: flex;
    align-items: center;
    z-index: 2; /* Bleibt über der Nav klickbar */
  }
  
  .logo-img {
    max-height: 40px;
    width: auto;
    display: block;
  }
  
  /* Header Center - Absolut zentriert */
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 48px; 
    white-space: nowrap;
  }
  
  .nav-item {
    padding: 0; /* Altes Padding raus, da wir jetzt gap nutzen */
    margin: 0;
    font-size: 16px; 
    font-weight: 500;
    transition: opacity 0.2s ease;
  }
  
  .nav-item:hover {
    opacity: 1;
    color: #0082f3 !important;
  }
  
  /* Header Right */
  .header-cta {
    z-index: 2; /* Bleibt über der Nav klickbar */
  }
  
  .header-cta .cta-btn {
    display: inline-block;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 24px;
    transition: opacity 0.2s ease;
  }
  
  .header-cta .cta-btn:hover {
    opacity: 0.8;
  }
  
  /* --- MAIN / PROJECTS SECTION (INDEX) --- */
  .main-content {
    width: 100%;
    padding-top: 0px;
    padding-bottom: 24px; /* Exakt 24px Bottom-Padding auf der Main Page */
  }
  
  .projects-section {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;  /* Global 24px Padding */
    padding-right: 24px; /* Global 24px Padding */
  }
  
  /* 3 Spalten Grid */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px; /* Abstand horizontal */
    row-gap: 48px;
    width: 100%;
  }
  
  .project-item {
    width: 100%;
  }
  
  .project-link {
    display: block;
  }
  
  /* Bild-Container mit exakt festen 1:1 Maßen */
  .project-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    overflow: hidden;
  }
  
  .project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .project-link:hover .project-img-wrapper img {
    transform: scale(1.02);
  }
  
  /* Details unter dem Bild */
  .project-details {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
  }
  
  .project-title {
    font-size: 14px;
    font-weight: 500;
  }
  
  .project-year {
    font-size: 14px;
    font-weight: 400;
  }
  
  .project-number {
    font-size: 14px;
    font-weight: 400;
  }
  
  /* --- RESPONSIVE BREAKPOINTS MAIN PAGE --- */
  @media (max-width: 1200px) {
    .projects-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
  }
  
  @media (max-width: 640px) {
    .nav-links {
      display: none;
    }
    .projects-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .header-inner,
    .projects-section {
      padding-left: 16px;
      padding-right: 16px;
    }
  }
  
  
  /* --- PROJECT DETAIL PAGE (50/50 FULL-VIEWPORT LAYOUT) --- */
  .detail-main {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 24px; /* Fester 24px Abstand nach unten */
    
    /* Exakt verbleibende Höhe des Displays minus Header-Höhe */
    height: calc(100dvh - 72px); 
    display: flex;
    flex-direction: column;
  }
  
  .detail-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 48px;
  }
  
  /* LEFT: SLIDER COLUMN (50%) */
  .detail-slider-col {
    flex: 1;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-height: 100%; /* Verhindert ein Überlappen nach unten */
    max-width: 100%;
    background-color: #f4f4f4;
    overflow: hidden;
    border-radius: 2px;
  }
  
  .slides-container {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }
  
  .slide.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* SLIDER PILLS (24px Padding Bottom) */
  .slider-pills {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
  }
  
  .pill {
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    height: 6px;
    width: 6px;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
  }
  
  .pill:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  /* Aktive langgezogene Pille */
  .pill.active {
    width: 24px;
    background-color: #ffffff;
  }
  
  /* RIGHT: CONTENT COLUMN (50%) */
  .detail-content-col {
    flex: 1;
    width: 50%;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal exakt in der Mitte zentriert */
  }
  
  .content-inner {
    max-width: 540px; /* Optimale Zeilenlänge */
  }
  
  .project-category {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
    margin-bottom: 12px;
    font-weight: 500;
  }
  
  .detail-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #000000;
  }
  
  .detail-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 32px;
  }
  
  .detail-description {
    font-size: 15px;
    line-height: 1.6;
    color: #222222;
    margin-bottom: 48px;
    font-weight: 400;
  }
  
  /* SPECS GRID */
  .project-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    border-top: 1px solid #e5e5e5;
    padding-top: 32px;
    margin-bottom: 48px;
  }
  
  .spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .spec-label {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .spec-value {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
  }
  
  /* EXTERNAL BUTTON */
  .external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .external-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
  }
  
  /* RESPONSIVE DETAIL PAGE (MOBILE / TABLET FALLBACK) */
  @media (max-width: 1024px) {
    .detail-main {
      height: auto; /* Auf Mobile wieder natürliches Scrollen erlauben */
    }
  
    .detail-container {
      flex-direction: column;
      gap: 32px;
    }
  
    .detail-slider-col,
    .detail-content-col {
      width: 100%;
      height: auto;
    }
  
    .slider-wrapper {
      height: auto;
    }
  
    .detail-content-col {
      padding-top: 0px;
    }
  }
  
  @media (max-width: 768px) {
    .detail-main {
      padding-left: 16px;
      padding-right: 16px;
    }
  
    .detail-content-col {
      padding-bottom: 40px;
    }
  
    .detail-title {
      font-size: 28px;
    }
  
    .detail-subtitle {
      font-size: 16px;
      margin-bottom: 24px;
    }
  
    .project-specs {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-bottom: 32px;
    }
  
    .external-btn {
      width: 100%;
      text-align: center;
    }
  }

  /* VIDEO WRAPPER (Gleiche Dimensionen wie Slider) */

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-height: 100%;
    max-width: 100%;
    background-color: #000000;
    overflow: hidden;
    border-radius: 2px;
  }
  
  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Zwingt den Index-Button zu exakt demselben Look & Padding wie im Portfolio */
#animated-button.cta_button {
    display: inline-block !important;
    padding: 10px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 24px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
  }
  
  #animated-button.cta_button .text-block-2 {
    color: #000000 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  /* Zwingt den CTA-Button auf der Index-Seite exakt auf dieselbe vertikale Höhe */
.navbar-v2.home.tag.index .header-cta,
.navbar-v2.home.tag.index #animated-button {
  display: flex !important;
  align-items: center !important;
  transform: translateY(-2px) !important; /* Hebt den Button minimal an (bei Bedarf -1px bis -3px anpassen) */
}

/* Zwingt den Index-Header zu exakt derselben Höhe und Padding wie das Portfolio */
.navbar-v2.home.tag.index {
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }
  
  .navbar-v2.home.tag.index .ce_logo {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }