/* Figma: Referenz Detail (140:129). Page layout is opt-in via its section class. */
.e2-reference-detail-page {
    --e2-reference-gutter: clamp(24px, 5.5556vw, 80px);
    --e2-reference-spacing: clamp(64px, 7.7778vw, 112px);
    background: #fff;
}
.e2-reference-detail-page #content > .container { max-width: none; padding: 0; }
.e2-reference-detail-page #content > .container > .row { margin: 0; }
.e2-reference-detail-page #primary { padding: 0; }
.e2-reference-detail-page .entry-header { display: none; }
.e2-reference-detail-page .entry-content { margin: 0; }
.e2-reference-detail-page #page-sub-header { height: clamp(360px, 49.7917vw, 717px); min-height: 0; }
.e2-reference-detail-page #page-sub-header-bgimg { animation: none; transform: none; background-position: center; }
.e2-reference-detail.vc_section { display: block; padding: 0; margin: 0; color: #007ba7; background: #fff; }
.e2-reference-detail > .vc_row {
    width: calc(100% - 2 * var(--e2-reference-gutter)); max-width: 1280px;
    margin: 0 auto !important; padding: var(--e2-reference-spacing) 0 !important;
}
.e2-reference-detail > .vc_row > .wpb_column > .vc_column-inner { padding-left: 0; padding-right: 0; padding-top: 0; }
.e2-reference-detail .wpb_content_element { margin-bottom: 0; }
.e2-reference-detail .wpb_text_column { font-size: 20px; line-height: 1.4; font-weight: 400; }
.e2-reference-detail p { margin: 0 0 24px; }
.e2-reference-detail p:last-child { margin-bottom: 0; }
.e2-reference-detail .vcBlock-titel { max-width: none; margin: 0; }
.e2-reference-detail .vcBlock-titel h2,
.e2-reference-intro h1, .e2-reference-intro h2 {
    color: #007ba7; font-family: inherit; font-size: clamp(34px, 3.9583vw, 57px);
    line-height: 1.2; font-weight: 600; letter-spacing: normal; padding: 0; margin: 0 0 24px;
}
.e2-reference-detail #e2-ref-intro { padding-top: 80px !important; padding-bottom: 80px !important; }
.e2-reference-intro { display: grid; grid-template-columns: minmax(0, 761fr) minmax(0, 439fr); gap: clamp(32px, 5.5556vw, 80px); color: #007ba7; }
.e2-reference-intro--no-facts { grid-template-columns: 1fr; }
.e2-reference-intro__summary { font-size: 20px; line-height: 1.4; font-weight: 400; }
.e2-reference-intro__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 32px; margin: 0; }
.e2-reference-intro__fact dt { font-size: 30px; line-height: 1.4; font-weight: 500; margin-bottom: 8px; }
.e2-reference-intro__fact dd { font-size: 20px; line-height: 1.4; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.e2-reference-intro__fact a { color: inherit; text-underline-offset: 4px; }
.e2-reference-detail #e2-ref-background > .wpb_column { max-width: 768px; margin: auto; float: none; }
.e2-reference-detail #e2-ref-approach { display: flex; align-items: center; gap: clamp(32px, 5.5556vw, 80px); }
.e2-reference-detail #e2-ref-approach::before, .e2-reference-detail #e2-ref-approach::after { display: none; }
.e2-reference-detail #e2-ref-approach > .wpb_column { width: calc(50% - clamp(16px, 2.7778vw, 40px)); float: none; }
.e2-reference-detail #e2-ref-approach .wpb_single_image { width: 100%; }
.e2-reference-detail #e2-ref-approach .vc_figure,
.e2-reference-detail #e2-ref-approach .vc_single_image-wrapper { display: block; width: 100%; }
.e2-reference-detail #e2-ref-approach .vc_single_image-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.e2-reference-detail #e2-ref-gallery > .wpb_column > .vc_column-inner > .wpb_wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.e2-reference-detail #e2-ref-gallery .wpb_single_image:first-child { grid-column: 1 / -1; }
.e2-reference-detail #e2-ref-gallery .vc_figure,
.e2-reference-detail #e2-ref-gallery .vc_single_image-wrapper { display: block; width: 100%; }
.e2-reference-detail #e2-ref-gallery .vc_single_image-img { width: 100%; height: auto; aspect-ratio: 624 / 640; object-fit: cover; border-radius: 20px; }
.e2-reference-detail #e2-ref-gallery .wpb_single_image:first-child .vc_single_image-img { aspect-ratio: 2; }
.e2-reference-detail #e2-ref-quote { padding-top: 80px !important; padding-bottom: 80px !important; }
.e2-reference-quote { margin: 0; color: #007ba7; }
.e2-reference-detail .e2-reference-quote { margin-left: 20%; }
.e2-reference-quote blockquote { margin: 0 0 32px; padding: 0; border: 0; background: none; font-size: clamp(34px, 4.5139vw, 65px); line-height: 1.3; font-weight: 500; font-style: normal; color: inherit; }
.e2-reference-quote blockquote::before, .e2-reference-quote blockquote::after { content: none; }
.e2-reference-quote blockquote p { font: inherit; color: inherit; margin: 0; }
.e2-reference-quote figcaption { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.4; font-weight: 400; }
.e2-reference-quote__portraits { display: inline-flex; flex-shrink: 0; }
.e2-reference-quote__portrait { display: block; width: 31px; height: 31px; object-fit: cover; border-radius: 50%; }
.e2-reference-quote__portrait + .e2-reference-quote__portrait { margin-left: -10px; }
.e2-reference-detail #e2-ref-related .vcBlock-titel { margin-bottom: 56px; }
.e2-reference-detail #e2-ref-related .vc-block-button { margin-top: 56px; }
.e2-reference-detail #e2-ref-related .sliderProjects__title { font-size: 30px; line-height: 1.4; font-weight: 500; }
/* Figma 140:250: blue 11px dots, 31px active pill, 10px gaps. */
.e2-reference-detail #e2-ref-related .sliderProjects { margin-bottom: 0; }
.e2-reference-detail #e2-ref-related .slick-dots {
    position: static; display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%; height: 11px; margin: 50px 0 0; padding: 0; list-style: none;
}
.e2-reference-detail #e2-ref-related .slick-dots li {
    position: relative; flex: 0 0 auto; width: 11px; height: 11px; margin: 0; padding: 0;
}
.e2-reference-detail #e2-ref-related .slick-dots li.slick-active { width: 31px; }
.e2-reference-detail #e2-ref-related .slick-dots li::before,
.e2-reference-detail #e2-ref-related .slick-dots li button::before { content: none; display: none; }
.e2-reference-detail #e2-ref-related .slick-dots li button {
    position: relative; display: block; width: 100%; height: 11px; margin: 0; padding: 0;
    border: 0; border-radius: 29px; background: #007ba7; color: transparent; opacity: 1;
    font-size: 0; line-height: 0; box-shadow: none; cursor: pointer;
}
.e2-reference-detail #e2-ref-related .slick-dots li button::after {
    content: ''; position: absolute; inset: -10px -5px;
}
.e2-reference-detail #e2-ref-related .slick-dots li button:focus-visible {
    outline: 2px solid #007ba7; outline-offset: 5px;
}
.e2-reference-detail #e2-ref-related .aBtnMotion { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 100px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.e2-reference-detail #e2-ref-related .aBtnMotion::after { content: ''; display: inline-block; position: static; width: 24px; height: 24px; background: url('../img/reference-arrow.svg') center / contain no-repeat; transform: none; }
.e2-reference-detail #e2-ref-contact { width: 100%; max-width: none; padding: 0 !important; }
.e2-reference-detail #e2-ref-contact #footer-widget-first { min-height: 736px; padding: 125px var(--e2-reference-gutter); background-position: center; background-size: cover; }
.e2-reference-detail #e2-ref-contact #footer-widget-first > .container { max-width: 1280px; padding: 0; }
@media (max-width: 991px) {
    .e2-reference-intro { grid-template-columns: 1fr; }
    .e2-reference-detail .e2-reference-quote { margin-left: 0; }
    .e2-reference-detail #e2-ref-contact #footer-widget-first { min-height: 560px; padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 767px) {
    .e2-reference-detail > .vc_row { padding: 56px 0 !important; }
    .e2-reference-detail #e2-ref-intro, .e2-reference-detail #e2-ref-quote { padding-top: 56px !important; padding-bottom: 56px !important; }
    .e2-reference-detail .wpb_text_column, .e2-reference-intro__summary, .e2-reference-intro__fact dd { font-size: 18px; line-height: 1.5; }
    .e2-reference-intro__facts { gap: 24px; }
    .e2-reference-intro__fact dt { font-size: 24px; }
    .e2-reference-detail #e2-ref-approach { flex-direction: column; gap: 32px; }
    .e2-reference-detail #e2-ref-approach > .wpb_column { width: 100%; }
    .e2-reference-detail #e2-ref-gallery > .wpb_column > .vc_column-inner > .wpb_wrapper { grid-template-columns: 1fr; gap: 24px; }
    .e2-reference-detail #e2-ref-gallery .vc_single_image-img,
    .e2-reference-detail #e2-ref-gallery .wpb_single_image:first-child .vc_single_image-img { aspect-ratio: 1; }
    .e2-reference-quote figcaption { align-items: flex-start; font-size: 16px; }
    .e2-reference-detail #e2-ref-related .sliderProjects__title { font-size: 24px; }
    .e2-reference-detail #e2-ref-contact #footer-widget-first { min-height: 480px; background-position: 60% center; }
}
