/**
 * Image Preview Cursor Follower — ported from the stellae resource.
 * Layout/animation mechanics untouched (see dist/scripts/preview-follower.js).
 * Color tokens swapped from the resource's light-page assumption (#0a0a0a80
 * labels, rgba(0,0,0,...) borders) to this site's dark baseline; light-mode.css
 * flips them back. Column set is Kunde/Jahr/Volumen/Art per request, not the
 * resource's own Name/Location/Year/Services.
 */

.directional-list-section {
  padding: 6rem 0;
}

.directional-list__header {
  max-width: 50em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3em;
  text-align: center;
}

.directional-list__headline {
  font-family: Spectral, serif;
  font-size: 2.75em;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0.75em;
  margin-bottom: 0.5em;
}

.directional-list__subheadline {
  font-size: 1.25em;
  line-height: 1.5;
}

.preview-container {
  width: 100%;
  max-width: 76em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2em;
  padding-right: 2em;
}

.preview-collection {
  width: 100%;
  margin-top: .5em;
}

.preview-item__row {
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  display: flex;
}

.preview-item__col {
  flex: 1;
}

.preview-item__col.is--large {
  max-width: 45%;
}

.preview-item__col.is--medium {
  max-width: 25%;
}

.preview-item__col.is--small {
  max-width: 15%;
}

/* REQUIRED SWAP: resource's #0a0a0a80 (muted dark, light-page assumption) ->
   this site's muted light-on-dark token, matching the s002-stat description
   convention elsewhere. */
.preview-container__label {
  color: var(--w80);
  text-transform: uppercase;
  font-size: .75em;
}

.preview-list {
  flex-flow: column;
  width: 100%;
  display: flex;
  position: relative;
}

.preview-item {
  width: 100%;
  cursor: pointer;
  transition: opacity .2s;
}

.preview-item__heading {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 3.5em;
  font-weight: 400;
  line-height: 1;
}

.preview-item__text {
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 400;
  line-height: 1.2;
}

.preview-item__visual {
  aspect-ratio: 1 / 1.25;
  width: 20em;
  display: none;
  position: absolute;
  overflow: hidden;
}

.preview-follower [data-follower-visual] {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* REQUIRED SWAP: resource's border-top:1px solid #00000040 -> a light
   divider for this site's dark baseline (same alpha, inverted lightness). */
.preview-item__inner {
  border-top: 1px solid rgba(255, 255, 255, .25);
  width: 100%;
  padding-top: 2.5em;
  padding-bottom: 2.5em;
}

.preview-item__visual-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.preview-follower {
  z-index: 100;
  aspect-ratio: 1 / 1.25;
  pointer-events: none;
  border-radius: .75em;
  justify-content: center;
  align-items: center;
  width: 20em;
  display: flex;
  position: fixed;
  inset: 0% auto auto 0%;
  overflow: hidden;
}

.preview-follower__label {
  z-index: 2;
  position: absolute;
  opacity: 0;
  transform: translate(0px, 100%);
  transition: opacity 0.1s ease, transform 0.6s cubic-bezier(0.65, 0.1, 0, 1);
}

/* REQUIRED ADDITION: the resource never set a text color here (relied on
   its light page's default black body text) — on a white pill that's
   correct on either theme, so an explicit dark color is added rather than
   inheriting this site's (usually white) body text color. */
.preview-follower__label-span {
  background-color: #fff;
  color: #0a0a0a;
  border-radius: .25em;
  padding: .75em 1.25em;
  font-size: 1em;
}

.preview-follower__inner {
  z-index: 2;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.1s ease, transform 0.6s cubic-bezier(0.65, 0.1, 0, 1);
}

@media screen and (min-width: 992px) {
  .preview-item:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }
}

@media (hover: hover) and (min-width: 992px) {
  body:has([data-follower-collection]:hover) .preview-follower__inner {
    opacity: 1;
    transform: scale(1);
  }

  body:has([data-follower-collection]:hover) .preview-follower__label {
    opacity: 1;
    transform: translate(0px, 0%);
  }

  body:has(.preview-item:hover) .preview-item:not(:hover) {
    opacity: 0.5;
  }
}

@media screen and (max-width: 991px) {
  .preview-item__row {
    grid-row-gap: .5em;
  }

  .preview-item__row.tablet--hide {
    display: none;
  }

  .preview-item__col.is--large {
    flex: none;
    order: -1;
    width: 100%;
    max-width: none;
  }

  .preview-item__col.is--medium {
    order: -1;
    max-width: 80%;
  }

  .preview-item__col.is--small {
    text-align: right;
    max-width: 20%;
  }

  .preview-item__col.is--small.tablet--hide {
    display: none;
  }

  .preview-list {
    grid-column-gap: 1em;
    grid-row-gap: 4em;
    flex-flow: wrap;
  }

  .preview-item {
    width: calc(50% - .5em);
  }

  .preview-item__heading {
    font-size: 2em;
  }

  .preview-item__visual {
    border-radius: .75em;
    order: -1;
    width: 100%;
    margin-bottom: 1em;
    display: block;
    position: relative;
  }

  .preview-item__inner {
    border: 1px solid rgba(255, 255, 255, .25);
    flex-flow: column;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
  }

  .preview-follower {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .directional-list__headline {
    font-size: 2em;
  }

  .directional-list__subheadline {
    font-size: 1.1em;
  }

  .preview-container {
    padding-left: 1em;
    padding-right: 1em;
  }

  .preview-list {
    grid-row-gap: 3em;
  }

  .preview-item {
    width: 100%;
  }
}

/* REQUESTED ADDITION: card-grid alternative layout (this site's own
   markup/CSS, not part of any resource) — toggled via the "Layout" ACF
   field instead of the resource's hover-preview list. Same "raised
   surface" card fill (#1c1e26 / #f2f2f2 light) already used for Stats 2026
   and the Marquee image items, so it reads as consistent with the rest of
   the page rather than a one-off. */
.directional-list__grid {
  width: 100%;
  max-width: 76em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2em;
  padding-right: 2em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.directional-list__card {
  background-color: #1c1e26;
  border-radius: .75em;
  cursor: pointer;
  overflow: hidden;
  transition: opacity .2s;
}

.directional-list__card-visual {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.directional-list__card-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.directional-list__card-body {
  padding: 1.5em;
}

.directional-list__card-heading {
  font-family: Spectral, serif;
  font-size: 1.75em;
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: .75em;
}

.directional-list__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1em .1em;
  justify-content: space-between;
}

.directional-list__card-meta-item {
  display: flex;
  flex-direction: column;
  gap: .25em;
  font-size: 1em;
  /* BUG FIX: the value text (e.g. "2024", "Leveraged Lease Financing") is a
     bare text node here, not wrapped in its own element — with no color of
     its own it inherited the page's plain-text default (near-black),
     rendering unreadable on this card's dark #1c1e26 fill. The nested
     .preview-container__label span (the "JAHR"/"ART" labels) keeps its own
     muted --w80 tone regardless, since that's set directly on it. */
  color: var(--w100);
}

@media (hover: hover) {
  body:has(.directional-list__card:hover) .directional-list__card:not(:hover) {
    opacity: .6;
  }
}

@media screen and (max-width: 991px) {
  .directional-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  /* REQUESTED CHANGE: was cramped against the viewport edges (1em outer
     padding) and the stacked cards sat close together (1.5em gap) — more
     breathing room on both axes, plus a bit more room inside each card. */
  .directional-list__grid {
    grid-template-columns: 1fr;
    padding-left: 1.5em;
    padding-right: 1.5em;
    gap: 2.5em;
  }

  .directional-list__card-body {
    padding: 1.75em;
  }

  .directional-list__header {
    margin-bottom: 2.5em;
  }
}
