/* =========================================
   NORD SECURED – REFERENZEN
   Eigenständige Styles, perfekt an Grid-
   und Container-Breite der Seite angepasst
========================================= */

.ns-references {
  --ns-navy: #112733;
  --ns-red: #ec1b3b;
  --ns-line: #e4e6e8;

  background: #ffffff;
  padding: 100px 0;
  width: 100%;
  box-sizing: border-box;
}

.ns-references *,
.ns-references *::before,
.ns-references *::after {
  box-sizing: border-box;
}

.ns-references__container {
  display: grid;
  grid-template-columns: 0.85fr 1.75fr;
  gap: 64px;
  align-items: start;
}

/* INTRO */

.ns-references__eyebrow {
  display: block;
  color: var(--ns-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.ns-references__intro h2 {
  color: var(--ns-navy);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 20px;
}

.ns-references__intro p {
  color: #17212a;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
  max-width: 540px;
}

/* LOGO GRID (3 Spalten x 2 Reihen auf Desktop) */

.ns-references__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ns-references__logo {
  min-width: 0;
  height: 115px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px 24px;
  border-right: 1px solid var(--ns-line);
  border-bottom: 1px solid var(--ns-line);
}

.ns-references__logo:nth-child(3n) {
  border-right: none;
}

.ns-references__logo:nth-last-child(-n+3) {
  border-bottom: none;
}

.ns-references__logo img {
  display: block;
  width: 100%;
  max-width: 155px;
  max-height: 65px;
  object-fit: contain;

  /* Monochromer Schwarz-Weiß-Effekt */
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.ns-references__logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* TABLET (2 Spalten x 3 Reihen) */

@media (max-width: 1024px) {
  .ns-references {
    padding: 80px 0;
  }

  .ns-references__intro p {
    font-size: 17.5px;
    max-width: 100%;
  }

  .ns-references__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ns-references__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-references__logo {
    padding: 16px;
    height: 105px;
  }

  /* Reset 3-Spalten-Rahmen */
  .ns-references__logo:nth-child(3n) {
    border-right: 1px solid var(--ns-line);
  }

  .ns-references__logo:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--ns-line);
  }

  /* 2-Spalten-Rahmen */
  .ns-references__logo:nth-child(2n) {
    border-right: none;
  }

  .ns-references__logo:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .ns-references__logo img {
    max-width: 135px;
    max-height: 55px;
  }
}

/* SMARTPHONE */

@media (max-width: 600px) {
  .ns-references {
    padding: 60px 0;
  }

  .ns-references__logo {
    height: 95px;
    padding: 12px;
  }

  .ns-references__logo img {
    max-width: 120px;
    max-height: 48px;
  }
}
