/* The case study cards (Referenzen) in the hub look (Timo 2026-11-04 08:01: "go over it with the new design rules from
   the website and hub, the buttons are not right anymore"). Loaded after styles.css and site-ui.css, so it wins.
   Buttons are .btn-cta (site-ui.css) now, not .btn-reference-primary; frames get the hub's hairline + second hairline
   4 px outside; the numbers are white with the violet in the light, like the KPI strip under the chapter. */
.reference-card + .reference-card { margin-top: clamp(4rem, 8vw, 7rem); }
a.reference-mockup, a.reference-video { display: block; color: inherit; text-decoration: none; }

/* frames */
.reference-mockup, .reference-video { border: 1px solid rgba(255,255,255,.10); outline: 1px solid rgba(255,255,255,.055); outline-offset: 4px; }
.reference-mockup { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.01) 55%, rgba(255,255,255,.025)), rgba(6,6,8,.55); }
.reference-video.glass-edge::before { display: none; }   /* the old glass edge; the hairlines above replace it */

/* numbers: the highlight in the site's violet and the serif (Timo 08:12; 08:21 "the one we always have, glow slightly") */
.reference-stat-value { font-family: 'Very Vogue Display', serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--violet);
  font-size: clamp(2.3rem, 4vw, 3.8rem); text-shadow: 0 0 18px rgba(152,80,243,.35); }

/* more air (Timo 08:21): tag row to headline, numbers to buttons; the canvas positions are percentages of the card */
@media (min-width: 1201px) {
  .reference-stats { column-gap: clamp(1.5rem, 2.4vw, 2.2rem); }   /* two highlights never read as one ("2 Exposé", 09:58) */
  .reference-headline { top: 18.5%; }
  .reference-actions { top: 77.5%; }
}

/* buttons in the card's size */
.reference-actions .btn-cta { font-size: clamp(0.7rem, 0.7vw, 0.85rem); padding: .95em 1.4em; gap: .6em; }

/* screenshots from projekte/fetch.py keep their top (the logo and nav stay in) */
.reference-mockup-img[src*="assets/projekte/"] { object-position: top; }
/* page shots in the small frame lifted (zoomed from the bottom-left corner), so their headline sits above the caption */
.reference-video-photo[src*="assets/projekte/"] { transform: scale(1.3); transform-origin: 0% 100%; }
.reference-video:hover .reference-video-photo[src*="assets/projekte/"] { transform: scale(1.38); }

/* the mirrored card (Timo 08:01 "switch it around, inversed from the composition"): visual right, text left; inside the
   visual the screenshot sits right and the small card overlaps it from the left; the text hugs the visual side */
@media (min-width: 1201px) {
  .reference-card-flip .reference-visual { left: auto; right: 0; }
  .reference-card-flip .reference-mockup { margin-left: auto; }
  .reference-card-flip .reference-video { left: 0; }
  .reference-card-flip .reference-social { left: auto; right: 3.93%; justify-content: flex-end; }
  .reference-card-flip .reference-content { left: 0; text-align: right; }
  .reference-card-flip .reference-tag-row { justify-content: flex-end; }
  .reference-card-flip .reference-headline { left: auto; right: 0; }
  .reference-card-flip :is(.reference-stats, .reference-actions) { left: 0; right: 31.3%; justify-content: flex-end; }
  .reference-card-flip :is(.reference-stat, .reference-stat-label) { text-align: right; align-items: flex-end; }   /* number and subline to the right (08:12) */
  .reference-card-flip .reference-tag-note { order: -1; }   /* "Full Website Rework" first, the company pill at the edge (08:12) */
}

/* the small box holds the client's quote while there is no testimonial video (Timo 2026-11-04 18:22): stars, the
   quote, who said it; sized off the box itself (container units), so it reads from the 390 px card down to the phone */
.reference-quote { cursor: default; }
.reference-quote .reference-video-inner { container-type: size; background: radial-gradient(120% 90% at 100% 0%, rgba(152,80,243,.16), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%), #0b0b0e; }
.rq { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(10px, 6.5cqw, 26px); gap: clamp(6px, 4cqh, 14px); }
.rq-stars { height: clamp(12px, 5.4cqw, 20px); width: auto; align-self: flex-start; }
.rq-text { margin: 0; flex: 1; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  font-size: clamp(9px, 5.2cqw, 21px); font-weight: 500; line-height: 1.28; letter-spacing: -.015em; color: var(--white, #fff); text-wrap: pretty; }
.rq-who { display: flex; align-items: center; gap: clamp(6px, 2.6cqw, 11px); }
.rq-av { flex: none; display: grid; place-items: center; width: clamp(20px, 9cqw, 36px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(140deg, #2a2133, #15131a); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.75);
  font-size: clamp(7px, 3cqw, 12px); font-weight: 500; letter-spacing: .02em; }
.rq-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rq-id b { font-family: 'Very Vogue Display', serif; font-style: italic; font-weight: 400; font-size: clamp(11px, 5cqw, 20px); color: var(--white, #fff); }
.rq-id span { font-size: clamp(8px, 3cqw, 12px); color: rgba(255,255,255,.5); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-height: 150px) { .rq { gap: 5px; padding: 9px 10px; } .rq-stars, .rq-av { display: none; } .rq-text { -webkit-line-clamp: 3; flex: 0 1 auto; margin-bottom: auto; font-size: 9.5px; line-height: 1.28; } .rq-id b { font-size: 11px; } .rq-id span { font-size: 8px; } }
/* one size on every desktop (Timo 2026-11-09, site-ui.css "Chrome stays put"): the 0.7vw grew them to 13.4px at 1920 */
@media (min-width: 981px) { .reference-actions .btn-cta { font-size: calc(var(--btn-fs, 15px) - 1px); padding: .9em 1.4em; } }

/* the boxes without a real review: a muted scroll through the live site (Timo 2026-11-09 23:37, ref-video.js) */
.reference-site .reference-video-inner { background: #0b0b0e; }
.rs-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; pointer-events: none; }
