@import url("native-image-cta.css");

/* Aktuelles Übersicht — strikt unter .native-news-overview / .native-news-card */

.native-news-overview {
  --nn-overview-blue: var(--hit-cta-primary-bg);
  --nn-overview-blue-deep: #0082cb;
  --nn-overview-text: #6c6c6c;
  --nn-overview-heading: #000;
  --nn-overview-stripe: #f2f2f2;
  --nn-overview-white: #fff;
  --nn-overview-max: 1140px;
  /* Native-Header-Höhe (Dokumentfluss): Hero-Bild unter halbtransparentem Menü wie Live */
  --nn-hero-header-overlap: 80px;
  /* Kontakt-Malerband: lokal stärker als globales CTA-004b (nur /aktuelles/) */
  --nn-tape-lift-hover: -4px;
  --nn-tape-lift-active: 0px;
  --nn-tape-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.32);
  --nn-tape-shadow-active: 0 3px 8px rgba(0, 0, 0, 0.18);
  --nn-tape-brightness-hover: 1.05;
  --nn-tape-contrast-hover: 1.02;
  --nn-tape-brightness-active: 0.98;
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--nn-overview-text);
  box-sizing: border-box;
}

.native-news-overview *,
.native-news-overview *::before,
.native-news-overview *::after {
  box-sizing: inherit;
}

.native-news-overview__hero {
  position: relative;
  z-index: 0;
  overflow: visible;
  margin-top: calc(-1 * var(--nn-hero-header-overlap));
  background-color: var(--nn-overview-blue-deep);
  background-image: url("../img/global/hit_aktuelles_page.jpg");
  /* Kuppel/Bundeshaus höher im sichtbaren Ausschnitt (unter Header) */
  background-position: center 32%;
  background-repeat: no-repeat;
  background-size: cover;
}

.native-news-overview__hero-inner {
  max-width: var(--nn-overview-max);
  margin: 0 auto;
  min-height: 640px;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
  padding: calc(50px + var(--nn-hero-header-overlap)) 16px 50px 24px;
}

.native-news-overview__hero-copy {
  flex: 1 1 320px;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding-top: 32px;
  padding-bottom: 14px;
}

.native-news-overview__hero-line {
  font-family: "PT Sans Narrow", "PT Sans", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 55px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--nn-overview-white);
  margin: 0 0 24px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.native-news-overview__hero-title {
  font-family: "PT Sans Narrow", "PT Sans", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 35px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--nn-overview-white);
  margin: auto 0 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.native-news-overview__hero-banner {
  position: relative;
  z-index: 1;
  flex: 0 1 360px;
  align-self: flex-end;
  text-align: right;
  overflow: visible;
}

.native-news-overview__hero-banner:hover,
.native-news-overview__hero-banner:focus-within {
  z-index: 2;
}

.native-news-overview__banner-link {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  border-radius: 4px;
  overflow: visible;
}

.native-news-overview__banner-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-left: auto;
  transition: var(--hit-image-cta-transition);
}

.native-news-overview__list {
  background: var(--nn-overview-white);
  padding: 40px 0 56px;
}

.native-news-overview__inner {
  max-width: var(--nn-overview-max);
  margin: 0 auto;
  padding: 0 16px;
}

.native-news-overview__year {
  font-family: "PT Sans Narrow", "PT Sans", system-ui, sans-serif;
  font-size: 35px;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: var(--nn-overview-heading);
  margin: 36px 0 20px;
  clear: both;
}

.native-news-overview__year:first-child {
  margin-top: 0;
}

.native-news-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 20px;
  margin: 0 -12px;
}

.native-news-card--stripe {
  background: var(--nn-overview-stripe);
}

.native-news-card__media {
  flex: 0 1 30%;
  max-width: 493px;
  min-width: 200px;
  text-decoration: none;
}

.native-news-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 493px;
}

.native-news-card__body {
  flex: 1 1 55%;
  min-width: 220px;
}

.native-news-card__time {
  display: block;
  margin: 0 0 8px;
  font-family: "PT Sans Narrow", "PT Sans", system-ui, sans-serif;
  font-size: 25px;
  line-height: 1.2;
  color: var(--nn-overview-blue);
}

.native-news-card__title {
  font-family: "PT Sans Narrow", "PT Sans", system-ui, sans-serif;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 15px;
  color: var(--nn-overview-heading);
}

/* B-001e: Titel-Links ohne Unterstreichung; Hover/Fokus kräftiger + HEADIT-Blau (Weiterlesen: .native-news-card__more bleibt eigenständig). */
.native-news-overview .native-news-card__title a,
.native-news-overview .native-news-card__title a:visited {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.native-news-overview .native-news-card__title a:hover,
.native-news-overview .native-news-card__title a:focus,
.native-news-overview .native-news-card__title a:focus-visible,
.native-news-overview .native-news-card__title a:active {
  color: var(--nn-overview-blue-deep);
  text-decoration: none;
  font-weight: 700;
}

.native-news-overview .native-news-card__title a:focus-visible {
  outline: 2px solid var(--nn-overview-blue-deep);
  outline-offset: 2px;
}

.native-news-card__excerpt {
  font-size: 18px;
  line-height: 22px;
  margin: 0 0 15px;
}

/* CSS-003b: „Weiterlesen“ — CTA-Tokens aus native-base.css (--hit-cta-*) */
.native-news-overview .native-news-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: var(--hit-cta-primary-padding-block) var(--hit-cta-primary-padding-inline);
  border-radius: var(--hit-cta-primary-radius);
  border: none;
  box-sizing: border-box;
  background-color: var(--hit-cta-primary-bg);
  background-image: none;
  color: var(--hit-cta-primary-fg) !important;
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: var(--hit-cta-primary-font-size);
  line-height: var(--hit-cta-primary-line-height);
  font-weight: var(--hit-cta-primary-font-weight);
  text-decoration: none !important;
  text-shadow: none;
  opacity: 1;
  cursor: pointer;
  transition: var(--hit-cta-transition);
}

.native-news-overview .native-news-card__more:visited {
  color: var(--hit-cta-primary-fg) !important;
  background-color: var(--hit-cta-primary-bg);
}

.native-news-overview .native-news-card__more:hover,
.native-news-overview .native-news-card__more:focus {
  background-color: var(--hit-cta-primary-hover-bg);
  color: var(--hit-cta-primary-fg) !important;
  text-decoration: none !important;
}

.native-news-overview .native-news-card__more:active {
  background-color: var(--hit-cta-primary-active-bg);
  color: var(--hit-cta-primary-fg) !important;
}

.native-news-overview .native-news-card__more:focus-visible {
  outline: var(--hit-cta-focus-outline-on-primary);
  outline-offset: var(--hit-cta-focus-offset-on-primary);
  background-color: var(--hit-cta-primary-hover-bg);
}

@media (max-width: 1366px) {
  .native-news-overview__hero-inner {
    min-height: 550px;
  }

  .native-news-overview__hero {
    background-position: center 30%;
  }
}

@media (max-width: 1200px) {
  .native-news-overview__hero-inner {
    padding-left: 11px;
    padding-right: 11px;
  }

  .native-news-overview__inner {
    padding-left: 11px;
    padding-right: 11px;
  }

  .native-news-overview__hero-line {
    font-size: clamp(26px, 4vw, 44px);
  }
}

@media (max-width: 1024px) {
  .native-news-overview__hero {
    background-position: center 28%;
  }

  .native-news-overview__hero-inner {
    min-height: 450px;
  }

  .native-news-overview__hero-copy {
    padding-top: 24px;
    padding-left: 16px;
  }

  .native-news-card__media {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .native-news-card__body {
    flex: 1 1 100%;
  }
}

@media (max-width: 880px) {
  .native-news-overview__hero-inner {
    min-height: 350px;
  }

  .native-news-overview__hero-line {
    font-size: clamp(24px, 5vw, 35px);
  }

  .native-news-overview__hero-title {
    font-size: 30px;
  }

  .native-news-overview__list {
    padding: 28px 0 40px;
  }
}

@media (max-width: 767px) {
  .native-news-overview__hero {
    background-position: center 35%;
  }

  .native-news-overview__hero-inner {
    min-height: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: calc(120px + var(--nn-hero-header-overlap)) 15px 40px;
    text-align: center;
  }

  .native-news-overview__hero-copy {
    display: block;
    padding: 0;
    padding-bottom: 0;
    text-align: center;
  }

  .native-news-overview__hero-title {
    margin-top: 12px;
  }

  .native-news-overview__hero-banner {
    flex-basis: auto;
    width: 100%;
    text-align: center;
  }

  .native-news-overview__banner-img {
    width: 81%;
    max-width: 420px;
    margin: 0 auto;
  }

  .native-news-overview__year {
    font-size: 30px;
    margin-top: 28px;
  }

  .native-news-card {
    flex-direction: column;
    padding: 22px 12px;
    margin: 0;
    gap: 16px;
  }

  .native-news-card__title {
    font-size: 22px;
  }

  .native-news-card__time {
    font-size: 20px;
  }

  .native-news-card__media img {
    max-width: 100%;
  }

  .native-news-overview .native-news-card__more {
    padding: 10px 18px;
  }
}

/* Kontakt-Malerband — scoped Hover/Focus (stärker als globales CTA-004b, kein Clipping) */
.native-news-overview .native-news-overview__banner-link:focus {
  outline: none;
}

.native-news-overview .native-news-overview__banner-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .native-news-overview
    .native-news-overview__banner-link:hover
    .native-news-overview__banner-img {
    transform: translateY(var(--nn-tape-lift-hover));
    filter: brightness(var(--nn-tape-brightness-hover))
      contrast(var(--nn-tape-contrast-hover))
      drop-shadow(var(--nn-tape-shadow-hover));
  }
}

.native-news-overview
  .native-news-overview__banner-link:focus-visible
  .native-news-overview__banner-img {
  transform: translateY(var(--nn-tape-lift-hover));
  filter: brightness(var(--nn-tape-brightness-hover))
    contrast(var(--nn-tape-contrast-hover))
    drop-shadow(var(--nn-tape-shadow-hover));
}

.native-news-overview
  .native-news-overview__banner-link:active
  .native-news-overview__banner-img {
  transform: translateY(var(--nn-tape-lift-active));
  filter: brightness(var(--nn-tape-brightness-active))
    drop-shadow(var(--nn-tape-shadow-active));
}

@media (prefers-reduced-motion: reduce) {
  .native-news-overview .native-news-overview__banner-img {
    transition: none;
  }

  .native-news-overview
    .native-news-overview__banner-link:hover
    .native-news-overview__banner-img,
  .native-news-overview
    .native-news-overview__banner-link:focus-visible
    .native-news-overview__banner-img,
  .native-news-overview
    .native-news-overview__banner-link:active
    .native-news-overview__banner-img {
    transform: none;
    filter: none;
  }
}

/* Desktop: Kontakt-Malerband — feste Breite (wie Cyber/MS 300px; überschreibt flex/max-width oben) */
@media (min-width: 768px) {
  .native-news-overview .native-news-overview__hero-banner {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
    min-width: 0;
    transform: translateX(-80px);
  }

  .native-news-overview .native-news-overview__banner-link {
    display: block;
    width: 240px;
    max-width: 240px;
  }

  .native-news-overview .native-news-overview__banner-img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
  }
}
