/* ============================
   Case Study Page Styles
   ============================ */

.hero--case-study h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.25;
}

.hero--case-study .hero__subtitle {
  max-width: 550px;
  margin: var(--space-4) auto 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
  transform: none;
}

/* ============================
   SCROLL DOWN INDICATOR
   ============================ */

.scroll-down-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  z-index: 2;
}

.scroll-down-indicator span {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.scroll-down-indicator svg {
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================
   KEY STATS — horizontale Zahlenreihe
   ============================ */

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 700px;
  margin: var(--space-16) auto 0;
  text-align: center;
}

.case-study-stats__item {
  padding: var(--space-4);
}

.case-study-stats__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
  transition: text-shadow 0.3s ease;
}

.case-study-stats__item:hover .case-study-stats__number {
  text-shadow: 0 0 12px rgba(139, 26, 43, 0.6), 0 0 30px rgba(139, 26, 43, 0.3);
}

.case-study-stats__label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ============================
   GALLERY — Bildergalerie mit Frame
   ============================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.gallery-grid__item {
  aspect-ratio: 16 / 10;
  overflow: visible;
  position: relative;
}

.gallery-grid__item::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse, rgba(139, 26, 43, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  opacity: 0.4;
}

.gallery-grid__item::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 60%;
  height: 60%;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  box-shadow: 0 0 15px rgba(139, 26, 43, 0.3), 0 0 30px rgba(139, 26, 43, 0.1);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  position: relative;
  z-index: 1;
}

/* ============================
   PROJECT CONTEXT — Beschreibungstext
   ============================ */

.project-context {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* ============================
   RESULTS — Instagram Impact
   ============================ */

.section:has(.case-study-stats--results) .section__header {
  text-align: left;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.results-intro {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.case-study-stats--results {
  margin-top: var(--space-10);
}

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

@media (max-width: 767px) {
  .case-study-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 300px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
