/* ==========================================================================
   NASHORN – Aktuelles
   Developed by webndo

   Below 1200px the existing two-card stack stays. From 1200px the
   section pins for a short chapter: the featured article holds, and the
   right-hand pair swaps vertically. Reduced motion shows every article
   in place, without the pin.
   ========================================================================== */

.news__scene,
.news__sticky,
.news__rail,
.news__pair {
  display: contents;
}

.news__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.news__all,
.news-card__kicker,
.news-card__go,
.news-card--later {
  display: none;
}

@media (max-width: 767.98px) {
  .news__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) {
  .js .news {
    --news-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --news-shift: 0;
    height: 210vh;
    padding-block: 0;
    background:
      radial-gradient(1100px 420px at 0% 0%, rgba(231, 237, 241, 0.9), transparent 68%),
      #f6f8fa;
  }

  .js .news__scene {
    display: block;
    height: 100%;
  }

  .js .news__sticky {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .js .news__inner {
    display: flex;
    flex-direction: column;
    width: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
    height: 100%;
    margin-inline: auto;
    padding-top: calc(var(--header-h-compact) + clamp(40px, 3.2vw, 64px));
    padding-bottom: calc(var(--header-h-compact) + clamp(40px, 3.2vw, 64px));
    grid-template-columns: none;
    gap: 0;
  }

  .js .news__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px 48px;
    margin-bottom: clamp(28px, 2.4vw, 40px);
  }

  .js .news__head .h2 {
    max-width: 11em;
    font-size: clamp(2.375rem, 1.55rem + 1.55vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.032em;
  }

  .js .news__all {
    display: inline-flex;
    align-items: center;
    align-self: end;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 3px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--nashorn-blue);
    border-bottom: 1px solid rgba(1, 73, 142, 0.45);
  }

  .js .news__all .icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
  }

  .js .news__all:hover .icon,
  .js .news__all:focus-visible .icon {
    transform: translate(3px, -3px);
  }

  .js .news__stage {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 51fr) minmax(0, 49fr);
    gap: clamp(14px, 1.05vw, 20px);
    min-height: 0;
  }

  .js .news__rail {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .js .news__pair {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(14px, 1.05vw, 20px);
  }

  .js .news__pair--a {
    transform: translate3d(0, calc(var(--news-shift) * -105%), 0);
    opacity: calc(1 - var(--news-shift));
  }

  .js .news__pair--b {
    visibility: hidden;
    transform: translate3d(0, calc((1 - var(--news-shift)) * 105%), 0);
    opacity: var(--news-shift);
    pointer-events: none;
  }

  .js .news.is-news-next .news__pair--a {
    pointer-events: none;
  }

  .js .news.is-news-next .news__pair--b {
    pointer-events: auto;
  }

  .js .news-card--later {
    display: flex;
  }

  .js .news .news-card {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .js .news .news-card:hover,
  .js .news .news-card:focus-within {
    transform: none;
    box-shadow: none;
  }

  .js .news .news-card__kicker,
  .js .news .news-card__go {
    display: block;
  }

  .js .news .news-card__label,
  .js .news .news-card__fwd {
    display: none;
  }

  .js .news .news-card__link {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .js .news .news-card__kicker {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    margin: 0;
    padding: 6px 9px 5px;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    background: rgba(12, 26, 41, 0.72);
  }

  .js .news .news-card__go {
    z-index: 4;
    pointer-events: none;
    color: #fff;
  }

  .js .news .news-card__go .icon {
    display: block;
    width: 22px;
    height: 22px;
    stroke-width: 1.6;
  }

  .js .news .news-card--feature {
    position: relative;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #10202c;
  }

  .js .news .news-card--feature .news-card__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: auto;
  }

  .js .news .news-card--feature .news-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 42% 58%;
  }

  .js .news .news-card--feature::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 48%;
    background: linear-gradient(180deg, rgba(8, 18, 28, 0) 0%, rgba(8, 18, 28, 0.5) 36%, rgba(8, 18, 28, 0.86) 100%);
    pointer-events: none;
  }

  .js .news .news-card--feature .news-card__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 28px clamp(76px, 5vw, 96px) 26px 24px;
    background: none;
  }

  .js .news .news-card--feature .news-card__title {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(1.5rem, 1.15rem + 0.85vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.024em;
    line-height: 1.14;
  }

  .js .news .news-card--feature .news-card__text {
    max-width: 38em;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .js .news .news-card--feature .news-card__go {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: clamp(56px, 3.6vw, 72px);
    height: clamp(56px, 3.6vw, 72px);
    background: var(--nashorn-blue);
  }

  .js .news .news-card--small {
    position: relative;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }

  .js .news .news-card--small .news-card__media {
    position: relative;
    flex: 1 1 0%;
    aspect-ratio: auto;
    min-height: 0;
  }

  .js .news .news-card--small .news-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .js .news .news-card__img--resist {
    object-position: 50% 68%;
  }

  .js .news .news-card__img--ultra {
    object-position: 50% 42%;
  }

  .js .news .news-card__img--leather {
    object-position: 50% 32%;
  }

  .js .news .news-card--small .news-card__body {
    flex: 0 0 auto;
    min-height: 148px;
    padding: 16px 46px 16px 16px;
    background: #fff;
  }

  .js .news .news-card--small .news-card__title {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: clamp(1.02rem, 0.92rem + 0.22vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.25;
  }

  .js .news .news-card--small .news-card__text {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .js .news .news-card--small .news-card__go {
    position: absolute;
    right: 14px;
    bottom: 16px;
    color: var(--nashorn-blue);
  }

  .js .news .news-card--small .news-card__go .icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px) and (prefers-reduced-motion: reduce),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  .js .news {
    height: auto;
    padding-block: clamp(104px, 6vw + 32px, 128px);
  }

  .js .news__sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .js .news__inner {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .js .news__stage {
    align-items: start;
  }

  .js .news__rail {
    display: grid;
    height: auto;
    overflow: visible;
    gap: clamp(14px, 1.05vw, 20px);
  }

  .js .news__pair,
  .js .news__pair--a,
  .js .news__pair--b {
    position: relative;
    inset: auto;
    visibility: visible;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .js .news .news-card--feature {
    min-height: 560px;
  }

  .js .news .news-card--small .news-card__media {
    flex: none;
    aspect-ratio: 16 / 11;
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) and (prefers-reduced-motion: no-preference) {
  .js .news__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
