/* RINADI: a fictional brand study shown only inside the existing services section. */
#leistungen .portfolio-case {
  --case-ivory: #f2ecda;
  --case-leaf: #d8e8a9;
  --case-forest: #123b31;
  color: #f3f2ec;
  margin: clamp(56px, 7vw, 100px) 0 0;
}

#leistungen .case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  align-items: end;
  gap: 36px;
  padding-bottom: clamp(35px, 5vw, 72px);
}

#leistungen .case-eyebrow,
#leistungen .case-phase,
#leistungen .case-credit,
#leistungen .case-steps {
  color: #d8f45c;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

#leistungen .case-intro h3 {
  margin: 18px 0 0;
  max-width: 780px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.15rem, 6vw, 6.3rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.065em;
}

#leistungen .case-intro h3 em { color: var(--case-leaf); font-weight: 400; }

#leistungen .case-intro p {
  margin: 0 0 8px;
  max-width: 310px;
  color: #bec8c1;
  font-size: 1rem;
  line-height: 1.6;
}

#leistungen .case-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 0;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  color: #c8d3c6;
  letter-spacing: .11em;
  line-height: 1.5;
}

#leistungen .case-steps li:not(:last-child)::after {
  content: '→';
  color: #d8f45c;
  margin: 0 13px;
}

#leistungen .portfolio-case figure { margin: 0; min-width: 0; }

#leistungen .case-art {
  overflow: hidden;
  border: 1px solid rgb(235 244 212 / .12);
  background: #173d34;
}

#leistungen .case-art img {
  display: block;
  width: 100%;
  height: auto;
}

#leistungen .case-hero .case-art { border-radius: 9px; }

#leistungen .portfolio-case figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: #c3cbc5;
  font-size: .88rem;
  line-height: 1.4;
  margin-top: 14px;
}

#leistungen .portfolio-case figcaption span:first-child {
  color: #d8f45c;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#leistungen .case-chapter {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(120px, 17vw, 240px) 0 42px;
}

#leistungen .case-chapter h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 5.2vw, 5.7rem);
  letter-spacing: -.055em;
  line-height: 1;
  margin: 12px 0 0;
}

#leistungen .case-chapter p {
  color: #b7c2ba;
  font-size: .95rem;
  line-height: 1.55;
  max-width: 265px;
  margin: 0 0 4px;
}

#leistungen .case-brand-stage,
#leistungen .case-print-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: start;
}

#leistungen .case-brand-stage .case-art,
#leistungen .case-print-stage .case-art,
#leistungen .case-digital-stage .case-art { border-radius: 7px; }

#leistungen .case-brand-stage figure:nth-child(2) { margin-top: clamp(100px, 12vw, 176px); }

#leistungen .case-print-stage {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
}

#leistungen .case-print-stack { display: grid; gap: clamp(48px, 7vw, 95px); }

#leistungen .case-print-stack figure:first-child { margin-top: clamp(90px, 10vw, 145px); }

#leistungen .case-print-stack figure:last-child { width: 76%; margin-left: auto; }

#leistungen .case-digital-stage .case-website { width: 100%; }

#leistungen .case-digital-stage .case-campaign {
  width: 88%;
  margin: clamp(90px, 11vw, 156px) 0 0 auto;
}

#leistungen .case-credit {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #424f45;
  margin-top: clamp(90px, 12vw, 180px);
  padding-top: 23px;
  color: #b5c7b8;
  line-height: 1.55;
}

/* Replace the intentionally empty reservation with the finished case. */
#leistungen .grid { margin-top: clamp(88px, 10vw, 150px); }

@media (max-width: 760px) {
  #leistungen .case-intro { grid-template-columns: 1fr; gap: 22px; }
  #leistungen .case-intro p { max-width: 450px; }
  #leistungen .case-chapter { padding: 105px 0 30px; }
  #leistungen .case-chapter p { max-width: 190px; }
  #leistungen .case-brand-stage figure:nth-child(2) { margin-top: 70px; }
}

@media (max-width: 600px) {
  #leistungen .portfolio-case { margin-top: 50px; }
  #leistungen .case-intro h3 { font-size: clamp(3rem, 12vw, 4.5rem); }
  #leistungen .case-steps { font-size: .64rem; margin-bottom: 20px; }
  #leistungen .case-steps li:not(:last-child)::after { margin: 0 8px; }
  #leistungen .case-chapter { display: block; padding: 94px 0 27px; }
  #leistungen .case-chapter p { margin-top: 17px; max-width: 330px; }
  #leistungen .case-brand-stage,
  #leistungen .case-print-stage { display: block; }
  #leistungen .case-brand-stage figure:nth-child(2),
  #leistungen .case-print-stack figure:first-child,
  #leistungen .case-print-stack figure:last-child,
  #leistungen .case-digital-stage .case-campaign {
    width: 100%;
    margin: 42px 0 0;
  }
  #leistungen .case-print-stack { display: block; }
  #leistungen .case-credit { display: block; margin-top: 90px; }
  #leistungen .case-credit span { display: block; }
  #leistungen .case-credit span + span { margin-top: 8px; }
  #leistungen .grid { margin-top: 94px; }
}
