.references-page .sp-hero { min-height: 76vh; }
.references-page .sp-hero h1 { max-width: 24ch; }
.references-page .sp-facts { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); }

.ref-logo-section { overflow: hidden; padding: 2.25rem 0; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--sp-black); }
.ref-logo-section p { margin: 0 0 1.4rem; color: rgba(255,255,255,.62); text-align: center; font-size: .78rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.ref-logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ref-logo-track { display: flex; width: max-content; align-items: center; gap: clamp(3.5rem, 7vw, 7rem); animation: ref-logo-scroll 48s linear infinite; }
.ref-logo-item { height: 54px; min-width: 150px; display: grid; place-items: center; flex: 0 0 auto; }
.ref-logo-item img { width: auto; max-width: 170px; max-height: 42px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .82; }
.ref-logo-item img[src*="logo-customer-4.webp"] { transform: scale(1.3); }
.ref-logo-item img[src*="0f29f392-8bc9-420e-a24d-d8c4ee9a54f5"] { transform: scale(2.2); }
/* ZUEBLIN is the only source logo with an opaque white canvas. Preserve its
   internal contrast instead of turning the complete rectangle white. */
.ref-logo-item img[src*="e76dff82-1e6b-49ea-8651-2fc528930f94"] { filter: grayscale(1) invert(1) contrast(1.35); }
@keyframes ref-logo-scroll { to { transform: translateX(-50%); } }

.ref-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 7rem); align-items: end; margin-bottom: 2.75rem; }
.ref-intro h2 { max-width: 15ch; margin: 0; font-size: clamp(1.875rem, 3.2vw, 2.6rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.ref-intro p { max-width: 62ch; margin: 0; color: var(--sp-muted); font-size: 15px; line-height: 1.7; }
.ref-toolbar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.ref-filter { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--sp-rule); border-radius: 999px; color: var(--sp-ink); font-size: 14px; font-weight: 650; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.ref-filter:hover, .ref-filter[aria-pressed="true"] { border-color: var(--sp-ink); background: var(--sp-ink); color: #fff; }
.ref-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ref-card { min-width: 0; overflow: hidden; border: 1px solid var(--sp-rule); border-radius: var(--sp-radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.ref-card:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(0,0,0,.1); }
.ref-card[hidden] { display: none; }
.ref-card-head { min-height: 140px; padding: 1.5rem 1.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.ref-card-index { color: #8a8d8d; font-size: .75rem; letter-spacing: .14em; }
.ref-card h3 { margin: 0; font-size: clamp(1.25rem, 1.6vw, 1.375rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.ref-card p { margin: .55rem 0 0; color: var(--sp-muted); font-size: 14px; line-height: 1.5; }
.ref-images { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; height: 390px; background: var(--sp-rule); }
.ref-image { min-width: 0; min-height: 0; overflow: hidden; cursor: zoom-in; }
.ref-image:first-child { grid-row: 1 / 3; }
.ref-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.ref-image:hover img { transform: scale(1.035); }
.ref-empty { display: none; padding: 3rem; border: 1px solid var(--sp-rule); border-radius: var(--sp-radius); text-align: center; color: var(--sp-muted); }
.ref-empty.is-visible { display: block; }
.ref-summary { margin-top: 3.5rem; padding-top: 2.25rem; border-top: 1px solid var(--sp-rule); display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; }
.ref-summary h3 { margin: 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.ref-summary p { max-width: 66ch; margin: 0; color: var(--sp-muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 820px) {
  .ref-intro, .ref-summary { grid-template-columns: 1fr; gap: 1.2rem; }
  .ref-list { grid-template-columns: 1fr; }
  .ref-images { height: min(74vw, 470px); }
}

@media (max-width: 560px) {
  .references-page .sp-hero { min-height: 74vh; }
  .ref-logo-section { padding-block: 1.8rem; }
  .ref-logo-track { gap: 3.25rem; }
  .ref-logo-item { min-width: 120px; }
  .ref-card-head { min-height: 124px; padding: 1.25rem; }
  .ref-images { height: 82vw; grid-template-columns: 1.55fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ref-logo-track { animation: none; }
}

/* Die Referenzkarten folgen derselben lesbaren ADS-Skala wie alle Unterseiten. */
.ref-card h3,
.ref-summary h3 { font-size: 1.5rem; line-height: 1.31; letter-spacing: -.4px; }
.ref-card p,
.ref-intro p,
.ref-summary p { font-size: 1rem; line-height: 1.5; }
.ref-card-head { min-height: fit-content; }
