.hhb-homepage { margin-top: -1px; }

/* Freier 12-Spalten-Layout-Editor */
.hhb-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding-left: var(--hhb-pad-left-d, 0px);
    padding-right: var(--hhb-pad-right-d, 0px);
}
.hhb-layout-gap--auto { column-gap: 24px; row-gap: 24px; }
.hhb-layout-gap--manual { column-gap: var(--hhb-gap-x, 24px); row-gap: var(--hhb-gap-y, 24px); }

/* Vollflächige Builder-Layouts: aus dem Shopware .container-main ausbrechen, ohne andere Seiteninhalte zu verbreitern. */
.hhb-layout--full-width {
    width: auto;
    max-width: none !important;
    margin-left: calc((100vw - 100%) / -2) !important;
    margin-right: calc((100vw - 100%) / -2) !important;
}

@supports (width: 100dvw) {
    .hhb-layout--full-width {
        margin-left: calc((100dvw - 100%) / -2) !important;
        margin-right: calc((100dvw - 100%) / -2) !important;
    }
}

.hhb-layout-item {
    min-width: 0;
    min-height: var(--hhb-d-minh, 0px);
    order: var(--hhb-d-order, 0);
}
.hhb-layout--free .hhb-layout-item {
    grid-column: var(--hhb-d-col, 1) / span var(--hhb-d-w, 12);
    grid-row-start: var(--hhb-d-row, auto);
}
.hhb-layout--auto { grid-auto-flow: row dense; }
.hhb-layout--auto .hhb-layout-item {
    grid-column: span var(--hhb-d-w, 12);
}
.hhb-block-spacing--manual {
    margin: var(--hhb-mt, 0px) var(--hhb-mr, 0px) var(--hhb-mb, 0px) var(--hhb-ml, 0px);
}
.hhb-layout-item > .hhb-section { min-height: inherit; height: 100%; }
.hhb-layout-item--rounded > .hhb-section,
.hhb-layout-item--rounded > .hhb-hero,
.hhb-layout-item--rounded > .hhb-image-design { border-radius: var(--hhb-block-radius, 18px); }
.hhb-layout-item--rounded:not(.hhb-layout-item--device_search) > .hhb-section,
.hhb-layout-item--rounded:not(.hhb-layout-item--device_search) > .hhb-hero,
.hhb-layout-item--rounded:not(.hhb-layout-item--device_search) > .hhb-image-design { overflow: hidden; }
.hhb-layout-item--rounded.hhb-layout-item--device_search .hhb-device-search-card { border-radius: var(--hhb-block-radius, 18px); }
.hhb-layout-item > .hhb-hero {
    min-height: var(--hhb-d-minh, var(--hhb-min-height, 520px));
    height: 100%;
}

@media (min-width: 1200px) {
    .hhb-layout-item.hhb-hide-desktop { display: none !important; }
}

@media (max-width: 1199.98px) {
    .hhb-layout {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding-left: var(--hhb-pad-left-t, 0px);
        padding-right: var(--hhb-pad-right-t, 0px);
    }
    .hhb-layout-gap--auto { column-gap: 18px; row-gap: 18px; }
    .hhb-layout-item { min-height: var(--hhb-t-minh, 0px); order: var(--hhb-t-order, 0); }
    .hhb-layout-item.hhb-hide-tablet { display: none !important; }
    .hhb-layout--free .hhb-layout-item {
        grid-column: var(--hhb-t-col, 1) / span var(--hhb-t-w, 6);
        grid-row-start: var(--hhb-t-row, auto);
    }
    .hhb-layout--auto .hhb-layout-item { grid-column: span var(--hhb-t-w, 6); }
    .hhb-layout-item > .hhb-hero { min-height: var(--hhb-t-minh, var(--hhb-min-height, 520px)); }
}

@media (max-width: 767.98px) {
    .hhb-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: var(--hhb-pad-left-m, 0px);
        padding-right: var(--hhb-pad-right-m, 0px);
    }
    .hhb-layout-gap--auto { column-gap: 14px; row-gap: 14px; }
    .hhb-layout-item { min-height: var(--hhb-m-minh, 0px); order: var(--hhb-m-order, 0); }
    .hhb-layout-item.hhb-hide-tablet { display: block !important; }
    .hhb-layout-item.hhb-hide-mobile { display: none !important; }
    .hhb-layout--free .hhb-layout-item {
        grid-column: var(--hhb-m-col, 1) / span var(--hhb-m-w, 2);
        grid-row-start: var(--hhb-m-row, auto);
    }
    .hhb-layout--auto .hhb-layout-item { grid-column: span var(--hhb-m-w, 2); }
    .hhb-layout-item > .hhb-hero { min-height: var(--hhb-m-minh, min(var(--hhb-min-height, 520px), 640px)); }
}

.hhb-section { padding: var(--hhb-pt, 56px) 0 var(--hhb-pb, 56px); }
.hhb-section-title { margin: 0 0 28px; font-size: clamp(1.7rem, 2.5vw, 2.35rem); font-weight: 750; line-height: 1.15; }

.hhb-hero {
    position: relative;
    min-height: var(--hhb-min-height, 520px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--hhb-hero-bg, #0d315a);
    background-image: var(--hhb-hero-desktop);
    background-position: center;
    background-size: cover;
}
.hhb-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--hhb-overlay, .35)); }
.hhb-hero__inner { position: relative; z-index: 1; width: 100%; }
.hhb-hero__content { width: 100%; max-width: var(--hhb-content-width, 760px); padding: 64px 0; }
.hhb-hero h1 { color: inherit; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.hhb-hero .hhb-lead { font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 680px; margin-bottom: 26px; }
.hhb-text-light { color: #fff; }
.hhb-text-dark { color: #17202b; }
.hhb-badge { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); font-weight: 700; margin-bottom: 18px; }
.hhb-align-center .hhb-hero__content { margin: 0 auto; text-align: center; }
.hhb-align-center .hhb-lead { margin-left: auto; margin-right: auto; }
.hhb-align-right .hhb-hero__content { margin-left: auto; text-align: right; }
.hhb-align-right .hhb-lead { margin-left: auto; }

.hhb-banner__box { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 32px; border-radius: 18px; background: #f4f6f8; }
.hhb-banner__box h2 { margin-bottom: 8px; }
.hhb-banner__box p { margin: 0; }
.hhb-banner__box--dark { background: #202c38; color: #fff; }
.hhb-banner__box--dark h2 { color: #fff; }
.hhb-banner__box--accent { background: #eaf3ff; border: 1px solid #c2dcf7; }

.hhb-image-text__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.hhb-image-text__grid--right .hhb-image-text__media { order: 2; }
.hhb-image-text__media { min-height: 360px; overflow: hidden; border-radius: var(--hhb-image-radius, 18px); background: #f1f4f7; }
.hhb-image-text__media img { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 620px; }
.hhb-image-text__content .hhb-section-title { margin-bottom: 20px; }
.hhb-image-text__content .btn { margin-top: 18px; }

.hhb-text__inner { max-width: var(--hhb-text-width, 980px); }
.hhb-content-align-center { margin-left: auto; margin-right: auto; text-align: center; }
.hhb-richtext { line-height: 1.72; }
.hhb-richtext > :last-child { margin-bottom: 0; }

.hhb-category-card,
.hhb-benefit { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid rgba(0,0,0,.09); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hhb-category-card:hover,
.hhb-benefit:hover { color: inherit; transform: translateY(-2px); border-color: rgba(15,79,152,.25); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.hhb-category-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.hhb-benefit__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #edf5ff; color: #0f4f98; font-size: 20px; font-weight: 800; }
.hhb-benefit strong { font-size: 1.08rem; }
.hhb-benefit__text { color: #5e6772; }

@media (max-width: 991.98px) {
    .hhb-image-text__grid { gap: 32px; }
}

@media (max-width: 767.98px) {
    .hhb-section { padding: min(var(--hhb-pt, 38px), 48px) 0 min(var(--hhb-pb, 38px), 48px); }
    .hhb-hero { background-image: var(--hhb-hero-mobile); min-height: min(var(--hhb-min-height, 520px), 640px); }
    .hhb-hero__content { padding: 48px 0; }
    .hhb-banner__box { align-items: flex-start; flex-direction: column; padding: 24px; }
    .hhb-image-text__grid { grid-template-columns: 1fr; }
    .hhb-image-text__grid--right .hhb-image-text__media { order: 0; }
    .hhb-image-text__media, .hhb-image-text__media img { min-height: 260px; }
}

/* Kompakte Produktdarstellung */
.hhb-section-title--compact { margin-bottom: 20px; }
.hhb-products--compact,
.hhb-product-slider,
.hhb-daily-topseller { --hhb-pt: 36px; --hhb-pb: 36px; }

.hhb-product-grid-compact {
    display: grid;
    grid-template-columns: repeat(var(--hhb-product-cols, 4), minmax(0, 1fr));
    gap: 18px;
}

.hhb-product-card-compact {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 49, 90, .13);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hhb-product-card-compact:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 79, 152, .28);
    box-shadow: 0 10px 26px rgba(22, 42, 66, .08);
}
.hhb-product-card-compact__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 165px;
    padding: 12px;
    background: #f7f9fb;
}
.hhb-product-card-compact__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hhb-product-card-compact__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2f5, #dfe6ed);
}
.hhb-product-card-compact__body {
    display: flex;
    flex-direction: column;
    min-height: 142px;
    padding: 14px 15px 15px;
}
.hhb-product-card-compact__number {
    align-self: flex-start;
    margin-bottom: 7px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f4f7;
    color: #617080;
    font-size: 11px;
    line-height: 1.2;
}
.hhb-product-card-compact__name {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: #14263b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.42;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hhb-product-card-compact__name:hover { color: #0f4f98; }
.hhb-product-card-compact__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    margin-top: auto;
    padding-top: 13px;
}
.hhb-product-price {
    min-width: 0;
    max-width: 100%;
    color: #c90018;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.15;
    white-space: nowrap;
}

.hhb-product-card-compact__link {
    margin-left: auto;
    color: #0f4f98;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Produkt-Slider */
.hhb-slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.hhb-slider-controls { display: flex; gap: 8px; margin-bottom: 20px; }
.hhb-slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 49, 90, .18);
    border-radius: 50%;
    background: #fff;
    color: #0d315a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.hhb-slider-button:hover { border-color: #0f4f98; color: #0f4f98; }
.hhb-slider-viewport {
    --hhb-slider-visible: var(--hhb-slider-visible-d, 4);
    overflow: hidden;
    scroll-behavior: smooth;
    outline: none;
}
.hhb-slider-track {
    display: flex;
    gap: 18px;
    min-width: 0;
}
.hhb-slider-item {
    flex: 0 0 calc((100% - (var(--hhb-slider-visible) - 1) * 18px) / var(--hhb-slider-visible));
}

/* Kompakte Topseller-Ansicht: Bild + Name + Preis */
.hhb-topseller-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.hhb-topseller-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 12px 12px 15px;
    border: 1px solid rgba(15, 49, 90, .13);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hhb-topseller-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 79, 152, .28);
    box-shadow: 0 10px 26px rgba(22, 42, 66, .08);
    color: inherit;
}
.hhb-topseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: #0d315a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.hhb-topseller-card__image {
    display: flex;
    width: 100%;
    height: var(--hhb-top-image-height, 170px);
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.hhb-topseller-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hhb-topseller-name {
    display: -webkit-box;
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    overflow: hidden;
    color: #14263b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hhb-topseller-price {
    margin-top: 8px;
    color: #c90018;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1;
}

@media (max-width: 1199.98px) {
    .hhb-product-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hhb-slider-viewport { --hhb-slider-visible: var(--hhb-slider-visible-t, 3); }
}

@media (max-width: 767.98px) {
    .hhb-product-grid-compact { grid-template-columns: repeat(var(--hhb-product-cols-mobile, 2), minmax(0, 1fr)); gap: 12px; }
    .hhb-product-card-compact__image { height: 135px; padding: 8px; }
    .hhb-product-card-compact__body { min-height: 128px; padding: 12px; }
    .hhb-product-price { font-size: 17px; }
    .hhb-product-card-compact__link { display: none; }
    .hhb-slider-viewport { --hhb-slider-visible: var(--hhb-slider-visible-m, 1); }
    .hhb-slider-track { gap: 12px; }
    .hhb-slider-item { flex-basis: calc((100% - (var(--hhb-slider-visible) - 1) * 12px) / var(--hhb-slider-visible)); }
    .hhb-topseller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hhb-topseller-card__image { height: min(var(--hhb-top-image-height, 170px), 150px); }
}



/* FAQ */
.hhb-faq__inner { max-width: 980px; margin: 0 auto; }
.hhb-faq__intro { margin: -12px 0 24px; color: #5e6772; line-height: 1.65; }
.hhb-faq__list { display: grid; gap: 12px; }
.hhb-faq__item { overflow: hidden; border: 1px solid rgba(15, 49, 90, .13); border-radius: 14px; background: #fff; }
.hhb-faq__question { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: #14263b; font-size: 16px; font-weight: 750; cursor: pointer; list-style: none; }
.hhb-faq__question::-webkit-details-marker { display: none; }
.hhb-faq__question:hover { color: #0f4f98; }
.hhb-faq__icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.hhb-faq__icon::before, .hhb-faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .18s ease; }
.hhb-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.hhb-faq__item[open] .hhb-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.hhb-faq__answer { padding: 0 20px 20px; color: #4d5b69; }
.hhb-faq__answer > :last-child { margin-bottom: 0; }

/* Freie Bild-/Designfläche */
.hhb-image-design {
    width: 100%;
    min-height: var(--hhb-design-minh, 420px);
    overflow: hidden;
    border-radius: var(--hhb-design-radius, 0px);
    background: var(--hhb-design-bg, transparent);
}
.hhb-image-design__stage {
    position: relative;
    width: 100%;
    min-height: inherit;
    box-sizing: border-box;
}

.hhb-image-design__background-image-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hhb-image-design__background-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: var(--hhb-design-bg-img-fit, cover);
    object-position: var(--hhb-design-bg-img-x, center) var(--hhb-design-bg-img-y, center);
}

/* Bild und Text liegen als unabhängig verschiebbare Ebenen übereinander. */
.hhb-image-design__image-layer,
.hhb-image-design__text-layer,
.hhb-image-design__button-layer {
    position: absolute;
    inset: 0;
    display: flex;
    box-sizing: border-box;
    padding: var(--hhb-design-pad, 32px);
}

.hhb-image-design__image-layer {
    z-index: 1;
    pointer-events: none;
}
.hhb-image-design__text-layer {
    z-index: 2;
    pointer-events: none;
}
.hhb-image-design__button-layer {
    z-index: 3;
    pointer-events: none;
}

.hhb-image-design__x-left { justify-content: flex-start; }
.hhb-image-design__x-center { justify-content: center; }
.hhb-image-design__x-right { justify-content: flex-end; }
.hhb-image-design__y-top { align-items: flex-start; }
.hhb-image-design__y-center { align-items: center; }
.hhb-image-design__y-bottom { align-items: flex-end; }

.hhb-image-design__image {
    display: block;
    width: var(--hhb-design-img-d, 60%);
    max-width: 100%;
    max-height: var(--hhb-design-img-maxh, 560px);
    border-radius: var(--hhb-design-img-radius, 18px);
    transform: translate(var(--hhb-design-img-x-d, 0px), var(--hhb-design-img-y-d, 0px));
}
.hhb-image-design__fit-contain { height: auto; object-fit: contain; }
.hhb-image-design__fit-cover { height: var(--hhb-design-img-maxh, 560px); object-fit: cover; }

/* Frei positionierbarer HTML-Text-Layer */
.hhb-image-design__text-x-left { justify-content: flex-start; }
.hhb-image-design__text-x-center { justify-content: center; }
.hhb-image-design__text-x-right { justify-content: flex-end; }
.hhb-image-design__text-y-top { align-items: flex-start; }
.hhb-image-design__text-y-center { align-items: center; }
.hhb-image-design__text-y-bottom { align-items: flex-end; }

.hhb-image-design__text {
    width: var(--hhb-design-text-w-d, 45%);
    max-width: 100%;
    color: var(--hhb-design-text-color, #fff);
    line-height: 1.35;
    transform: translate(var(--hhb-design-text-x-d, 0px), var(--hhb-design-text-y-d, 0px)) scale(var(--hhb-design-text-scale-d, 1));
    pointer-events: auto;
}
.hhb-image-design__text-layer.hhb-image-design__text-x-left .hhb-image-design__text { transform-origin: left center; }
.hhb-image-design__text-layer.hhb-image-design__text-x-center .hhb-image-design__text { transform-origin: center center; }
.hhb-image-design__text-layer.hhb-image-design__text-x-right .hhb-image-design__text { transform-origin: right center; }

.hhb-image-design__text-align-left { text-align: left; }
.hhb-image-design__text-align-center { text-align: center; }
.hhb-image-design__text-align-right { text-align: right; }

.hhb-image-design__text > :first-child { margin-top: 0; }
.hhb-image-design__text > :last-child { margin-bottom: 0; }
.hhb-image-design__text a { color: inherit; }

/* Frei positionierbare CTA-Buttons */
.hhb-image-design__button-x-left { justify-content: flex-start; }
.hhb-image-design__button-x-center { justify-content: center; }
.hhb-image-design__button-x-right { justify-content: flex-end; }
.hhb-image-design__button-y-top { align-items: flex-start; }
.hhb-image-design__button-y-center { align-items: center; }
.hhb-image-design__button-y-bottom { align-items: flex-end; }

.hhb-image-design__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--hhb-design-button-py, 12px) var(--hhb-design-button-px, 24px);
    border: var(--hhb-design-button-border-w, 0px) solid var(--hhb-design-button-border, var(--hhb-design-button-bg, #189eff));
    border-radius: var(--hhb-design-button-radius, 8px);
    background: var(--hhb-design-button-bg, #189eff);
    color: var(--hhb-design-button-color, #fff);
    font-size: var(--hhb-design-button-font, 16px);
    font-weight: var(--hhb-design-button-weight, 700);
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transform: translate(var(--hhb-design-button-x-d, 0px), var(--hhb-design-button-y-d, 0px)) scale(var(--hhb-design-button-scale-d, 1));
    pointer-events: auto;
}
.hhb-image-design__button-layer.hhb-image-design__button-x-left .hhb-image-design__button { transform-origin: left center; }
.hhb-image-design__button-layer.hhb-image-design__button-x-center .hhb-image-design__button { transform-origin: center center; }
.hhb-image-design__button-layer.hhb-image-design__button-x-right .hhb-image-design__button { transform-origin: right center; }
.hhb-image-design__button:hover {
    color: var(--hhb-design-button-color, #fff);
    text-decoration: none;
    filter: brightness(.96);
}

@media (max-width: 1199.98px) {
    .hhb-image-design__image {
        width: var(--hhb-design-img-t, 72%);
        transform: translate(var(--hhb-design-img-x-t, 0px), var(--hhb-design-img-y-t, 0px));
    }
    .hhb-image-design__text {
        width: var(--hhb-design-text-w-t, 60%);
        transform: translate(var(--hhb-design-text-x-t, 0px), var(--hhb-design-text-y-t, 0px)) scale(var(--hhb-design-text-scale-t, 1));
    }
    .hhb-image-design__button {
        transform: translate(var(--hhb-design-button-x-t, 0px), var(--hhb-design-button-y-t, 0px)) scale(var(--hhb-design-button-scale-t, 1));
    }
}

@media (max-width: 767.98px) {
    .hhb-image-design__image {
        width: var(--hhb-design-img-m, 90%);
        transform: translate(var(--hhb-design-img-x-m, 0px), var(--hhb-design-img-y-m, 0px));
    }
    .hhb-image-design__text {
        width: var(--hhb-design-text-w-m, 90%);
        transform: translate(var(--hhb-design-text-x-m, 0px), var(--hhb-design-text-y-m, 0px)) scale(var(--hhb-design-text-scale-m, 1));
    }
    .hhb-image-design__button {
        transform: translate(var(--hhb-design-button-x-m, 0px), var(--hhb-design-button-y-m, 0px)) scale(var(--hhb-design-button-scale-m, 1));
    }
}

/* Gerätesuche / Gerätefinder */
.hhb-device-search-section {
    min-height: inherit;
    height: 100%;
}

.hhb-device-search-card {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(9, 40, 76, .08);
    border-radius: var(--hhb-device-radius, 18px);
    background: var(--hhb-device-bg, #fff);
    color: var(--hhb-device-text, #071b35);
    box-shadow: 0 18px 44px rgba(23, 54, 89, .08);
}

.hhb-device-search-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hhb-device-search-card__icon {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--hhb-device-accent, #0b54b6) 10%, white);
    color: var(--hhb-device-accent, #0b54b6);
}

.hhb-device-search-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hhb-device-search-card__heading { min-width: 0; }
.hhb-device-search-card__heading h2 {
    margin: 0 0 3px;
    color: inherit;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 780;
    line-height: 1.08;
}
.hhb-device-search-card__subline {
    max-width: 520px;
    color: #51627a;
    font-size: 1rem;
    line-height: 1.45;
}

.hhb-device-search-card__search-wrap {
    position: relative;
    z-index: 5;
    margin-top: 22px;
}
.hhb-device-search-card__input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(20, 45, 75, .18);
    border-radius: 13px;
    outline: 0;
    background: #fff;
    color: #10243c;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.hhb-device-search-card__input:focus {
    border-color: var(--hhb-device-accent, #0b54b6);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hhb-device-accent, #0b54b6) 14%, transparent);
}
.hhb-device-search-card__input::placeholder { color: #a7adb6; }

.hhb-device-search-card__results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 330px;
    overflow-y: auto;
    border: 1px solid rgba(20, 45, 75, .16);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(20, 43, 68, .16);
}
.hhb-device-search-card__results .search-result-item + .search-result-item { border-top: 1px solid #edf1f4; }
.hhb-device-search-card__results .search-result-item a,
.hhb-device-search-card__results .no-results {
    display: block;
    padding: 11px 14px;
    color: #10243c;
    text-decoration: none;
}
.hhb-device-search-card__results .search-result-item a:hover,
.hhb-device-search-card__results .search-result-item a:focus {
    background: #f1f6fc;
    color: var(--hhb-device-accent, #0b54b6);
}
.hhb-device-search-card__results .no-results { color: #758395; }

.hhb-device-search-card__example {
    margin-top: 16px;
    color: #5d6f87;
    font-size: .88rem;
    line-height: 1.4;
}

.hhb-device-search-card__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 18px;
}
.hhb-device-search-card__benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #172a40;
    font-size: .95rem;
}
.hhb-device-search-card__benefit > span {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f7ed;
    color: #169447;
    font-size: 15px;
    font-weight: 800;
}
.hhb-device-search-card__benefit strong { font-weight: 500; }

.hhb-device-search-card__cta {
    display: flex;
    width: 100%;
    min-height: 64px;
    margin-top: 22px;
    padding: 13px 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border-radius: 12px;
    background: var(--hhb-device-accent, #0b54b6);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}
.hhb-device-search-card__cta:hover {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}
.hhb-device-search-card__cta strong { font-size: .98rem; }
.hhb-device-search-card__cta span { font-size: .92rem; font-weight: 700; }
.hhb-device-search-card__cta.is-static { cursor: default; }

@media (max-width: 767.98px) {
    .hhb-device-search-card { padding: 20px; }
    .hhb-device-search-card__header { gap: 12px; }
    .hhb-device-search-card__icon { flex-basis: 40px; width: 40px; height: 40px; }
    .hhb-device-search-card__benefits { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .hhb-device-search-card__cta { min-height: 70px; }
}

/* Gerätefinder 1.6.2: Trefferliste liegt sicher über dem Blockinhalt. */
.hhb-layout-item--device_search,
.hhb-layout-item--device_search > .hhb-section,
.hhb-device-search-card {
    overflow: visible;
}
.hhb-device-search-card__search-wrap { isolation: isolate; }
.hhb-device-search-card__results { z-index: 100; }
.hhb-device-search-card__results .search-result-item a strong {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}


/* 1.7.1 – Gerätefinder: direkte Ein-Klick-/Tap-Navigation */
.hhb-device-search-card__results .search-result-item a {
    position: relative;
    z-index: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 1.8.0 – frei konfigurierbarer Banner */
.hhb-custom-banner {
    width: 100%;
    min-height: var(--hhb-cb-height, 64px);
    padding: var(--hhb-cb-py, 8px) var(--hhb-cb-px, 14px);
    border-radius: var(--hhb-cb-radius, 0);
    background: var(--hhb-cb-bg, #154a96);
    color: var(--hhb-cb-color, #fff);
    overflow: hidden;
}
.hhb-custom-banner__inner {
    display: grid;
    grid-template-columns: repeat(var(--hhb-cb-cols-d, 3), minmax(0, 1fr));
    gap: var(--hhb-cb-gap, 10px);
    width: 100%;
    margin: 0 auto;
}
.hhb-custom-banner__item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: calc(var(--hhb-cb-height, 64px) - (2 * var(--hhb-cb-py, 8px)));
    padding: 7px 12px;
    border-radius: var(--hhb-cb-item-radius, 10px);
    background: var(--hhb-cb-item-bg, rgba(255,255,255,.07));
    color: inherit;
    text-decoration: none;
}
.hhb-custom-banner__item:hover { color: inherit; text-decoration: none; }
.hhb-custom-banner__icon { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.hhb-custom-banner__copy { min-width: 0; }
.hhb-custom-banner__copy strong,
.hhb-custom-banner__copy small { display: block; }
.hhb-custom-banner__copy strong { font-size: 13px; font-weight: 750; line-height: 1.2; }
.hhb-custom-banner__copy small { margin-top: 3px; font-size: 11px; line-height: 1.25; opacity: .96; }
@media (max-width: 991.98px) {
    .hhb-custom-banner__inner { grid-template-columns: repeat(var(--hhb-cb-cols-t, 3), minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .hhb-custom-banner__inner { grid-template-columns: repeat(var(--hhb-cb-cols-m, 1), minmax(0, 1fr)); }
    .hhb-custom-banner__item { min-height: auto; }
}
.hhb-layout-item--rounded > .hhb-custom-banner {
    border-radius: var(--hhb-block-radius, 18px);
    overflow: hidden;
}
