/* ============================================
   MORPHA.CH — Projekt-Detail Styles
   projekt.html — Template für Einzelprojekte
   ============================================ */


/* ============================================
   PROJEKT-HEADER
   Ruhiger Einstieg, Projekttitel gross
   ============================================ */

.projekt-header {
  padding-top: calc(var(--nav-height) + var(--section-y));
  padding-bottom: var(--section-y-sm);
}

.back-link {
  color: var(--text-tertiary);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: inline-block;
}

.back-link:hover {
  color: var(--text-secondary);
}

.projekt-header .t-label {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.projekt-title {
  max-width: 20ch;
  color: var(--text-primary);
}

.projekt-title .serif-em {
  font-size: 1.04em;
}

.projekt-lead {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 48ch;
}


/* ============================================
   HAUPTBILD
   Breites Bild, leichte negative margin-top
   um es an den Header anzuschliessen
   ============================================ */

.projekt-visual {
  padding-top: 0;
}

.projekt-main-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.projekt-placeholder--main {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    #E2DDD5 0%,
    #CFC9BE 35%,
    #BEB5A8 70%,
    #B3A998 100%
  );
}


/* ============================================
   AUFGABE / CHALLENGE
   Zweispaltig: Label + Titel links, Text rechts
   ============================================ */

.projekt-challenge {
  background-color: var(--bg-primary);
}

.projekt-two-col {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.projekt-col-left .t-label {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.projekt-sub-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.projekt-sub-title .serif-em {
  font-size: 1.05em;
}

.projekt-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projekt-col-right .t-body + .t-body {
  /* Zweiter Absatz leicht enger */
  margin-top: 0;
}


/* ============================================
   DETAIL-BILD + TEXT
   Bild links (60%), Text rechts — andere
   Gewichtung als Aufgaben-Section
   ============================================ */

.projekt-details {
  background-color: var(--bg-secondary);
}

.projekt-detail-row {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}

.projekt-placeholder--detail {
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    120deg,
    #D8D2C8 0%,
    #C4BDB1 50%,
    #B8B1A3 100%
  );
}

.projekt-detail-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projekt-detail-text .t-label {
  margin-bottom: 0.25rem;
}


/* ============================================
   NÄCHSTES PROJEKT
   Grosser Link, dezent
   ============================================ */

.projekt-next {
  background-color: var(--bg-primary);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.projekt-next-inner {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.projekt-next-inner .t-label {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.projekt-next-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  transition: padding-left 0.3s ease;
}

.projekt-next-link:hover {
  padding-left: 0.5rem;
}

.projekt-next-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-primary);
}

.projekt-next-title .serif-em {
  font-size: 1.04em;
}

.projekt-next-arrow {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--text-tertiary);
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.projekt-next-link:hover .projekt-next-arrow {
  color: var(--text-primary);
  transform: translateX(4px);
}


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

@media (max-width: 900px) {
  .projekt-two-col {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .projekt-detail-row {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .projekt-placeholder--detail {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .projekt-header {
    padding-top: calc(var(--nav-height) + clamp(60px, 12vw, 100px));
  }

  .projekt-main-image {
    aspect-ratio: 4 / 3;
  }

  .projekt-next-link {
    flex-direction: column;
    gap: 0.75rem;
  }
}
