/* ==================================================
   ECHELONX – REFERENZEN
================================================== */

.references-section,
.references-section * {
  box-sizing: border-box;
}

.references-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;

  padding:
    clamp(90px, 9vw, 140px)
    5.8vw
    clamp(95px, 9vw, 140px);

  border-top: 1px solid rgba(198, 161, 102, 0.18);

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.97),
      transparent 35%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(198, 161, 102, 0.1),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      #fffefa 0%,
      #f8f4ed 50%,
      #f1ebe2 100%
    );
}

.references-section::before {
  content: "";
  position: absolute;
  z-index: -2;

  top: -300px;
  right: -260px;

  width: 610px;
  height: 610px;

  border: 1px solid rgba(198, 161, 102, 0.12);
  border-radius: 50%;

  pointer-events: none;
}

.references-section::after {
  content: "X";
  position: absolute;
  z-index: -1;

  left: -45px;
  bottom: -175px;

  color: rgba(198, 161, 102, 0.045);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 430px;
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

/* ==================================================
   CONTAINER
================================================== */

.references-shell {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

/* ==================================================
   ÜBERSCHRIFT
================================================== */

.references-heading {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.9fr)
    minmax(440px, 1.1fr);
  align-items: end;

  gap: clamp(40px, 7vw, 110px);

  margin-bottom: clamp(56px, 6vw, 82px);
}

.references-heading-left {
  min-width: 0;
}

.references-kicker {
  margin: 0 0 20px;

  color: #c6a166;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.references-heading h2 {
  max-width: 700px;
  margin: 0;

  color: #121212;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4.7vw, 74px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.references-heading-text {
  max-width: 680px;
  margin: 0 0 7px;

  color: #625d55;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1.12vw, 19px);
  line-height: 1.76;
}

/* ==================================================
   KARTENRASTER
================================================== */

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}

/* ==================================================
   EINZELNE REFERENZKARTE
================================================== */

.reference-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 620px;

  border: 1px solid rgba(198, 161, 102, 0.27);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 252, 247, 0.92)
    );

  box-shadow:
    0 18px 52px rgba(40, 31, 22, 0.09);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.reference-card::after {
  content: "";

  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;

  height: 3px;

  background: #c6a166;

  transform: scaleX(0);
  transform-origin: left center;

  transition: transform 0.35s ease;
}

.reference-card:hover {
  border-color: rgba(198, 161, 102, 0.58);

  box-shadow:
    0 30px 90px rgba(40, 31, 22, 0.15);

  transform: translateY(-8px);
}

.reference-card:hover::after {
  transform: scaleX(1);
}

/* ==================================================
   LOGOBEREICH
================================================== */

.reference-logo-wrap {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 275px;
  padding: 36px;

  border-bottom: 1px solid rgba(198, 161, 102, 0.2);

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 1),
      rgba(249, 245, 238, 0.95) 72%
    );
}

.reference-logo-wrap::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.42;

  background:
    linear-gradient(
      135deg,
      transparent 0%,
      transparent 42%,
      rgba(198, 161, 102, 0.08) 50%,
      transparent 58%,
      transparent 100%
    );

  pointer-events: none;
}

.reference-logo {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  max-width: 290px;
  max-height: 210px;

  object-fit: contain;
  object-position: center;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.reference-card:hover .reference-logo {
  transform: scale(1.035);
}

/* individuelle Größen */

.reference-logo-ai24 {
  max-width: 320px;
  max-height: 225px;
}

.reference-logo-cobra {
  max-width: 330px;
  max-height: 210px;
}

.reference-logo-melena {
  max-width: 300px;
  max-height: 215px;
}

/* ==================================================
   TEXTBEREICH
================================================== */

.reference-content {
  position: relative;

  display: flex;
  flex-direction: column;

  flex: 1;
  padding: 30px;
}

.reference-category {
  margin: 0 0 13px;

  color: #c6a166;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reference-content h3 {
  margin: 0 0 17px;

  color: #121212;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.1vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.reference-description {
  margin: 0 0 25px;

  color: #625d55;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.72;
}

/* ==================================================
   LEISTUNGEN
================================================== */

.reference-services {
  display: grid;
  gap: 11px;

  margin: 0 0 28px;
  padding: 0;

  list-style: none;
}

.reference-services li {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #302d29;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.reference-services li::before {
  content: "✓";

  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;
  flex: 0 0 24px;

  border: 1px solid rgba(198, 161, 102, 0.38);
  border-radius: 50%;

  color: #c6a166;

  font-size: 11px;
}

/* ==================================================
   STATUS UND LINK
================================================== */

.reference-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  width: 100%;
  margin-top: auto;
  padding-top: 22px;

  border-top: 1px solid rgba(198, 161, 102, 0.25);
}

.reference-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #302d29;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reference-status::before {
  content: "";

  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 50%;

  background: #86c98a;

  box-shadow:
    0 0 0 4px rgba(134, 201, 138, 0.12);
}

.reference-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #121212;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.reference-link span {
  color: #c6a166;
  font-size: 18px;
}

.reference-link:hover {
  color: #8b6735;
  transform: translateX(3px);
}

/* ==================================================
   ABSCHLUSSZEILE
================================================== */

.references-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;

  gap: 28px;

  margin-top: 44px;
  padding: 30px 34px;

  border: 1px solid rgba(198, 161, 102, 0.25);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.56);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.references-note p {
  max-width: 830px;
  margin: 0;

  color: #625d55;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.68;
}

.references-note strong {
  color: #121212;
}

.references-note-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 54px;
  padding: 0 24px;

  border: 1px solid #121212;
  border-radius: 3px;

  background: #121212;
  color: #dcc59f;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.references-note-link:hover {
  background: #2a241d;
  transform: translateY(-2px);
}

.references-note-link span {
  color: #c6a166;
  font-size: 18px;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1100px) {
  .references-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .references-heading-text {
    max-width: 760px;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .reference-card {
    display: grid;
    grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
    min-height: 0;
  }

  .reference-logo-wrap {
    min-height: 100%;
    border-right: 1px solid rgba(198, 161, 102, 0.2);
    border-bottom: 0;
  }

  .reference-content {
    min-height: 410px;
  }
}

/* ==================================================
   SMARTPHONE
================================================== */

@media (max-width: 680px) {
  .references-section {
    padding:
      72px
      22px
      78px;
  }

  .references-section::after {
    left: -55px;
    bottom: -95px;

    font-size: 250px;
  }

  .references-heading {
    margin-bottom: 40px;
  }

  .references-heading h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .references-heading-text {
    font-size: 16px;
  }

  .reference-card {
    display: flex;
    min-height: 0;
  }

  .reference-logo-wrap {
    min-height: 240px;
    padding: 28px;

    border-right: 0;
    border-bottom: 1px solid rgba(198, 161, 102, 0.2);
  }

  .reference-content {
    min-height: 0;
    padding: 27px;
  }

  .reference-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .references-note {
    grid-template-columns: 1fr;
    padding: 27px;
  }

  .references-note-link {
    width: 100%;
  }
}

/* ==================================================
   REDUZIERTE BEWEGUNG
================================================== */

@media (prefers-reduced-motion: reduce) {
  .reference-card,
  .reference-logo,
  .reference-link,
  .references-note-link {
    transition: none;
  }
}
/* ==================================================
   REFERENZEN – FINALER FEINSCHLIFF
================================================== */

.reference-logo-wrap {
  min-height: 310px;
  padding: 24px;
}

.reference-logo-ai24 {
  max-width: 390px;
  max-height: 265px;
  transform: scale(1.08);
}

.reference-logo-cobra {
  max-width: 390px;
  max-height: 240px;
  transform: scale(1.12);
}

.reference-logo-melena {
  max-width: 350px;
  max-height: 250px;
  transform: scale(1.14);
}

.reference-card:hover .reference-logo-ai24 {
  transform: scale(1.14);
}

.reference-card:hover .reference-logo-cobra {
  transform: scale(1.19);
}

.reference-card:hover .reference-logo-melena {
  transform: scale(1.21);
}

.reference-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  z-index: 8;
  height: 3px;
  background: #c6a166;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.reference-card:hover::before {
  transform: scaleX(1);
}

.reference-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 34px 95px rgba(40, 31, 22, 0.17);
}

.reference-category {
  color: #b48643;
  letter-spacing: 0.18em;
}

.reference-link {
  padding: 9px 0;
}

.reference-card:hover .reference-link {
  color: #b48643;
}

.reference-card:hover .reference-link span {
  transform: translateX(4px);
}

.reference-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

@media (max-width: 680px) {
  .reference-logo-wrap {
    min-height: 270px;
  }

  .reference-logo-ai24,
  .reference-logo-cobra,
  .reference-logo-melena {
    transform: none;
  }

  .reference-card:hover .reference-logo-ai24,
  .reference-card:hover .reference-logo-cobra,
  .reference-card:hover .reference-logo-melena {
    transform: scale(1.04);
  }
}/* ==================================================
   REFERENZEN – EINHEITLICHER PROJEKTSTATUS
================================================== */

.reference-status::before {
  background: #c6a166;

  box-shadow:
    0 0 0 4px rgba(198, 161, 102, 0.12),
    0 0 14px rgba(198, 161, 102, 0.24);
}

.reference-status {
  color: #4d4943;
}

.reference-footer {
  min-height: 51px;
}

.reference-link {
  text-align: right;
}