/* ==========================================================================
   Section: p-hero-fullscreen
   Page: single-projekt
   ========================================================================== */

.p-hero-fullscreen {
  container-type: inline-size;
  container-name: p-hero-fullscreen;
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.p-hero-fullscreen__image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.p-hero-fullscreen__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-hero-fullscreen__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0 0 0 / 0.8) 0%,
    oklch(0 0 0 / 0.5) 40%,
    oklch(0 0 0 / 0.2) 70%,
    oklch(0 0 0 / 0.05) 100%
  );
}

.p-hero-fullscreen__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-3xl);
}

.p-hero-fullscreen__content .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
}

.p-hero-fullscreen__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.p-hero-fullscreen__category {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.p-hero-fullscreen__title {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  color: oklch(1 0 0);
  margin: 0;
}

.p-hero-fullscreen__meta {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

/* Container Queries */
@container p-hero-fullscreen (max-width: 968px) {
  .p-hero-fullscreen__title {
    font-size: var(--text-3xl);
  }
}

@container p-hero-fullscreen (max-width: 768px) {
  .p-hero-fullscreen {
    height: 60vh;
    min-height: 400px;
  }

  .p-hero-fullscreen__content .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
  }

  .p-hero-fullscreen__title {
    font-size: var(--text-2xl);
  }

  .p-hero-fullscreen__content {
    padding-bottom: var(--space-2xl);
  }
}

@container p-hero-fullscreen (max-width: 640px) {
  .p-hero-fullscreen {
    height: 50vh;
    min-height: 350px;
  }

  .p-hero-fullscreen__title {
    font-size: var(--text-xl);
  }

  .p-hero-fullscreen__scroll-hint {
    display: none;
  }
}

@container p-hero-fullscreen (max-width: 480px) {
  .p-hero-fullscreen__category {
    font-size: var(--text-2xs);
  }

  .p-hero-fullscreen__content {
    padding-bottom: var(--space-xl);
  }
}
