.ar-sek.ar-refs { padding: 76px 0; }

/* Karte (beide Darstellungen), Rahmen mit Button-Radius 10px */
.ar-ref { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ar-sek--weiss .ar-ref { background: var(--paper); border-color: transparent; }
.ar-ref__thema { font-size: calc(12px * var(--f-klein)); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.ar-ref__kunde { margin-top: 12px; font-size: calc(26px * var(--f-h3)); letter-spacing: -.03em; }
.ar-ref__branche { margin-top: 4px; color: var(--muted); font-weight: 600; font-size: calc(15px * var(--f-text)); }
.ar-ref__logo { display: block; height: 34px; width: auto; max-width: 180px; margin-top: 14px; object-fit: contain; object-position: left center; }
.ar-ref__logo + .ar-ref__kunde { margin-top: 10px; }
.ar-ref__zitat { margin: 0; padding-left: 16px; border-left: 3px solid var(--magenta); color: var(--ink); }
.ar-ref__zitat p { margin: 0; }
.ar-ref__person { margin-top: 14px; font-size: calc(14px * var(--f-text)); line-height: 1.4; color: var(--muted); }
.ar-ref__person b { display: block; font-size: calc(15px * var(--f-text)); font-weight: 700; color: var(--ink); }
.body-wrapper .ar-ref__link { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: calc(15.5px * var(--f-text)); color: var(--magenta); display: inline-flex; gap: 8px; }

/* Multi-View: Karten mit Abstand */
.ar-refs__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.ar-refs__raster .ar-ref { padding: 30px 30px 28px; }
.ar-refs__raster .ar-ref__stimme { display: flex; flex-direction: column; flex: 1; margin-top: 18px; }
.ar-refs__raster .ar-ref__zitat p { font-size: calc(17px * var(--f-lead)); line-height: 1.5; }
@supports (grid-template-rows: subgrid) {
  .ar-refs__raster .ar-ref { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}

/* Single-View: eine Referenz gross, Pfeile */
.ar-refs__single { margin-top: 40px; }
.ar-refs__steuerung { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.ar-refs__zaehler { margin-right: 10px; font-size: calc(14px * var(--f-text)); font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ar-refs__pfeil {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--anthracite); border-radius: var(--radius); background: transparent; color: var(--anthracite);
  font-family: var(--font); font-size: 20px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s;
}
.ar-refs__pfeil:hover:not(:disabled) { background: var(--anthracite); color: #fff; }
.ar-refs__pfeil:disabled { opacity: .3; cursor: default; }
.ar-refs__spur {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
}
.ar-refs__spur::-webkit-scrollbar { display: none; }
.ar-refs__folie { display: flex; scroll-snap-align: start; }
.ar-ref--gross { flex: 1; display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: center; padding: 52px 56px; }
.ar-ref--gross .ar-ref__kopf { align-self: stretch; display: flex; flex-direction: column; padding-right: 40px; border-right: 1px solid var(--line); }
.ar-ref--gross .ar-ref__kunde { font-size: calc(clamp(28px, 3vw, 38px) * var(--f-h3)); }
.ar-ref--gross .ar-ref__logo { height: 48px; max-width: 240px; }
.ar-ref__link-btn { margin-top: auto; align-self: flex-start; white-space: normal; }
.ar-ref--gross .ar-ref__kopf .ar-ref__link-btn { margin-top: 28px; }
.ar-ref--gross .ar-ref__zitat { position: relative; padding-left: 0; border-left: 0; }
.ar-ref--gross .ar-ref__zitat::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 22px; border-radius: 2px; background: var(--magenta); }
.ar-ref--gross .ar-ref__zitat p { font-size: calc(clamp(24px, 2.6vw, 36px) * var(--f-lead)); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; }
.ar-ref--gross .ar-ref__person { margin-top: 24px; font-size: calc(15px * var(--f-text)); }
.ar-ref--gross .ar-ref__person b { font-size: calc(17px * var(--f-text)); }
.ar-refs__fortschritt { position: relative; height: 2px; margin-top: 26px; background: var(--line); }
.ar-refs__fortschritt span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--magenta); transition: left .35s ease, width .35s ease; }

@media (max-width: 1080px) {
  .ar-refs__raster { grid-template-columns: 1fr 1fr; }
  .ar-ref--gross { grid-template-columns: 1fr; gap: 32px; padding: 40px 36px; }
  .ar-ref--gross .ar-ref__kopf { padding-right: 0; padding-bottom: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ar-sek.ar-refs { padding: 60px 0; }
  .ar-refs__raster { grid-template-columns: 1fr; gap: 16px; }
  .ar-ref--gross { padding: 30px 22px; }
  .ar-refs__zaehler { margin-right: auto; }
}

/* Matrix: zwei Kacheln je Reihe (Uebersicht /referenzen/) */
.ar-refs__matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }

.ar-refs__leer { margin-top: 36px; color: var(--muted); font-size: calc(17px * var(--f-text)); }
@media (max-width: 767px) { .ar-refs__matrix { grid-template-columns: 1fr; } }
