/* ==========================================================================
   Unsere Projekte: großes Bild mit Infokarte + Projektliste (per JS)
   ========================================================================== */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}

.projects__stage {
  position: relative;
  flex: 999 1 560px;
  min-width: 0;
  min-height: 520px;
  display: grid;
  overflow: hidden;
  background: #232725;
}
.project {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.project__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 1.2s ease,
    transform 7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.project__card {
  position: relative;
  max-width: 460px;
  padding: 26px 52px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.6s ease 0.2s,
    transform 0.6s var(--ease-out) 0.2s;
}
.project.is-active .project__img {
  opacity: 1;
  transform: scale(1.06);
}
.project.is-active .project__card {
  opacity: 1;
  transform: none;
  z-index: 1;
}
html:not(.js) .project:first-child .project__img,
html:not(.js) .project:first-child .project__card {
  opacity: 1;
  transform: none;
}

.project__card .eyebrow {
  font-size: 12px;
}
.project__card .eyebrow::before {
  display: none;
}
.project__card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
}
.project__card p {
  color: var(--ink-soft);
  font-size: 16px;
}
.project__card .tags {
  padding-top: 4px;
}

/* Projektliste rechts */
.projects__nav {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.projects__nav button {
  width: 100%;
  padding: 16px 4px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s;
}
.projects__nav button:hover {
  background: #f1f5ed;
}
.projects__nav .sim {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.projects__nav .title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
}
.projects__nav button.is-active .title {
  color: var(--green-700);
}
.projects__nav button::after {
  content: "";
  height: 3px;
  margin-top: 10px;
  background: var(--green-500);
  transform-origin: left;
  transform: scaleX(0);
}
.projects__nav button.is-active::after {
  animation: progress var(--interval, 6s) linear forwards;
}
