/* Components
   Konkrete Bausteine der Case Study:
   Hero, Stationen, Pull-Quote und Meta-Liste. */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(400px, 45vw, 800px);
  border-bottom: 1px solid var(--color-line);
  /* Vollbreite: bricht aus max-width und Padding von main heraus */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: clamp(var(--fs-lg), 1.8rem + 5vw, var(--fs-xl));
  font-style: italic;
  margin-bottom: var(--space-md);
  hyphens: auto;
}

.hero__pitch {
  font-size: clamp(var(--fs-base), 1rem + 0.4vw, var(--fs-md));
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.hero__author {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

.hero__text {
  /* Schwebt über dem Video, rechts ausgerichtet */
  position: relative;
  z-index: 1;
  margin-left: 40%;
  padding: var(--space-lg) var(--space-md);
  min-height: clamp(400px, 45vw, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Gradient: links transparent → rechts Hintergrundfarbe */
  background: linear-gradient(to right, transparent, rgb(0, 0, 0, 0.8) 50%);

  & > *{
    margin-left: 30%;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  .yt-video{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.hero__video:fullscreen,
.hero__video:-webkit-full-screen {
  background-color: #000;
  cursor: default;
}

.placeholder {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-bg);
  opacity: 0.6;
  text-align: center;
  padding: var(--space-sm);
  max-width: none;
}

@media (max-width: 800px) {
  .hero {
    min-height: unset;
    width: auto;
    margin-left: calc(-1 * var(--space-sm));
    margin-right: calc(-1 * var(--space-sm));
    overflow: visible;
  }

  .hero__media {
    position: static;
  }

  .hero__video {
    height: auto;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    border-bottom: 1px solid var(--color-line);
  }

  .hero__text {
    position: static;
    margin-left: 0;
    min-height: unset;
    background: none;
    padding: var(--space-md) var(--space-sm);
  }
}

/* ---------- Stations ---------- */

.stations {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.station {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.station:nth-child(4) {
  grid-column: 2 / span 2;
}

.station:nth-child(5) {
  grid-column: 4 / span 2;
}

.station__number {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-accent);
  line-height: 1;
  max-width: none;
}

.station__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  max-width: none;
}

.station__visual {
  aspect-ratio: 4 / 3;
  background-color: var(--color-fg);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-sm) 0;

  &.is-16-9{
    aspect-ratio: 16 / 9;
    & > img{
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }
  }

  &.is-square{
    aspect-ratio: 1 / 1;
    & > img{
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }
  }

  &.is-portrait{
    aspect-ratio: 3 / 4;
    & > img{
      width: 100%;
      height: auto;
      aspect-ratio: 3 / 4;
      object-fit: cover;
    }
  }           
}

.station--final .station__visual {
  border: 5px solid var(--color-accent);
}

.station__caption {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--fs-base);
}

.station__caption p {
  max-width: none;
}

.station__caption strong {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: inline-block;
  margin-right: 0.4em;
}

.station__link {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  max-width: none;
}

@media (max-width: 800px) {
  .stations {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .station {
    grid-column: auto;
  }
}

/* ---------- Quote (Erkenntnis) ---------- */

.section--quote .quote {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-md), 1.1rem + 1.6vw, var(--fs-lg));
  line-height: 1.3;
  font-style: italic;
  max-width: 60ch;
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);

}

.section--quote .quote p {
  max-width: none;
}

/* ---------- Meta-Liste (Technische Spur) ---------- */

.meta {
  display: grid;
  gap: 0;
  margin-top: var(--space-md);
}

.meta__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-line);
}

.meta__row:last-child {
  border-bottom: none;
}

.meta__row dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.meta__row dd {
  font-size: var(--fs-base);
  max-width: none;
}

@media (max-width: 640px) {
  .meta__row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* ---------- Prose & Links ---------- */

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);

}

.prose__subhead {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  margin-top: var(--space-md);
  margin-bottom: calc(var(--space-s) * -0.5);
  color: var(--color-fg);
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 0.1em;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  border-bottom-color: var(--color-accent);
}

.link-arrow:hover::after {
  transform: translateX(0.3em);
}
