/*
 * JOBO theme for Hublify Sites (library "jobo-theme", plugin project_jobo_hsite_jobo).
 *
 * Keeps the look of www.jobo.com - black header with the JOBO mark, red claim bar
 * ("analog passion since 1923"), Raleway for text, Cardo for the quiet serif accents,
 * grey product tiles with the product name on a black bar at the outer edge - and
 * rebuilds it on Bootstrap 5.3 with CSS variables, grid and container queries.
 *
 * Colours and fonts are tokens (--jobo-*); Bootstrap's own variables are mapped onto them
 * on .jobo (body), so components (buttons, links, dropdowns) follow the brand.
 */

/* ---------------------------------------------------------------- tokens */
:root {
    --jobo-red: #fe0000;
    --jobo-red-dark: #d00000;
    --jobo-black: #000;
    --jobo-ink: #2b2624;
    --jobo-text: #404040;
    --jobo-muted: #858585;
    --jobo-surface: #f0f0f0;
    --jobo-surface-2: #f7f7f7;
    --jobo-line: #dcdcdc;
    --jobo-white: #fff;

    --jobo-font-sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --jobo-font-serif: 'Cardo', Georgia, 'Times New Roman', serif;

    --jobo-container: 1320px;
    --jobo-edge: 3rem;            /* width of the black name bar on product tiles */
    --jobo-header-h: 5.5rem;
    --jobo-radius: 0;             /* JOBO is square-cut */
    --jobo-shadow: 0 .75rem 2rem rgba(0, 0, 0, .18);
}

.jobo {
    --bs-body-font-family: var(--jobo-font-sans);
    --bs-body-color: var(--jobo-text);
    --bs-body-bg: var(--jobo-white);
    --bs-emphasis-color: var(--jobo-ink);
    --bs-heading-color: var(--jobo-ink);
    --bs-link-color: var(--jobo-red);
    --bs-link-color-rgb: 254, 0, 0;
    --bs-link-hover-color: var(--jobo-red-dark);
    --bs-link-hover-color-rgb: 208, 0, 0;
    --bs-border-color: var(--jobo-line);
    --bs-border-radius: var(--jobo-radius);
    --bs-border-radius-sm: var(--jobo-radius);
    --bs-border-radius-lg: var(--jobo-radius);
    --bs-primary: var(--jobo-red);
    --bs-primary-rgb: 254, 0, 0;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.jobo h1, .jobo h2, .jobo h3, .jobo h4, .jobo .h1, .jobo .h2, .jobo .h3, .jobo .h4 {
    font-family: var(--jobo-font-sans);
    font-weight: 700;
    letter-spacing: -.005em;
    line-height: 1.2;
}
.jobo a { text-underline-offset: .2em; }
/* images from MAM (hublify.image().render_picture()) carry their intrinsic size: keep them in their box */
.jobo picture { display: block; max-width: 100%; }
.jobo picture img, .jobo-main img { max-width: 100%; height: auto; }
.jobo-tile__img picture, .jobo-mega__img picture { width: 100%; height: 100%; }
.jobo-tile__img picture img, .jobo-mega__img picture img { width: 100%; height: 100%; }
.jobo :focus-visible { outline: 3px solid var(--jobo-red); outline-offset: 2px; }

.jobo-container { max-width: var(--jobo-container); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.jobo-serif { font-family: var(--jobo-font-serif); }
.jobo-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--jobo-red); color: #fff; padding: .5rem 1rem; }
.jobo-skip:focus { left: 1rem; top: 1rem; }

/* buttons: red action button with chevron, black secondary */
.btn-jobo {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--jobo-red);
    --bs-btn-border-color: var(--jobo-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--jobo-red-dark);
    --bs-btn-hover-border-color: var(--jobo-red-dark);
    --bs-btn-active-bg: var(--jobo-red-dark);
    --bs-btn-font-weight: 700;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .65rem;
    letter-spacing: .04em;
}
.btn-jobo-dark {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--jobo-black);
    --bs-btn-border-color: var(--jobo-black);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--jobo-ink);
    --bs-btn-hover-border-color: var(--jobo-ink);
    --bs-btn-font-weight: 600;
}
.jobo-more { font-weight: 600; color: var(--jobo-red); text-decoration: none; white-space: nowrap; }
.jobo-more::after { content: "\203A"; margin-left: .35em; font-weight: 700; }
.jobo-more:hover { color: var(--jobo-red-dark); text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.jobo-header { position: sticky; top: 0; z-index: 1030; background: var(--jobo-black); color: #fff; }
.jobo-navbar { --bs-navbar-padding-y: .5rem; min-height: var(--jobo-header-h); }
.jobo-navbar .container-xl { max-width: var(--jobo-container); }
.jobo-brand { padding: 0; margin-right: 2rem; }
.jobo-brand img { display: block; height: 4.25rem; width: auto; }

.jobo-nav { gap: .25rem; }
.jobo-nav > .nav-item > .nav-link {
    --bs-nav-link-color: #fff;
    --bs-nav-link-hover-color: var(--jobo-red);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .9rem 1rem;
    position: relative;
}
.jobo-nav > .nav-item > .nav-link.text-none { text-transform: none; }
/* desktop: one line per item; between 992 and 1280 px the items close up so all six fit next to the logo */
@media (min-width: 992px) {
    .jobo-nav > .nav-item > .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
    .jobo-brand { margin-right: 1rem; }
    .jobo-brand img { height: 3.5rem; }
    .jobo-nav { gap: 0; }
    .jobo-nav > .nav-item > .nav-link { font-size: .95rem; padding-inline: .6rem; }
    .jobo-nav > .nav-item.in-trail > .nav-link::after { left: .6rem; right: .6rem; }
}
.jobo-nav > .nav-item > .nav-link:hover,
.jobo-nav > .nav-item > .nav-link:focus-visible,
.jobo-nav > .nav-item > .nav-link.show,
.jobo-nav > .nav-item.in-trail > .nav-link { color: var(--jobo-red); }
.jobo-nav > .nav-item.in-trail > .nav-link::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 3px; background: var(--jobo-red);
}
.jobo-nav .dropdown-toggle::after { display: none; }
/* an open panel is marked by the red text and the triangle, not by the focus ring (hover-open focuses the toggle);
   Bootstrap 5.3 puts .show on the toggle and the menu, not on the li */
.jobo-nav > .nav-item > .nav-link.show:focus-visible { outline: none; box-shadow: none; }
/* desktop: red triangle under the open top item, pointing up, sitting on the panel's red top edge */
@media (min-width: 992px) {
    .jobo-nav > .nav-item > .nav-link.show::before {
        content: ""; position: absolute; left: 50%; bottom: 0; z-index: 1001;
        border: 9px solid transparent; border-bottom-color: var(--jobo-red); border-top-width: 0;
        transform: translateX(-50%);
    }
}

/* simple dropdown (Unternehmen, Support) */
.jobo-dropdown {
    --bs-dropdown-bg: rgba(255, 255, 255, .98);
    --bs-dropdown-border-width: 0;
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-link-color: var(--jobo-ink);
    --bs-dropdown-link-hover-color: var(--jobo-red);
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-bg: transparent;
    --bs-dropdown-link-active-color: var(--jobo-red);
    --bs-dropdown-item-padding-y: .5rem;
    --bs-dropdown-item-padding-x: 1.25rem;
    border-top: 4px solid var(--jobo-red) !important;
    box-shadow: var(--jobo-shadow);
    min-width: 15rem;
    margin-top: 0 !important;
}
.jobo-dropdown .dropdown-item { font-weight: 500; }

/* mega menu (Produkte): category tiles with image and the featured products */
.jobo-mega {
    --bs-dropdown-bg: rgba(255, 255, 255, .98);
    --bs-dropdown-border-width: 0;
    --bs-dropdown-border-radius: 0;
    border-top: 4px solid var(--jobo-red) !important;
    box-shadow: var(--jobo-shadow);
    padding: 1.5rem;
    margin-top: 0 !important;
}
@media (min-width: 992px) {
    .jobo-mega { width: min(56rem, calc(100vw - 4rem)); }
}
.jobo-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.jobo-mega__cat {
    display: grid; grid-template-columns: 4.5rem 1fr; gap: .9rem; align-items: start;
    padding: 1rem; border-right: 1px dashed var(--jobo-line); border-bottom: 1px dashed var(--jobo-line);
    color: var(--jobo-ink); text-decoration: none;
}
.jobo-mega__img { width: 4.5rem; aspect-ratio: 1; background: var(--jobo-surface); overflow: hidden; }
.jobo-mega__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.jobo-mega__cat:hover .jobo-mega__img img { transform: scale(1.06); }
.jobo-mega__name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--jobo-ink); text-decoration: none; margin-bottom: .2rem; }
.jobo-mega__name:hover { color: var(--jobo-red); }
.jobo-mega__products { list-style: none; padding: 0; margin: 0; font-size: .85rem; line-height: 1.35; }
.jobo-mega__products a { color: var(--jobo-muted); text-decoration: none; }
.jobo-mega__products a:hover { color: var(--jobo-red); }
.jobo-mega__all { margin-top: 1rem; text-align: right; }

/* meta area right: language switch */
.jobo-meta { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.jobo-lang { display: flex; gap: .15rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.jobo-lang a, .jobo-lang span {
    color: rgba(255, 255, 255, .65); text-decoration: none; padding: .25rem .45rem; border: 1px solid transparent;
}
.jobo-lang a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.jobo-lang [aria-current] { color: #fff; border-color: var(--jobo-red); }

/* search: magnifier in the header opens a small form; the search page repeats the form */
.jobo-searchbox__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
    background: none; border: 1px solid transparent; color: rgba(255, 255, 255, .8); font-size: 1.05rem; padding: 0;
}
.jobo-searchbox__toggle:hover, .jobo-searchbox__toggle[aria-expanded="true"] { color: #fff; border-color: rgba(255, 255, 255, .4); }
.jobo-searchbox__menu { padding: .5rem; border-radius: 0; min-width: min(22rem, calc(100vw - 2rem)); }
.jobo-search { display: flex; gap: .5rem; }
.jobo-search .form-control { border-radius: 0; min-width: 0; }
.jobo-search .btn { border-radius: 0; white-space: nowrap; }
.jobo-search--page { max-width: 36rem; margin-top: 1rem; }
/* in the collapsed mobile menu the form stands open, the magnifier is not needed */
@media (max-width: 991.98px) {
    .jobo-meta { flex-wrap: wrap; }
    .jobo-searchbox { flex: 1 0 100%; }
    .jobo-searchbox__toggle { display: none; }
    .jobo-searchbox__menu { display: block; position: static; min-width: 0; padding: 0; border: 0; background: transparent; }
}

.jobo-navbar .navbar-toggler { border: 0; color: #fff; padding: .5rem; font-size: 1.75rem; line-height: 1; box-shadow: none; }
.jobo-navbar .navbar-toggler:focus-visible { outline: 3px solid var(--jobo-red); }

/* claim bar under the header */
.jobo-claim { background: var(--jobo-red); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; line-height: 1.9rem; text-transform: uppercase; }
.jobo-claim__since { text-transform: lowercase; }

@media (max-width: 991.98px) {
    :root { --jobo-header-h: 4rem; }
    .jobo-brand img { height: 3rem; }
    .jobo-navbar .navbar-collapse { margin: .5rem calc(-1 * clamp(1rem, 3vw, 2rem)) 0; padding: 0 clamp(1rem, 3vw, 2rem) 1rem; border-top: 1px solid rgba(255, 255, 255, .15); max-height: calc(100vh - var(--jobo-header-h)); overflow-y: auto; }
    .jobo-nav > .nav-item > .nav-link { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .jobo-nav > .nav-item.in-trail > .nav-link::after { display: none; }
    .jobo-mega, .jobo-dropdown { box-shadow: none; border-top: 0 !important; background: transparent; padding: 0 0 .5rem; --bs-dropdown-bg: transparent; --bs-dropdown-link-color: #fff; }
    .jobo-mega__grid { grid-template-columns: 1fr; }
    .jobo-mega__cat { grid-template-columns: 3rem 1fr; padding: .6rem 0; border: 0; color: #fff; }
    .jobo-mega__img { width: 3rem; }
    .jobo-mega__name { color: #fff; }
    .jobo-mega__products { display: none; }
    .jobo-mega__all { text-align: left; }
    .jobo-meta { margin: 1rem 0 0; }
    .jobo-claim__since { display: none; }
}

/* ---------------------------------------------------------------- main */
.jobo-main { min-height: 50vh; }
.jobo-crumbs { font-size: .85rem; color: var(--jobo-muted); padding-block: 1rem; }
.jobo-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.jobo-crumbs li + li::before { content: "\203A"; margin-right: .4rem; color: var(--jobo-red); font-weight: 700; }
.jobo-crumbs a { color: var(--jobo-muted); text-decoration: none; }
.jobo-crumbs a:hover { color: var(--jobo-red); }
.jobo-crumbs [aria-current] { color: var(--jobo-ink); }

.jobo-pagehead { padding-block: 1rem 2rem; }
.jobo-pagehead h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.jobo-kicker { font-family: var(--jobo-font-serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--jobo-muted); }

/* service band: free shipping, payment, dispatch time - serif italic as on jobo.com */
.jobo-service { background: var(--jobo-surface); padding-block: 1.75rem; }
.jobo-service__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: center; text-align: center; }
.jobo-service__item { font-family: var(--jobo-font-serif); font-style: italic; font-size: 1.25rem; color: var(--jobo-ink); }
.jobo-payments { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.jobo-payments img { height: 2rem; width: auto; background: #fff; padding: .15rem .3rem; }

/* ---------------------------------------------------------------- product tiles
 * jobo.com: two tiles per row, grey ground, dashed separators, the product name
 * on a black bar at the OUTER edge (left tile: left edge, read bottom-up; right
 * tile: right edge, read top-down), the bar turns red on hover. One column on
 * phones with the bar on the left.
 */
.jobo-tiles { display: grid; grid-template-columns: 1fr; background: var(--jobo-surface); list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--jobo-line); }
@media (min-width: 768px) {
    .jobo-tiles { grid-template-columns: 1fr 1fr; }
}
.jobo-tile { position: relative; container-type: inline-size; border-bottom: 1px dashed var(--jobo-line); background: var(--jobo-surface); transition: background-color .2s ease; }
.jobo-tile:hover { background: var(--jobo-surface-2); }
.jobo-tile__link { position: absolute; inset: 0; z-index: 1; }
.jobo-tile__bar {
    position: absolute; top: 0; bottom: 0; left: 0; width: var(--jobo-edge);
    background: var(--jobo-black); color: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center; transition: background-color .2s ease;
}
.jobo-tile__bar span {
    writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
    font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; max-height: 100%; overflow: hidden; text-overflow: ellipsis; padding-block: 1.25rem;
}
.jobo-tile:hover .jobo-tile__bar, .jobo-tile:focus-within .jobo-tile__bar { background: var(--jobo-red); }
.jobo-tile__body { padding: 1.75rem 1.75rem 2rem calc(var(--jobo-edge) + 1.75rem); min-height: 100%; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) {
    .jobo-tile:nth-child(even) { border-left: 1px dashed var(--jobo-line); }
    .jobo-tile:nth-child(even) .jobo-tile__bar { left: auto; right: 0; }
    .jobo-tile:nth-child(even) .jobo-tile__bar span { transform: none; }
    .jobo-tile:nth-child(even) .jobo-tile__body { padding-left: 1.75rem; padding-right: calc(var(--jobo-edge) + 1.75rem); }
}
.jobo-tile__badge { font-size: clamp(1.1rem, 4.5cqi, 1.75rem); font-weight: 300; color: var(--jobo-ink); min-height: 1.5em; margin: 0; }
.jobo-tile__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@container (min-width: 30rem) {
    .jobo-tile__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.jobo-tile__img { background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jobo-tile__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.jobo-tile:hover .jobo-tile__img img { transform: scale(1.04); }
.jobo-tile__name { font-size: 1.1rem; font-weight: 700; color: var(--jobo-ink); margin: 0 0 .5rem; }
/* from tablet width the name stands on the bar; the heading stays for screen readers */
@media (min-width: 768px) {
    .jobo-tile__name { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
.jobo-tile__actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }

.jobo-price { font-weight: 400; color: var(--jobo-ink); line-height: 1; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.jobo-price__cur { font-size: .9rem; }
.jobo-price__amount { font-size: clamp(2.25rem, 8cqi, 3.75rem); letter-spacing: -.01em; }
.jobo-tile .jobo-more { font-size: clamp(1rem, 3.5cqi, 1.5rem); }
.jobo-price__old { width: 100%; font-size: 1.1rem; color: var(--jobo-red); text-decoration: line-through; }
.jobo-price__note { font-size: .8rem; color: var(--jobo-muted); }

/* list head: count and sort */
.jobo-listhead { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1rem; }
.jobo-sort { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; font-size: .9rem; }
.jobo-sort a, .jobo-sort strong { padding: .3rem .7rem; text-decoration: none; color: var(--jobo-ink); border: 1px solid var(--jobo-line); }
.jobo-sort strong { background: var(--jobo-black); color: #fff; border-color: var(--jobo-black); font-weight: 600; }
.jobo-sort a:hover { border-color: var(--jobo-red); color: var(--jobo-red); }

/* ---------------------------------------------------------------- footer */
.jobo-footer { margin-top: 4rem; }
.jobo-footer__main { background: var(--jobo-black); color: #fff; padding-block: 3rem; }
.jobo-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.jobo-footer__title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: .9rem; }
.jobo-footer a { color: #fff; text-decoration: none; }
.jobo-footer a:hover { color: var(--jobo-red); }
.jobo-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.jobo-footer__social { display: flex; gap: .9rem; font-size: 1.4rem; }
.jobo-footer__social a { color: rgba(255, 255, 255, .75); }
.jobo-footer .jobo-payments { justify-content: flex-start; }
.jobo-footer__legal { background: #fff; padding-block: 1.75rem; text-align: center; }
.jobo-footer__legal ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; padding: 0; margin: 0 0 .75rem; }
.jobo-footer__legal a { color: var(--jobo-ink); }
.jobo-footer__legal a:hover { color: var(--jobo-red); }
.jobo-footer__address { font-size: .75rem; color: var(--jobo-muted); margin: 0; }
.jobo-footer__network { background: var(--jobo-ink); color: rgba(255, 255, 255, .6); font-size: .75rem; padding-block: .6rem; text-align: center; }
.jobo-footer__network a { color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------------- content pages (Hfy Content, Markdown) */
.jobo-entry { padding-bottom: 2rem; }
.jobo-prose { font-size: 1.05rem; line-height: 1.7; color: var(--jobo-text); overflow-wrap: break-word; }
.jobo-prose a { overflow-wrap: anywhere; }
.jobo-pagehead h1, .jobo-prose h2, .jobo-prose h3 { hyphens: auto; overflow-wrap: break-word; }
.jobo-prose > *:first-child { margin-top: 0; }
.jobo-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.5rem 0 1rem; }
.jobo-prose h3 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.jobo-prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.jobo-prose p, .jobo-prose ul, .jobo-prose ol { margin-bottom: 1rem; }
.jobo-prose a { color: var(--jobo-red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.jobo-prose a:hover { color: var(--jobo-red-dark); }
.jobo-prose img { display: block; margin: 1.5rem 0; }
.jobo-prose blockquote { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--jobo-surface); border-left: 5px solid var(--jobo-red); font-size: .95rem; }
.jobo-prose blockquote > *:last-child { margin-bottom: 0; }
.jobo-prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; }
.jobo-prose th, .jobo-prose td { border: 1px solid var(--jobo-line); padding: .5rem .75rem; vertical-align: top; }
.jobo-prose th { background: var(--jobo-surface); }
.jobo-prose--legal { font-size: 1rem; }
.jobo-prose--legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.jobo-prose--legal h3, .jobo-prose--legal h4 { font-size: 1.1rem; }
.jobo-prose a[href$=".pdf"]::before { content: "\F63E"; font-family: 'bootstrap-icons'; font-weight: 400; margin-right: .35em; text-decoration: none; display: inline-block; }

/* ---------------------------------------------------------------- site forms (hsite_form, _form.html.twig) */
.jobo-form { background: var(--jobo-surface); border-top: 4px solid var(--jobo-red); padding: clamp(1.25rem, 3vw, 2rem); }
.jobo-form .form-control, .jobo-form .form-select { border-radius: 0; }
.jobo-form .form-check-input:checked { background-color: var(--jobo-red); border-color: var(--jobo-red); }
.jobo-form .form-control:focus, .jobo-form .form-select:focus, .jobo-form .form-check-input:focus { border-color: var(--jobo-ink); box-shadow: 0 0 0 .2rem rgba(254, 0, 0, .2); }
.jobo-form__section { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px dashed var(--jobo-line); }
.jobo-form .form-check-label a, .jobo-form .small a { color: var(--jobo-red); }

/* ---------------------------------------------------------------- stage (jobo--stage, site/blocks/stage) */
/* Full-width picture stage; slides lie on top of each other and fade (site.js). Kicker in Cardo, title big and
   bold in Raleway, both white with a soft shadow - as on jobo.com. */
.jobo-stage { position: relative; background: var(--jobo-black); color: #fff; overflow: hidden; }
.jobo-stage--home { height: clamp(22rem, 72vh, 46rem); }
.jobo-stage--page { height: clamp(16rem, 52vh, 34rem); }
.jobo-stage__track { position: absolute; inset: 0; }
.jobo-stage__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.jobo-stage__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; z-index: 1; }
.jobo-stage__media, .jobo-stage__media picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.jobo-stage .jobo-stage__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--jobo-stage-focus, center); }
.jobo-stage__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 80%); }
.jobo-stage__text { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; pointer-events: none; }
.jobo-stage__text .jobo-container { width: 100%; }
.jobo-stage__kicker { display: block; font-family: var(--jobo-font-serif); font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.jobo .jobo-stage__title { margin: 0; color: #fff; font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.jobo-stage__subline { display: block; margin-top: .6rem; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.jobo-stage__link { position: absolute; inset: 0; z-index: 3; }
.jobo-stage__dots { position: absolute; z-index: 4; right: clamp(1rem, 3vw, 2rem); bottom: 1.25rem; display: flex; gap: .5rem; }
.jobo-stage__dot { width: .75rem; height: .75rem; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; opacity: .8; }
.jobo-stage__dot.is-active { background: var(--jobo-red); border-color: var(--jobo-red); opacity: 1; }
.jobo-stage__dot:hover { opacity: 1; }
/* with a tile band below, text and dots move up out of its way */
.jobo-home__stage .jobo-stage__dots, .jobo-catstage .jobo-stage__dots { bottom: clamp(7rem, 14vw, 11rem); }
.jobo-home__stage .jobo-stage__text, .jobo-catstage .jobo-stage__text { align-items: flex-start; padding-top: clamp(2rem, 9vh, 6rem); }

/* ---------------------------------------------------------------- tile band on the stage's lower edge */
.jobo-stage-band { position: relative; z-index: 5; margin-top: clamp(-11rem, -14vw, -6rem); padding-bottom: 2.5rem; }
.jobo-stage-band__heading { margin: 0 0 1rem; color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.jobo-stage-band__heading::after { content: ""; display: block; height: 1px; margin-top: .75rem; background: rgba(255,255,255,.7); }
/* small square tiles, centred - as the thumbnails on jobo.com; two per row on phones */
.jobo-stage-band__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 11rem)); justify-content: center; gap: clamp(.75rem, 2vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .jobo-stage-band__tiles { grid-template-columns: repeat(var(--jobo-band-cols, 4), minmax(0, 12rem)); } }
.jobo-stage-band__tile { display: flex; }
.jobo-stage-band__tile a { display: flex; flex-direction: column; width: 100%; color: var(--jobo-ink); text-decoration: none; background: #fff; box-shadow: var(--jobo-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.jobo-stage-band__tile a:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.5rem rgba(0,0,0,.28); }
.jobo-stage-band__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--jobo-surface); }
.jobo .jobo-stage-band__img picture, .jobo .jobo-stage-band__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.jobo-stage-band__name { flex: 1; display: flex; align-items: center; justify-content: center; padding: .6rem .75rem; font-size: clamp(.8rem, 1.3vw, 1rem); font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .03em; border-top: 4px solid var(--jobo-red); }
.jobo-stage-band__tile a:hover .jobo-stage-band__name { color: var(--jobo-red); }

/* ---------------------------------------------------------------- media + text rows (jobo--media-text) */
.jobo-split { padding-block: clamp(2rem, 5vw, 3.5rem); }
.jobo-split + .jobo-split { padding-top: 0; }
.jobo-split--surface { background: var(--jobo-surface); }
.jobo-split__text .jobo-prose h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 .9rem; }
.jobo-split__text .jobo-prose h2 + h2 { margin-top: -.4rem; font-weight: 400; font-family: var(--jobo-font-serif); }
.jobo-split__media img { width: 100%; height: auto; box-shadow: var(--jobo-shadow); }
.jobo-split__caption { margin-top: .5rem; font-size: .85rem; color: var(--jobo-muted); }

/* ---------------------------------------------------------------- video + text (jobo--video-text) */
.jobo-video-text { padding-block: clamp(2rem, 5vw, 3.5rem); }
.jobo-video-text__frame { background: var(--jobo-black); box-shadow: var(--jobo-shadow); }
.jobo-video-text__heading { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }

/* ---------------------------------------------------------------- picture with a caption row (jobo--image-captions) */
.jobo-image-captions { padding-block: clamp(2rem, 5vw, 3.5rem); }
.jobo-image-captions img { width: 100%; height: auto; }
.jobo-image-captions__row { display: grid; grid-template-columns: repeat(var(--jobo-caption-cols, 3), 1fr); gap: 1rem; margin-top: .75rem; font-size: clamp(.8rem, 1.6vw, 1rem); color: var(--jobo-ink); text-align: center; }
.jobo-image-captions__full { width: 100%; }

/* ---------------------------------------------------------------- category page head (stage + intro rows) */
.jobo-catstage { margin-bottom: 0; }
.jobo-catintro .jobo-split:first-child { padding-top: .5rem; }
.jobo-catintro + .jobo-listhead, .jobo-catintro + * { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
    .jobo-stage__slide, .jobo-stage__slide.is-active { transition: none; }
    .jobo-stage-band__tile a { transition: none; }
}

/* ---------------------------------------------------------------- product detail (site/product) */
.jobo-product { padding-bottom: 2.5rem; }
.jobo-gallery__stage { position: relative; background: #fff; border: 1px solid var(--jobo-line); }
.jobo-gallery__slide { margin: 0; }
.jobo-gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.jobo .jobo-gallery__zoom img { width: 100%; height: clamp(18rem, 42vw, 34rem); object-fit: contain; max-width: none; }
.jobo-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.25rem; display: grid; place-items: center; }
.jobo-gallery__nav:hover { background: var(--jobo-red); }
.jobo-gallery__nav--prev { left: 0; }
.jobo-gallery__nav--next { right: 0; }
.jobo-gallery__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.jobo-gallery__thumb { width: 5.5rem; aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; background: #fff; outline-offset: 0; }
.jobo .jobo-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.jobo-gallery__thumb.is-active, .jobo-gallery__thumb:hover { border-color: var(--jobo-red); }

.jobo-buy { position: sticky; top: calc(var(--jobo-header-h) + 1rem); }
.jobo .jobo-buy__name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }
.jobo-buy__subtitle { font-family: var(--jobo-font-serif); font-style: italic; font-size: 1.15rem; color: var(--jobo-ink); margin-bottom: .75rem; }
.jobo-buy__slogan { display: inline-block; background: var(--jobo-black); color: #fff; padding: .35rem .75rem; font-weight: 600; }
.jobo-buy__short { margin: 1rem 0; }
.jobo-buy__price { padding: 1rem 0; border-top: 1px solid var(--jobo-line); border-bottom: 4px solid var(--jobo-red); margin-bottom: 1rem; }
.jobo-buy__action { margin-bottom: 1rem; }
.jobo-buy__facts { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .95rem; }
.jobo-buy__facts li { display: flex; gap: .5rem; align-items: baseline; padding: .2rem 0; }

/* rich text from the PIM: tags are allow-listed, inline styles of the old editor are overridden */
.jobo-pim, .jobo-pim * { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.jobo-pim p, .jobo-pim div { margin: 0 0 .75rem !important; text-align: left !important; }
.jobo-pim h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important; font-weight: 700; margin: 0 0 .8rem !important; color: var(--jobo-ink) !important; }
.jobo-pim h3, .jobo-pim h4 { font-size: 1.15rem !important; font-weight: 700; }
.jobo-pim a { color: var(--jobo-red) !important; }
.jobo-pim h2:empty { display: none; }

.jobo-prdtabs { background: var(--jobo-surface); padding-top: 1.5rem; margin-top: 1rem; }
.jobo-prdtabs__nav { gap: .25rem; border-bottom: 2px solid var(--jobo-black); }
.jobo-prdtabs__nav .nav-link { color: var(--jobo-ink); background: transparent; border: 0; border-radius: 0; padding: .75rem 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.jobo-prdtabs__nav .nav-link:hover { color: var(--jobo-red); }
.jobo-prdtabs__nav .nav-link.active { background: var(--jobo-black); color: #fff; }
.jobo-prdtabs .tab-content { background: #fff; }
.jobo-prdtabs .tab-pane { min-height: 8rem; }
.jobo-prdtabs .jobo-split:first-child { padding-top: 2rem; }

.jobo-techlines { max-width: 52rem; }
.jobo-techlines__head { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; padding-bottom: .35rem; border-bottom: 2px solid var(--jobo-red); }
.jobo-techlines__row { padding: .3rem 0; border-bottom: 1px solid var(--jobo-line); }
.jobo-techlines__gap { height: 1.25rem; }
.jobo-techlines__row--ghs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.jobo-ghs { height: 4.5rem; width: auto; }

.jobo-refs p, .jobo-refs div { margin-bottom: .4rem !important; }
.jobo-dl { display: inline-flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline; }
.jobo-dl__title { font-weight: 600; }
.jobo-dl__link::before { content: "\F63E"; font-family: 'bootstrap-icons' !important; margin-right: .3rem; }
.jobo-dl__type { font-size: .75rem; font-weight: 700; color: var(--jobo-muted) !important; border: 1px solid var(--jobo-line); padding: 0 .3rem; }
.jobo-doclist { list-style: none; padding: 0; margin: 1rem 0 0; }
.jobo-doclist li { padding: .3rem 0; }

.jobo-related { padding-top: 2.5rem; }
.jobo .jobo-related__title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 1.25rem; }

.jobo-zoom .modal-content { background: rgba(0,0,0,.94); }
.jobo-zoom .modal-body { display: grid; place-items: center; padding: 3rem 1rem 1rem; }
.jobo-zoom__img { max-width: 100%; max-height: calc(100vh - 5rem); object-fit: contain; }
.jobo-zoom__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

@media (max-width: 991.98px) { .jobo-buy { position: static; } }

/* ---------------------------------------------------------------- 404 / placeholders */
.jobo-error { padding-block: 5rem; text-align: center; }
.jobo-error__code { font-size: clamp(4rem, 12vw, 9rem); font-weight: 700; color: var(--jobo-red); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
    .jobo *, .jobo *::before, .jobo *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- cart + checkout (hfy_cart islands) */
.jobo-header__cart { display: flex; align-items: center; margin-left: auto; margin-right: .25rem; }
@media (min-width: 992px) { .jobo-header__cart { margin-left: .5rem; margin-right: 0; } }
.jobo-minicart__toggle {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: #fff; font-size: 1.35rem;
}
.jobo-minicart__toggle:hover, .jobo-minicart__toggle[aria-expanded="true"] { color: var(--jobo-red); }
.jobo-minicart__count {
    position: absolute; top: .1rem; right: -.1rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem;
    border-radius: .6rem; background: var(--jobo-red); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.2rem;
}
.jobo-minicart__menu { width: min(22rem, calc(100vw - 2rem)); padding: 1rem; border-top: 4px solid var(--jobo-red) !important; }
.jobo-minicart__lines { list-style: none; margin: 0 0 .75rem; padding: 0; max-height: 16rem; overflow: auto; font-size: .9rem; }
.jobo-minicart__lines li { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; border-bottom: 1px solid var(--jobo-line); }
.jobo-minicart__sum { display: flex; justify-content: space-between; margin-bottom: .75rem; }

.jobo-flash { padding-top: 1rem; }
.jobo-flash .alert { margin-bottom: .5rem; }

.jobo-addcart { display: flex; gap: .5rem; }
.jobo-addcart__qty { width: 5.5rem; flex: 0 0 auto; text-align: center; }

.jobo-cartpage { padding-block: 1.5rem 3rem; }
.jobo-page-title { margin-bottom: 1.25rem; }
.jobo-cartbox { background: #fff; border: 1px solid var(--jobo-line); padding: 1.25rem; margin-bottom: 1.5rem; }
.jobo-cartbox h2.h6 { letter-spacing: .04em; margin-bottom: .75rem; }
.jobo-cart__lines tr.is-off td { opacity: .6; }
.jobo-cart__lines a { color: inherit; font-weight: 600; text-decoration: none; }
.jobo-cart__lines a:hover { color: var(--jobo-red); }
.jobo-qty { display: flex; gap: .35rem; align-items: center; }
.jobo-qty input { width: 4.5rem; }

.jobo-sums { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; margin-bottom: 1rem; }
.jobo-sums dt { font-weight: 400; }
.jobo-sums dd { margin: 0; text-align: right; white-space: nowrap; }
.jobo-sums .jobo-sums__total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--jobo-line); padding-top: .4rem; margin-top: .2rem; }
.jobo-sums .jobo-sums__muted { color: var(--bs-secondary-color); font-size: .85rem; }

.jobo-step__title { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin-bottom: 1rem; }
.jobo-step__nr {
    display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem;
    background: var(--jobo-red); color: #fff; font-weight: 700; font-size: 1rem;
}
.jobo-addr__delivery summary { cursor: pointer; font-weight: 600; }
.jobo-pay { border: 1px solid var(--jobo-line); padding: .75rem .75rem .75rem 2.25rem; }
@media (min-width: 992px) { .jobo-step--review { position: sticky; top: 9rem; } }
.jobo-done .bi { margin-right: .3rem; }
@media (max-width: 991.98px) {
    /* phones: the cart sits left of the menu button, so a right-aligned dropdown would leave the screen */
    .jobo-minicart__menu.show { position: fixed !important; top: 4.25rem !important; left: 1rem !important; right: 1rem !important; transform: none !important; width: auto; }
}
