/* Native References Overview (scoped) */
.native-references-overview {
  --nro-max: 1140px;
  --nro-gap: 20px;
  --nro-blue: #0082CB;
  --nro-blue-dark: #174B7A;
  --nro-text: #222;
  --nro-muted: #666;
  --nro-pill-bg: #f7f7f7;
  --nro-pill-border: rgba(0, 0, 0, 0.1);
  --nro-pill-bg-hover: #ffffff;
  --nro-pill-border-hover: rgba(42, 130, 201, 0.55);
  --nro-pill-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  --nro-pill-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.06);
  /* VQA-002: Kachel-Tokens analog native-partner.css (--np-card-*) */
  --nro-card-bg: #ffffff;
  --nro-card-border: #d8dde3;
  --nro-card-radius: 6px;
  --nro-card-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.native-references-overview .native-references-overview__inner {
  max-width: var(--nro-max);
  margin: 0 auto;
  padding: 22px 15px 50px;
}

/* Hero wie native-products-overview (Pilot: gleiches Bild/Overlay) — B-001a-10 */
.native-references-overview .native-references-overview__hero {
  --references-overview-hero-header-overlap: 80px;
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * var(--references-overview-hero-header-overlap));
  background-color: #0082cb;
  background-image: url("../img/global/produkte_page.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0;
  color: #ffffff;
  overflow: hidden;
}

.native-references-overview .native-references-overview__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 130, 203, 0.55);
}

/* B-001a-12: gleiche max-Breite + horizontales Padding wie .__inner — Headline fluchtet mit Content */
.native-references-overview .native-references-overview__hero-inner {
  position: relative;
  max-width: var(--nro-max);
  margin: 0 auto;
  padding: 120px 15px 58px;
  min-height: 550px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
}

@media (max-width: 1366px) {
  .native-references-overview .native-references-overview__hero {
    height: 550px;
  }

  .native-references-overview .native-references-overview__hero-inner {
    min-height: 550px;
    height: auto;
  }
}

/* Eine Hero-Hauptaussage als h1 (B-001a-11) */
.native-references-overview .native-references-overview__hero .native-references-overview__lead {
  margin: 0;
  max-width: 100%;
  text-align: left;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.28);
  font-size: 40px;
  line-height: 1.15;
}

/* Intro: links wie Karten-Spalte, Lesebreite begrenzt (B-001a-11) */
.native-references-overview .native-references-overview__intro {
  margin: 0 0 24px 0;
  max-width: min(56rem, 100%);
  text-align: left;
}

/* B-001a-9 + B-001a-11: Fliesstext, etwas dichter für ~2 Zeilen Desktop */
.native-references-overview .native-references-overview__intro-text {
  margin: 0;
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 400;
  color: #2b2b2b;
  max-width: 100%;
}

.native-references-overview .native-references-overview__layout {
  display: flex;
  gap: var(--nro-gap);
  align-items: flex-start;
}

.native-references-overview .native-references-overview__posts {
  flex: 1;
  min-width: 0;
}

.native-references-overview .native-references-overview__filters {
  width: 100%;
  margin: 0 0 32px 0;
}

.native-references-overview .native-references-overview__filters-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.native-references-overview .native-references-overview__filter-reset {
  margin: 0 0 6px 0;
}

.native-references-overview .native-references-overview__filter-group {
  display: block;
}

.native-references-overview .native-references-overview__filter-label {
  display: block;
  font-size: 15px;
  line-height: 18px;
  color: var(--nro-text);
  font-weight: 600;
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}

.native-references-overview .native-references-overview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
}

/* Chips/Pills (inaktiv analog Produkt-Kachel: hellgrau → Hover weiss, Rand grau → blau) */
.native-references-overview .native-references-overview__chip {
  appearance: none;
  border: 1px solid var(--nro-pill-border);
  background: var(--nro-pill-bg);
  color: var(--nro-blue-dark);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--nro-pill-shadow);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.native-references-overview .native-references-overview__chip:not(.is-active):not(:disabled):hover,
.native-references-overview .native-references-overview__chip:not(.is-active):not(:disabled):focus-visible {
  background: var(--nro-pill-bg-hover);
  border-color: var(--nro-pill-border-hover);
  color: var(--nro-blue-dark);
  box-shadow: var(--nro-pill-shadow-hover);
  text-decoration: none;
}

.native-references-overview .native-references-overview__chip.is-active {
  background: var(--nro-blue);
  border-color: var(--nro-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.native-references-overview .native-references-overview__chip.is-active:hover,
.native-references-overview .native-references-overview__chip.is-active:focus-visible {
  background: var(--nro-blue);
  border-color: var(--nro-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.native-references-overview .native-references-overview__chip.is-active:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.native-references-overview .native-references-overview__chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}

/* Karten-Grid + Referenz-Kacheln (B-001a-5; VQA-002: Optik an Partner-Kacheln) */
.native-references-overview .native-references-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--nro-gap);
  margin-top: 0;
}

.native-references-overview .native-references-overview__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
  padding: 20px 14px 18px;
  box-sizing: border-box;
  border: 1px solid var(--nro-card-border);
  border-radius: var(--nro-card-radius);
  background: var(--nro-card-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.native-references-overview .native-references-overview__card:hover,
.native-references-overview .native-references-overview__card:focus-visible {
  background: var(--nro-card-bg);
  border-color: var(--nro-blue);
  box-shadow: var(--nro-card-shadow-hover);
  text-decoration: none;
  outline: none;
}

.native-references-overview .native-references-overview__logo {
  display: block;
  width: 100%;
  max-width: 200px;
  min-height: 90px;
  height: 120px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.native-references-overview .native-references-overview__entry-title {
  text-align: center;
  margin: 0;
  padding: 0 4px;
  max-width: 100%;
  color: var(--nro-text);
  font-size: 18px;
  font-family: "PT Sans Narrow", Sans-serif;
  font-weight: 500;
  line-height: 1.28;
  overflow-wrap: break-word;
  text-decoration: none;
  transition: color 120ms ease;
}

.native-references-overview .native-references-overview__card:hover .native-references-overview__entry-title,
.native-references-overview .native-references-overview__card:focus-visible .native-references-overview__entry-title {
  color: var(--nro-blue);
}

.native-references-overview .native-references-overview__empty {
  margin: 18px 0 0 0;
  color: var(--nro-muted);
}

@media (max-width: 900px) {
  .native-references-overview .native-references-overview__layout {
    flex-direction: column;
  }
  .native-references-overview .native-references-overview__inner {
    padding: 20px 15px 40px;
  }
  .native-references-overview .native-references-overview__filters {
    margin: 0 0 26px 0;
  }
  .native-references-overview .native-references-overview__intro {
    margin: 0 0 20px 0;
    max-width: 100%;
  }
  .native-references-overview .native-references-overview__logo {
    min-height: 80px;
    height: 110px;
  }
}

@media (max-width: 680px) {
  .native-references-overview .native-references-overview__hero {
    height: 320px;
  }

  .native-references-overview .native-references-overview__hero-inner {
    padding: calc(95px + var(--references-overview-hero-header-overlap)) 15px 40px;
    min-height: 320px;
    height: auto;
  }
  .native-references-overview .native-references-overview__hero .native-references-overview__lead {
    font-size: 28px;
  }
  .native-references-overview .native-references-overview__intro-text {
    font-size: 18px;
    line-height: 1.55;
  }
}
