/* Blog article (bp-) and blog overview (bo-). Loaded only on blog pages (includes/blog/blog.php).
   Fonts and --color-main come from css/dynamic-styles.css; the tokens below are blog-local. */

.bp-article,
.bo-page {
    --bp-ink: var(--color-main, #19222a);
    --bp-graphite: var(--color-header, #232323);
    --bp-mist: var(--color-section-bgr, #f4f5fa);
    --bp-paper: #fff;
    /* Site palette only (LEXO Design Optionen): no colour of the blog's own. */
    --bp-soft: var(--sidemenu-main-link-hover-color, #a6a4a2);
    /* Logo gold: operator decision - only the category chip in the hero and the offer button in the dark band. */
    --bp-gold: #b8913a;
    --bp-line: #e0e0e0; /* the site's rule colour (rte.css hr) */
    --bp-muted: var(--color-hover, #717171);
    --bp-shell: 1240px;
    --bp-gutter: clamp(16px, 4vw, 40px);
    --bp-space: clamp(64px, 9vw, 128px);
    color: var(--bp-ink);
    font-family: var(--font-regular);
}

.bp-shell {
    max-width: var(--bp-shell);
    margin-inline: auto;
    padding-inline: var(--bp-gutter);
    box-sizing: content-box;
}

.bp-article h1,
.bp-article h2,
.bp-article h3,
.bo-page h1,
.bo-page h2,
.bo-page h3,
.bp-toc,
.bp-ctacard,
.bp-card__title,
.bp-faq__item summary,
.bp-breadcrumb {
    hyphens: manual;
    -webkit-hyphens: manual;
}

.bp-article h2,
.bo-page h2 {
    font-family: var(--font-h2);
    font-weight: normal;
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--bp-ink);
    margin: 0 0 0.5em;
}

/* ---------- Buttons ---------- */

/* rte.css styles every <button> (uppercase, 4px tracking, 20px 67px padding, grey hover);
   each property it sets is restated here for the blog's own buttons. */
.bp-btn,
.bp-round {
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    font-family: var(--font-h5);
    font-size: 17px;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.bp-article a.bp-btn,
.bo-page a.bp-btn,
.bp-article a.bp-btn:hover,
.bo-page a.bp-btn:hover { text-decoration: none; }

/* a.-qualified: the site's global link colours otherwise win over these. */
.bp-btn--dark,
a.bp-btn--dark { background: var(--bp-ink); color: #fff; }
.bp-btn--dark:hover,
.bp-btn--dark:focus,
a.bp-btn--dark:hover { background: #000; color: #fff; border-color: transparent; }
a.bp-btn--gold { background: var(--bp-gold); border-color: var(--bp-gold); color: #000; }
a.bp-btn--gold:hover { background: #cfa64a; border-color: #cfa64a; color: #000; }
a.bp-btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
a.bp-btn--ghost:hover { border-color: #fff; color: #fff; }
.bp-btn--block { width: 100%; box-sizing: border-box; }

.bp-btn:focus-visible,
.bp-round:focus-visible,
.bo-filter__btn:focus-visible,
.bp-toc a:focus-visible,
.bp-faq__item summary:focus-visible {
    outline: 2px solid var(--bp-ink);
    outline-offset: 3px;
}

.bp-band .bp-btn:focus-visible { outline-color: #fff; }

.bp-chip {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--bp-ink);
    border: 1px solid var(--bp-soft);
    border-radius: 2px;
}

.bp-chip--gold { color: #f1d9a0; border-color: currentColor; }
a.bp-chip--gold { text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
a.bp-chip--gold:is(:hover, :focus-visible) { background: var(--bp-gold); border-color: var(--bp-gold); color: #000; }

/* Tooltip below a link (hero category chip): says where the click leads. Shown on hover after a short
   delay and at once on keyboard focus; the link points to it with aria-describedby. The hero clips
   its overflow, so a too wide tooltip is cut off instead of widening the page - check its right edge. */
.bp-tip { position: relative; display: inline-block; }
.bp-tip__text {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 5;
    width: max-content;
    max-width: min(440px, calc(100vw - 80px)); /* chip starts about 40px in on phones (hero padding) */
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bp-ink);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.bp-tip__text::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-bottom-color: #fff;
}
.bp-tip a:hover + .bp-tip__text { opacity: 1; visibility: visible; transition-delay: 0.3s, 0.3s; }
.bp-tip a:focus-visible + .bp-tip__text { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
@media (prefers-reduced-motion: reduce) {
    .bp-tip__text { transition: none; }
}

/* ---------- Hero: the one loud element ---------- */

.bp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(520px, 82vh, 860px);
    padding-top: var(--header-nav-height, 100px);
    background: var(--bp-graphite);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* #page-content prefix: the theme's "#page-content img { height: auto }" otherwise wins and
   lets cover images overflow their frames (measured 547x730 in a 547x410 frame). */
#page-content .bp-hero__img,
.bp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 68%; /* centre of the car in portrait shots; landscape pictures ignore it */
    z-index: -2;
}

.bp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 12, 15, 0.82) 0%, rgba(10, 12, 15, 0.55) 38%, rgba(10, 12, 15, 0) 68%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 28%),
        linear-gradient(0deg, rgba(10, 12, 15, 0.92) 0%, rgba(10, 12, 15, 0.55) 45%, rgba(10, 12, 15, 0) 75%);
}

/* Portrait hero: picture whole on the right, blurred copy behind everything. Layers:
   backdrop -3, shade -2, picture -1. */
.bp-hero__backdrop,
#page-content .bp-hero__backdrop {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(36px) brightness(0.5) saturate(0.8);
    z-index: -3;
}

.bp-hero--portrait { --bp-hero-pic: min(38vw, 540px); }
.bp-hero--portrait::after { z-index: -2; background: linear-gradient(90deg, rgba(10, 12, 15, 0.7) 0%, rgba(10, 12, 15, 0.25) 60%, rgba(10, 12, 15, 0.1) 100%); }

#page-content .bp-hero--portrait .bp-hero__img,
.bp-hero--portrait .bp-hero__img {
    inset: auto;
    top: calc(var(--header-nav-height, 100px) + 32px);
    bottom: clamp(32px, 4vw, 56px);
    right: max(var(--bp-gutter), calc((100vw - var(--bp-shell)) / 2));
    width: var(--bp-hero-pic);
    height: auto;
    object-position: 50% 60%;
    z-index: -1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Not padding on the shell: a wider padding-right breaks its centring (text started at 40px). */
.bp-hero--portrait .bp-hero__inner > * { max-width: calc(100% - var(--bp-hero-pic) - clamp(40px, 5vw, 80px)); }

.bp-hero__inner {
    width: 100%;
    padding-bottom: clamp(40px, 6vw, 80px);
}

.bp-breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.bp-breadcrumb a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
/* On the dark hero the line starts at 45 % white and lights up to solid white with the text. */
.bp-breadcrumb a:is(:hover, :focus) { color: #fff; text-decoration-color: #fff; }

.bp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 20px;
}

.bp-hero__meta time {
    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.bp-hero__title {
    max-width: 20ch;
    /* margin-left stays with the site-wide h1 side-bearing offset in style.css. */
    margin-top: 0;
    margin-bottom: 0;
    /* No font-size or line-height: the theme's h1 rule sizes every page title (62/72px, 30/36px at 1280px and below). */
    font-family: var(--font-h1);
    font-weight: normal;
    letter-spacing: -0.02em;
    color: #fff;
    hyphens: manual;
    text-wrap: balance;
}

.bp-hero__lead {
    max-width: 60ch;
    margin-top: 28px;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.bp-hero__lead p { margin: 0 0 0.6em; }
.bp-hero__lead p:last-child { margin-bottom: 0; }

/* ---------- Article body + aside ---------- */

.bp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(40px, 6vw, 96px);
    padding-top: var(--bp-space);
    padding-bottom: var(--bp-space);
}

.bp-content {
    max-width: 720px;
    font-size: 19px;
    line-height: 1.75;
    color: var(--bp-ink);
}

.bp-content p { margin: 0 0 1.2em; }

.bp-content h2 {
    margin-top: 0;
    scroll-margin-top: calc(var(--header-nav-height, 100px) + 24px);
}

/* Page builder text blocks (blog_body()) keep the chapter rhythm instead of the builder's 30-60px
   gap; the id is in the selector because css/fc-styles.css sets that gap with #flexible-content. */
#flexible-content.bp-content .post_content_block { margin: 0; }
#flexible-content.bp-content .post_content_block + .post_content_block { margin-top: clamp(56px, 7vw, 88px); }

/* Chapters: blog_render_segments() wraps every <h2> chapter in .bp-seg. A tinted box is the editor's
   own choice - format "Hinterlegter Abschnitt" (.section-bgr, styled in rte.css) - and gets the
   theme's wave-line picture (option blog_background_placeholder, passed as --bp-lines) here. */
.bp-seg { position: relative; }
.bp-content :is(.bp-seg, .section-bgr, .bp-break) + :is(.bp-seg, .section-bgr, .bp-break) { margin-top: clamp(56px, 7vw, 88px); }
.bp-seg > :last-child { margin-bottom: 0; }

.bp-seg--intro { font-size: 21px; line-height: 1.7; }

.bp-content .section-bgr {
    position: relative;
    padding: clamp(32px, 4.5vw, 56px);
    margin: 0 calc(clamp(32px, 4.5vw, 56px) * -1);
    isolation: isolate;
    overflow: hidden;
}

.bp-content .section-bgr::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bp-lines, none) right bottom / 140% auto no-repeat;
    opacity: 0.55;
    pointer-events: none;
}

.bp-break { margin: 0; }
/* Uncropped: a forced 16:9 frame cut the car's front and wheels. The article template offers landscape pictures only. */
.bp-break img,
#page-content .bp-break img { display: block; width: 100%; height: auto; }
.bp-break figcaption { margin-top: 12px; font-size: 14px; color: var(--bp-muted); }

.bp-content h3 {
    font-family: var(--font-h5);
    font-weight: normal;
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.25;
    margin: 1.8em 0 0.5em;
    color: var(--bp-ink);
}

.bp-content ul,
.bp-content ol { margin: 0 0 1.4em; padding-left: 0; list-style: none; }

.bp-content ul li,
.bp-content ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.45em;
}

.bp-content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 12px;
    height: 1px;
    background: var(--bp-soft);
}

.bp-content ol { counter-reset: bp; }
.bp-content ol li { counter-increment: bp; }
.bp-content ol li::before {
    content: counter(bp);
    position: absolute;
    left: 0;
    font-family: var(--font-h5);
    color: var(--bp-ink);
}


/* Same family as the body text: a Fira Sans strong read as a different, darker colour. */
.bp-content strong { font-family: 'Raleway-Medium', var(--font-regular); font-weight: normal; }

/* blockquote keeps the site's own quote style from rte.css (badge circle, padding) - the "Tipp" box. */
.bp-content blockquote { font-size: 21px; line-height: 1.6; }

.bp-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0 2em; font-size: 17px; }
.bp-content th,
.bp-content td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--bp-line); vertical-align: top; }
.bp-content th { font-family: var(--font-h6); font-weight: normal; }

.bp-content img { max-width: 100%; height: auto; }

.bp-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 48px !important; padding-top: 24px !important; border-top: 1px solid var(--bp-line); }
.bp-tags li { padding: 0 !important; margin: 0 !important; }
.bp-tags li::before { display: none; }
.bp-tags a { font-size: 15px; color: var(--bp-muted); text-decoration: none; }
.bp-tags a:hover { color: var(--bp-ink); }

.bp-aside__sticky {
    position: sticky;
    top: calc(var(--header-mini-nav-height, 69px) + 32px);
    display: grid;
    gap: 40px;
}

.bp-toc__title,
.bp-ctacard__title {
    font-family: var(--font-h5);
    font-size: 20px;
    margin: 0 0 14px;
    color: var(--bp-ink);
}

.bp-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--bp-line); }

.bp-toc a {
    display: block;
    padding: 7px 0 7px 18px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    font-size: 15px;
    line-height: 1.4;
    color: var(--bp-muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.bp-toc a:hover { color: var(--bp-ink); }
.bp-toc a.is-current { color: var(--bp-ink); border-left-color: var(--bp-ink); }

.bp-ctacard {
    padding: 28px;
    background: var(--bp-mist);
}

.bp-ctacard__text { font-size: 16px; line-height: 1.55; margin: 0 0 20px; color: var(--bp-ink); }

.bp-article a.bp-ctacard__phone {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 17px;
    color: var(--bp-ink);
    text-decoration: none;
}

/* ---------- Gallery: edge-to-edge film strip ---------- */

.bp-gallery { padding-bottom: var(--bp-space); }

.bp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.bp-section-head h2 { margin: 0; }

.bp-gallery__nav { display: flex; gap: 10px; }

.bp-round {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--bp-line);
    border-radius: 50%;
    background: var(--bp-paper);
    color: var(--bp-ink);
    font-size: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bp-round:hover,
.bp-round:focus { border-color: var(--bp-ink); background: var(--bp-paper); color: var(--bp-ink); }
.bp-round[disabled] { opacity: 0.35; cursor: default; }

.bp-gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 38vw, 560px);
    gap: 16px;
    margin: 0;
    padding: 0 max(var(--bp-gutter), calc((100vw - var(--bp-shell)) / 2)) 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--bp-gutter), calc((100vw - var(--bp-shell)) / 2));
    scrollbar-width: none;
}

.bp-gallery__track::-webkit-scrollbar { display: none; }

@media (pointer: fine) {
    .bp-gallery__track { cursor: grab; }
}

/* js/blog.js drags with the mouse; snapping is off while dragging or it fights the pointer. */
.bp-gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.bp-gallery__track.is-dragging a { pointer-events: none; }
.bp-gallery__item img { -webkit-user-drag: none; }

.bp-gallery__item { scroll-snap-align: start; }
/* Image out of flow: an in-flow portrait picture would stretch the aspect-ratio box. */
.bp-gallery__item a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bp-mist); }
#page-content .bp-gallery__item img,
.bp-gallery .bp-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.6s ease; }
.bp-gallery__item a:hover img { transform: scale(1.03); }

/* ---------- Dark contact band ---------- */

.bp-band {
    background: var(--bp-graphite);
    color: #fff;
    padding: clamp(56px, 7vw, 96px) 0;
}

.bp-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 40px;
    align-items: end;
}

.bp-article .bp-band__title,
.bo-page .bp-band__title { color: #fff; max-width: 16ch; }

.bp-band__lead { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 48ch; }

/* Three equal buttons in one row; stacked full width on phones. */
.bp-band__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-band__actions .bp-btn { width: 100%; box-sizing: border-box; padding: 0 12px; text-align: center; white-space: nowrap; }

/* ---------- FAQ ---------- */

.bp-faq { padding: var(--bp-space) 0 0; }

.bp-faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 6vw, 96px);
}

.bp-faq__list { border-top: 1px solid var(--bp-line); }

.bp-faq__item { border-bottom: 1px solid var(--bp-line); }

.bp-faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
}

.bp-faq__item summary::-webkit-details-marker { display: none; }

.bp-faq__item summary h3 {
    margin: 0;
    font-family: var(--font-h5);
    font-weight: normal;
    font-size: clamp(19px, 1.6vw, 22px);
    line-height: 1.35;
    color: var(--bp-ink);
}

.bp-faq__item summary::after {
    content: "";
    flex: 0 0 14px;
    height: 14px;
    background:
        linear-gradient(var(--bp-ink), var(--bp-ink)) center / 14px 1px no-repeat,
        linear-gradient(var(--bp-ink), var(--bp-ink)) center / 1px 14px no-repeat;
    transition: transform 0.25s;
}

.bp-faq__item[open] summary::after { transform: rotate(45deg); }

.bp-faq__answer { padding: 0 48px 24px 0; font-size: 18px; line-height: 1.7; color: var(--bp-ink); }
.bp-faq__answer p { margin: 0 0 0.8em; }

/* ---------- Inquiry form ---------- */

.bp-inquiry { padding: var(--bp-space) 0; scroll-margin-top: var(--header-mini-nav-height, 69px); }

.bp-inquiry__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 6vw, 96px);
}

.bp-inquiry__intro p { font-size: 18px; line-height: 1.6; color: var(--bp-ink); max-width: 36ch; }

.bp-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.bp-field { display: grid; gap: 8px; }
.bp-field--full { grid-column: 1 / -1; }
.bp-field > span { font-size: 15px; color: var(--bp-ink); }

.bp-field input,
.bp-field select,
.bp-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 54px;
    padding: 14px 16px;
    font: inherit;
    font-size: 17px;
    color: var(--bp-ink);
    background: var(--bp-mist);
    border: 1px solid transparent;
    border-bottom-color: var(--bp-soft);
    border-radius: 0;
    appearance: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.bp-field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--bp-ink) 50%), linear-gradient(135deg, var(--bp-ink) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.bp-field textarea { min-height: 150px; resize: vertical; }

.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--bp-ink);
}

.bp-form label.error,
.bp-form em.error,
.bp-form .error:not(input):not(select):not(textarea) { font-size: 14px; color: #b3261e; font-style: normal; }
.bp-field input.error,
.bp-field select.error,
.bp-field textarea.error { border-bottom-color: #b3261e; }

.bp-form__footer { display: flex; justify-content: flex-end; margin-top: 28px; }

/* ---------- Related posts + overview cards ---------- */

.bp-related { padding: var(--bp-space) 0; background: var(--bp-mist); }

.bp-link-arrow { color: var(--bp-ink); text-decoration: underline; text-decoration-color: var(--bp-soft); text-underline-offset: 4px; font-size: 17px; white-space: nowrap; }

.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 32px;
}

.bp-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }

.bp-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bp-line); }
#page-content .bp-card__img,
.bp-card .bp-card__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.6s ease; }
.bp-card__link:hover .bp-card__img { transform: scale(1.03); }

.bp-card__body { padding-top: 22px; }

.bp-card__meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--bp-muted); margin-bottom: 12px; }

.bp-article .bp-card__title,
.bo-page .bp-card__title {
    margin: 0 0 10px;
    font-family: var(--font-h5);
    font-weight: normal;
    font-size: 24px;
    line-height: 1.25;
    color: var(--bp-ink);
}

.bp-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bp-ink);
}

.bp-card--featured .bp-card__excerpt { -webkit-line-clamp: 5; }

/* Hover and keyboard focus draw a light frame around the whole card, the large first card included. The
   frame is a pseudo element outside the card's box (--bp-card-pad), so nothing moves when it appears;
   the pad stays below the page gutter (16px at 390px) and cannot widen the page. */
.bp-card { --bp-card-pad: clamp(10px, 1.6vw, 18px); }
.bp-card__link { position: relative; }
.bp-card__link::before {
    content: "";
    position: absolute;
    inset: calc(var(--bp-card-pad) * -1);
    border: 1px solid var(--bp-line);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.bp-card__link:is(:hover, :focus-visible)::before { opacity: 1; }


/* ---------- Overview ---------- */

.bo-intro {
    padding: calc(var(--header-nav-height, 100px) + clamp(48px, 7vw, 104px)) 0 clamp(40px, 5vw, 64px);
    background: var(--bp-mist);
}

.bo-intro__title {
    margin: 0;
    /* No font-size or line-height: the theme's h1 rule sizes every page title (62/72px, 30/36px at 1280px and below). */
    font-family: var(--font-h1);
    font-weight: normal;
    letter-spacing: -0.02em;
    color: var(--bp-ink);
}

/* Full shell width (operator decision): a longer intro stays short in height on large screens. */
.bo-intro__lead { max-width: none; margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--bp-ink); }
.bo-intro__lead p { margin: 0 0 1em; font-size: inherit; line-height: inherit; color: inherit; }
.bo-intro__lead p:last-child { margin-bottom: 0; }
.bo-intro__lead :is(h2, h3) { margin: 1.4em 0 0.5em; font-family: var(--font-h3); font-weight: normal; line-height: 1.25; color: var(--bp-ink); }
.bo-intro__lead h2 { font-size: clamp(22px, 2vw, 28px); }
.bo-intro__lead h3 { font-size: clamp(19px, 1.6vw, 22px); }
.bo-intro__lead :is(ul, ol) { margin: 0 0 1em; }
.bo-intro__lead li { margin-bottom: 0.4em; }
.bo-intro__service { margin: 20px 0 0; font-size: clamp(17px, 1.4vw, 20px); }

/* Second line of the overview <h1>: the services as search terms, inside the heading but smaller;
   three quarters of the content width (operator decision), full width on phones. */
/* The site-wide h1 offset (style.css) would move the smaller service line by 0.1em of the h1 size, twice its
   own side bearing, so .bo-intro__title keeps margin 0 and each line takes 0.1em of its own size. */
.bo-intro__main, .bo-intro__sub { display: block; margin-left: -0.1em; }
.bo-intro__sub { max-width: 75%; margin-top: 0.3em; font-size: max(20px, 0.45em); line-height: 1.3; letter-spacing: 0; }
@media (max-width: 767px) { .bo-intro__sub { max-width: none; } }
.bo-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; font-size: 15px; color: var(--bp-muted); }

.bo-grid .bp-card--featured { grid-column: 1 / -1; padding-bottom: clamp(8px, 2vw, 24px); }

.bp-card--featured .bp-card__link {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.bp-card--featured .bp-card__media { aspect-ratio: 16 / 10; }
.bp-card--featured .bp-card__body { padding-top: 0; }

.bo-page .bp-card--featured .bp-card__title { font-family: var(--font-h2); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; margin-bottom: 18px; }
.bp-card--featured .bp-card__excerpt { font-size: 18px; }

.bo-list { padding: clamp(40px, 5vw, 64px) 0 var(--bp-space); }

.bo-filter__title { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.04em; color: var(--bp-muted); }

/* Category pills are links (one crawlable address per category) in a plain list. */
.bo-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 48px;
    padding: 0;
    list-style: none;
}
.bo-filter li { margin: 0; padding: 0; }
.bo-filter li::before { content: none; }

.bo-filter__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--bp-ink);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--bp-line);
    border-radius: 22px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.bo-filter__btn:hover,
.bo-filter__btn:focus { border-color: var(--bp-ink); background: transparent; color: var(--bp-ink); }
.bo-filter__btn.is-active,
.bo-filter__btn.is-active:hover { background: var(--bp-ink); border-color: var(--bp-ink); color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .bp-layout { grid-template-columns: minmax(0, 1fr); }
    .bp-content { max-width: 760px; }
    .bp-aside__sticky { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
    .bp-toc { display: none; }
    .bp-aside__sticky:has(.bp-toc) { grid-template-columns: 1fr; }
    .bp-ctacard { max-width: 520px; }
    .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-band__inner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .bp-hero { min-height: 78vh; }
    .bp-hero--portrait { display: block; min-height: 0; }
    #page-content .bp-hero--portrait .bp-hero__img,
    .bp-hero--portrait .bp-hero__img {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        box-shadow: none;
    }
    /* Block layout here: the content-box shell with width 100% would add both gutters and clip the text. */
    .bp-hero--portrait .bp-hero__inner { width: auto; padding-top: 28px; padding-bottom: 40px; }
    .bp-hero--portrait .bp-hero__inner > * { max-width: none; }
    .bp-breadcrumb { margin-bottom: 18px; }
    .bp-content { font-size: 18px; }
    .bp-faq__inner,
    .bp-inquiry__inner { grid-template-columns: 1fr; }
    .bp-form__grid { grid-template-columns: 1fr; }
    .bp-form__footer .bp-btn { width: 100%; }
    .bp-grid { grid-template-columns: 1fr; gap: 44px; }
    .bp-card--featured .bp-card__link { grid-template-columns: 1fr; }
    .bp-gallery__track { grid-auto-columns: 82vw; }
    .bp-gallery__nav { display: none; }
    .bp-band__actions { grid-template-columns: 1fr; }
    .bp-faq__answer { padding-right: 0; }
    .bp-content .section-bgr { padding: 32px var(--bp-gutter); margin-inline: calc(var(--bp-gutter) * -1); }
    .bp-seg--intro { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .bp-card__img,
    .bp-gallery__item img,
    .bp-faq__item summary::after,
    .bp-card__link::before { transition: none; }
    .bp-gallery__track { scroll-behavior: auto; }
}
