/* Base Hero Styles */
.page-hero {
  position: relative;
  width: 100%;
  height: 500px;
}

.page-hero__breadcrumbs {
  margin-top: var(--spacing-3);
}

/* Default Hero Styles */
.page-hero--default .page-hero__wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--spacing-3);
}

.page-hero--default .page-hero__container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.page-hero--default .page-hero__content {
  max-width: 800px;
}

.page-hero--default .page-hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero--default .page-hero__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--default .page-hero__background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* Split Hero Styles */
.page-hero--split {
  height: 500px;
  background: #000;
  position: relative;
  overflow: hidden;
}

.page-hero--split .page-hero__wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--spacing-3);
}

/* Background Layer */
.page-hero--split .page-hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero--split .page-hero__image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

.page-hero--split .page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Layer */
.page-hero--split .page-hero__content-container {
  position: relative;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
}

.page-hero--split .page-hero__content {
  max-width: 50%;
  padding-right: var(--spacing-6);
}

/* Text Styles */
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--color-text-inverse);
  margin: 0 0 var(--spacing-2);
}

.page-hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-lighter);
}

/* Gradient Overlay */
.page-hero--split .page-hero__background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10%; /* Schmaler Übergangsbereich */
  height: 100%;
  background: linear-gradient(to right, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 75%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-hero--split .page-hero__content {
    padding-right: var(--spacing-4);
  }

  .page-hero--split .page-hero__content::after {
    right: -100px;
    width: 100px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: auto;
  }

  .page-hero--split .page-hero__wrapper {
    padding: 0 var(--spacing-3) !important;
  }

  .page-hero--split {
    min-height: unset;
  }

  .page-hero--split .page-hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .page-hero--split .page-hero__background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 75%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
  }

  .page-hero--split .page-hero__content {
    max-width: 100%;
    padding: var(--spacing-5) 0 var(--spacing-4);
  }

  .page-hero--split .page-hero__content::after {
    display: none;
  }

  .page-hero__container {
    margin-top: var(--spacing-4);
  }

  .page-hero--default .page-hero__wrapper {
    padding: var(--spacing-7) var(--spacing-3);
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-3);
  }

  .page-hero__subtitle {
    font-size: 1rem;
  }
}

/* FULLSCREEN STYLES */

.page-hero--fullscreen {
  height: calc(100vh - 5rem);
  min-height: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-hero--fullscreen .page-hero__wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-hero--fullscreen .page-hero__top {
  padding-top: var(--spacing-4);
}

.page-hero--fullscreen .page-hero__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.page-hero--fullscreen .page-hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero--fullscreen .page-hero__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--fullscreen .page-hero__background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.page-hero--fullscreen .page-hero__content--center {
  margin: 0 auto;
}

.page-hero--fullscreen .page-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
  color: var(--color-text-inverse);
}

.page-hero--fullscreen .page-hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-text-lighter);
  margin-bottom: var(--spacing-6);
  max-width: 600px;
}

.page-hero--fullscreen .page-hero__button-wrapper {
  margin-top: var(--spacing-6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-hero--fullscreen {
    min-height: 500px;
  }

  .page-hero--fullscreen .page-hero__content--center {
    padding: 0 var(--spacing-4);
  }
}

@media (max-width: 480px) {
  .page-hero--fullscreen {
    min-height: 400px;
  }

  .page-hero--fullscreen .page-hero__title--large {
    font-size: 2rem;
    margin-bottom: var(--spacing-3);
  }

  .page-hero--fullscreen .page-hero__subtitle--large {
    font-size: 1rem;
  }
}
