/* ================================================================
 * HMS Landing Pages — modern 2026 bento-grid design system
 * --------------------------------------------------------------
 * Mobile-first. Zero dependencies. No page builder. No framework.
 * Tokens at the top, components below, responsive breakpoints at
 * the bottom. Targets Lighthouse Performance ≥95 on mobile.
 * ================================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
    /* HMS brand colors — sourced from wp-content/themes/vendipro-child/css/style.css */
    --hms-primary:        #7b9f35;
    --hms-primary-dark:   #5d7c25;
    --hms-primary-soft:   #eff4e2;
    --hms-accent:         #b14f4f;
    --hms-accent-dark:    #8a3d3d;

    /* Neutrals */
    --hms-bg:             #ffffff;
    --hms-bg-soft:        #f7f7f5;
    --hms-bg-card:        #ffffff;
    --hms-text:           #1a1a1a;
    --hms-text-muted:     #5a5a5a;
    --hms-border:         #e5e5e0;
    --hms-border-strong:  #d0d0c8;

    /* Shadows — soft, modern, bento-aesthetic */
    --hms-shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.06);
    --hms-shadow-md:      0 4px 16px rgba(0, 0, 0, 0.08);
    --hms-shadow-lg:      0 12px 32px rgba(0, 0, 0, 0.10);
    --hms-shadow-xl:      0 24px 48px rgba(0, 0, 0, 0.12);

    /* Radii */
    --hms-radius-sm:      8px;
    --hms-radius-md:      14px;
    --hms-radius-lg:      22px;
    --hms-radius-full:    999px;

    /* Spacing scale */
    --hms-s-1:            4px;
    --hms-s-2:            8px;
    --hms-s-3:            12px;
    --hms-s-4:            16px;
    --hms-s-5:            24px;
    --hms-s-6:            32px;
    --hms-s-7:            48px;
    --hms-s-8:            64px;
    --hms-s-9:            96px;

    /* Typography scale */
    --hms-text-xs:        0.8125rem;  /* 13 */
    --hms-text-sm:        0.9375rem;  /* 15 */
    --hms-text-base:      1.0625rem;  /* 17 */
    --hms-text-lg:        1.1875rem;  /* 19 */
    --hms-text-xl:        1.5rem;     /* 24 */
    --hms-text-2xl:       2rem;       /* 32 */
    --hms-text-3xl:       2.75rem;    /* 44 */
    --hms-text-4xl:       3.5rem;     /* 56 */

    /* Line heights */
    --hms-lh-tight:       1.15;
    --hms-lh-snug:        1.3;
    --hms-lh-normal:      1.6;

    /* Transitions */
    --hms-ease:           cubic-bezier(0.22, 0.8, 0.36, 1);
    --hms-t-fast:         150ms var(--hms-ease);
    --hms-t-base:         220ms var(--hms-ease);
    --hms-t-slow:         380ms var(--hms-ease);
}

/* ---------- 2. Reset + base ---------- */
.hms-landing *,
.hms-landing *::before,
.hms-landing *::after {
    box-sizing: border-box;
}

.hms-landing {
    margin: 0;
    background: var(--hms-bg);
    color: var(--hms-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--hms-text-base);
    line-height: var(--hms-lh-normal);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* guard against any rogue full-width element */
}

/* Horizontal-overflow guard. Notably we do NOT include `footer` here
 * because `overflow-x: clip` (same as `overflow: hidden`) creates a
 * CSS containing block for `position: fixed` descendants — and the
 * mini-cart fly-out panel is rendered via wp_footer() inside the
 * landing footer. Trapping it would prevent it from sliding in over
 * the viewport. Sections and the sticky header are safe to clip. */
.hms-landing section,
.hms-landing header {
    max-width: 100%;
    overflow-x: clip;
}

.hms-landing img,
.hms-landing picture {
    max-width: 100%;
    height: auto;
    display: block;
}

.hms-landing h1,
.hms-landing h2,
.hms-landing h3 {
    margin: 0 0 var(--hms-s-4);
    line-height: var(--hms-lh-tight);
    color: var(--hms-text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hms-landing p {
    margin: 0 0 var(--hms-s-4);
}

.hms-landing a {
    color: var(--hms-primary);
    text-decoration: none;
    transition: color var(--hms-t-fast);
}

.hms-landing a:hover {
    color: var(--hms-primary-dark);
}

.hms-landing ul,
.hms-landing ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hms-landing button {
    font: inherit;
    cursor: pointer;
}

/* Container */
.hms-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: var(--hms-s-5);
    padding-right: var(--hms-s-5);
}

/* Section titles */
.hms-section-title {
    font-size: var(--hms-text-2xl);
    line-height: var(--hms-lh-snug);
    margin-bottom: var(--hms-s-6);
    letter-spacing: -0.015em;
}

/* ---------- 3. Buttons ---------- */
.hms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hms-s-2);
    padding: var(--hms-s-4) var(--hms-s-6);
    border: 2px solid transparent;
    border-radius: var(--hms-radius-full);
    font-size: var(--hms-text-base);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform var(--hms-t-fast), box-shadow var(--hms-t-base), background-color var(--hms-t-fast);
    cursor: pointer;
}

.hms-btn:hover {
    transform: translateY(-1px);
}

.hms-btn:active {
    transform: translateY(0);
}

.hms-btn--primary,
a.hms-btn--primary,
button.hms-btn--primary {
    background: var(--hms-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(123, 159, 53, 0.35);
    text-shadow: none;
}

.hms-btn--primary:hover,
a.hms-btn--primary:hover,
button.hms-btn--primary:hover {
    background: var(--hms-primary-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(123, 159, 53, 0.42);
}

.hms-btn--ghost,
a.hms-btn--ghost,
button.hms-btn--ghost {
    background: transparent !important;
    color: var(--hms-text) !important;
    border-color: var(--hms-border-strong) !important;
}

.hms-btn--ghost:hover,
a.hms-btn--ghost:hover,
button.hms-btn--ghost:hover {
    background: var(--hms-bg-soft) !important;
    color: var(--hms-text) !important;
    border-color: var(--hms-primary) !important;
}

.hms-btn--large {
    padding: var(--hms-s-5) var(--hms-s-7);
    font-size: var(--hms-text-lg);
}

/* ---------- 4. Landing header (nav-minimal) ---------- */
.hms-landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--hms-border);
}

.hms-landing-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--hms-s-3) var(--hms-s-5);
}

.hms-landing-header__logo {
    display: inline-flex;
    align-items: center;
}

.hms-landing-header__logo img {
    height: 40px;
    width: auto;
}

/* ---------- 5. Hero — bento grid, 2-column on desktop ---------- */
.hms-hero {
    padding: var(--hms-s-8) 0 var(--hms-s-7);
    background:
        radial-gradient(1000px 500px at 85% 10%, rgba(123, 159, 53, 0.08), transparent 60%),
        linear-gradient(180deg, #ffffff, #fcfcfa);
    overflow: hidden;
}

.hms-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-7);
    align-items: center;
}

.hms-hero__eyebrow {
    display: inline-block;
    padding: var(--hms-s-2) var(--hms-s-4);
    margin-bottom: var(--hms-s-5);
    background: var(--hms-primary-soft);
    color: var(--hms-primary-dark);
    border-radius: var(--hms-radius-full);
    font-size: var(--hms-text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hms-hero__title {
    font-size: var(--hms-text-3xl);
    margin-bottom: var(--hms-s-5);
    letter-spacing: -0.025em;
    font-weight: 800;
}

.hms-hero__subtitle {
    font-size: var(--hms-text-lg);
    color: var(--hms-text-muted);
    margin-bottom: var(--hms-s-6);
    max-width: 54ch;
}

.hms-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hms-s-4);
}

.hms-hero__visual {
    position: relative;
}

.hms-hero__visual picture,
.hms-hero__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--hms-radius-lg);
    box-shadow: var(--hms-shadow-xl);
    object-fit: cover;
    aspect-ratio: 1376 / 714;
}

/* ---------- 6. Trust bar ---------- */
.hms-trust-bar {
    padding: var(--hms-s-5) 0;
    background: var(--hms-bg-soft);
    border-top: 1px solid var(--hms-border);
    border-bottom: 1px solid var(--hms-border);
}

.hms-trust-bar__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hms-s-5) var(--hms-s-7);
}

.hms-trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: var(--hms-s-2);
    font-size: var(--hms-text-sm);
    font-weight: 600;
    color: var(--hms-text);
}

.hms-trust-bar__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--hms-radius-full);
    background: var(--hms-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- 7. Problem section ---------- */
.hms-problem {
    padding: var(--hms-s-9) 0 var(--hms-s-8);
}

.hms-problem__intro {
    font-size: var(--hms-text-lg);
    color: var(--hms-text-muted);
    max-width: 68ch;
    margin-bottom: var(--hms-s-7);
}

.hms-problem__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-7);
    align-items: start;
}

.hms-problem__figure {
    margin: 0;
    border-radius: var(--hms-radius-lg);
    overflow: hidden;
    box-shadow: var(--hms-shadow-lg);
    aspect-ratio: 1;
}

.hms-problem__figure img,
.hms-problem__figure picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hms-problem__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-4);
}

.hms-problem__item {
    padding: var(--hms-s-5) var(--hms-s-6);
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-md);
    box-shadow: var(--hms-shadow-sm);
    transition: transform var(--hms-t-base), box-shadow var(--hms-t-base), border-color var(--hms-t-base);
}

.hms-problem__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--hms-shadow-md);
    border-color: var(--hms-primary);
}

.hms-problem__item-title {
    font-size: var(--hms-text-base);
    margin-bottom: var(--hms-s-2);
    color: var(--hms-text);
}

.hms-problem__item-text {
    margin: 0;
    font-size: var(--hms-text-sm);
    color: var(--hms-text-muted);
    line-height: 1.55;
}

/* ---------- 8. Solution steps ---------- */
.hms-solution {
    padding: var(--hms-s-8) 0 var(--hms-s-9);
    background: var(--hms-bg-soft);
}

.hms-solution__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-5);
    counter-reset: step;
}

.hms-solution__step {
    position: relative;
    padding: var(--hms-s-7) var(--hms-s-6) var(--hms-s-6);
    background: var(--hms-bg-card);
    border-radius: var(--hms-radius-lg);
    box-shadow: var(--hms-shadow-md);
    transition: transform var(--hms-t-base), box-shadow var(--hms-t-base);
}

.hms-solution__step:hover {
    transform: translateY(-4px);
    box-shadow: var(--hms-shadow-lg);
}

.hms-solution__step-number {
    position: absolute;
    top: -22px;
    left: var(--hms-s-6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--hms-radius-full);
    background: var(--hms-primary);
    color: #ffffff;
    font-size: var(--hms-text-lg);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(123, 159, 53, 0.4);
}

.hms-solution__step-title {
    font-size: var(--hms-text-xl);
    margin-bottom: var(--hms-s-3);
}

.hms-solution__step-text {
    margin: 0;
    color: var(--hms-text-muted);
    font-size: var(--hms-text-sm);
    line-height: 1.6;
}

/* ---------- 9. Product grid — bento layout ---------- */
.hms-products {
    padding: var(--hms-s-9) 0;
    scroll-margin-top: 80px;
}

.hms-products__intro {
    font-size: var(--hms-text-lg);
    color: var(--hms-text-muted);
    max-width: 68ch;
    margin-bottom: var(--hms-s-7);
}

.hms-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-5);
}

.hms-product-card {
    display: flex;
    flex-direction: column;
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-lg);
    overflow: hidden;
    box-shadow: var(--hms-shadow-sm);
    transition: transform var(--hms-t-base), box-shadow var(--hms-t-base), border-color var(--hms-t-base);
}

.hms-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hms-shadow-lg);
    border-color: var(--hms-primary);
}

.hms-product-card__media {
    display: block;
    background: var(--hms-bg-soft);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hms-product-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: var(--hms-s-4);
    transition: transform var(--hms-t-slow);
    display: block;
}

.hms-product-card:hover .hms-product-card__media img {
    transform: scale(1.04);
}

.hms-product-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--hms-s-3);
    padding: var(--hms-s-5) var(--hms-s-6) var(--hms-s-6);
    flex: 1;
}

.hms-product-card__title {
    font-size: var(--hms-text-base);
    margin: 0;
    line-height: var(--hms-lh-snug);
}

.hms-product-card__title a {
    color: var(--hms-text);
}

.hms-product-card__title a:hover {
    color: var(--hms-primary-dark);
}

.hms-product-card__price {
    font-size: var(--hms-text-lg);
    font-weight: 700;
    color: var(--hms-primary-dark);
}

.hms-product-card__price del {
    color: var(--hms-text-muted);
    font-weight: 500;
    margin-right: var(--hms-s-2);
}

.hms-product-card__price ins {
    text-decoration: none;
    color: var(--hms-accent);
}

.hms-product-card__add {
    margin-top: auto;
}

/* ---------- 10. Testimonial ---------- */
.hms-testimonial {
    padding: var(--hms-s-8) 0;
    background: linear-gradient(180deg, var(--hms-bg-soft), #ffffff);
}

.hms-testimonial__figure {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--hms-s-7);
    background: var(--hms-bg-card);
    border-radius: var(--hms-radius-lg);
    box-shadow: var(--hms-shadow-md);
    text-align: center;
}

.hms-testimonial__quote {
    margin: 0 0 var(--hms-s-5);
    font-size: var(--hms-text-lg);
    font-style: italic;
    line-height: 1.55;
    color: var(--hms-text);
    quotes: "„" "“";
}

.hms-testimonial__quote::before {
    content: open-quote;
}

.hms-testimonial__quote::after {
    content: close-quote;
}

.hms-testimonial__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hms-s-1);
    font-size: var(--hms-text-sm);
    color: var(--hms-text-muted);
}

.hms-testimonial__caption strong {
    color: var(--hms-text);
    font-size: var(--hms-text-base);
}

/* ---------- 9b. Biozid warning (EU 528/2012 Art. 72(1)) ---------- */
/* Legally mandated disclaimer for biocide advertising. Must be clearly
 * distinguishable from the surrounding advertisement and legible. Muted
 * colour palette + border to signal "disclaimer" without being drowned out. */
.hms-biozid-warning {
    padding: var(--hms-s-6) 0;
    background: var(--hms-bg-soft);
}

.hms-biozid-warning__box {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--hms-s-5) var(--hms-s-6);
    background: #ffffff;
    border: 1.5px solid var(--hms-border-strong);
    border-left: 4px solid var(--hms-accent);
    border-radius: var(--hms-radius-md);
}

.hms-biozid-warning__heading {
    margin: 0 0 var(--hms-s-2);
    font-size: var(--hms-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hms-accent-dark);
}

.hms-biozid-warning__text {
    margin: 0;
    font-size: var(--hms-text-base);
    line-height: 1.5;
    color: var(--hms-text);
    font-weight: 500;
}

/* ---------- 10b. Live Trusted Shops reviews ---------- */
.hms-reviews {
    padding: var(--hms-s-8) 0 var(--hms-s-9);
    background: linear-gradient(180deg, var(--hms-bg-soft), #ffffff);
}

.hms-reviews__header {
    text-align: center;
    margin-bottom: var(--hms-s-7);
}

.hms-reviews__header .hms-section-title {
    margin-bottom: var(--hms-s-4);
}

.hms-reviews__summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--hms-s-3);
    margin: 0;
    font-size: var(--hms-text-base);
    color: var(--hms-text);
}

.hms-reviews__stars {
    color: var(--hms-primary);
    font-size: var(--hms-text-xl);
    letter-spacing: 2px;
    line-height: 1;
}

.hms-reviews__summary strong {
    font-size: var(--hms-text-lg);
    color: var(--hms-text);
}

.hms-reviews__summary-meta {
    color: var(--hms-text-muted);
    font-size: var(--hms-text-sm);
}

.hms-reviews__summary-meta a {
    color: var(--hms-primary-dark);
    font-weight: 600;
}

.hms-reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hms-reviews__item {
    padding: var(--hms-s-6);
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-lg);
    box-shadow: var(--hms-shadow-sm);
    transition: transform var(--hms-t-base), box-shadow var(--hms-t-base);
}

.hms-reviews__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--hms-shadow-md);
}

.hms-reviews__mark {
    color: var(--hms-primary);
    font-size: var(--hms-text-lg);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: var(--hms-s-3);
}

.hms-reviews__quote {
    margin: 0 0 var(--hms-s-3);
    font-size: var(--hms-text-base);
    line-height: 1.55;
    color: var(--hms-text);
    font-style: normal;
    quotes: "„" "“";
}

.hms-reviews__quote::before {
    content: open-quote;
}

.hms-reviews__quote::after {
    content: close-quote;
}

.hms-reviews__footer {
    display: flex;
    align-items: center;
    gap: var(--hms-s-2);
    margin: 0;
    padding-top: var(--hms-s-4);
    margin-top: auto;
    border-top: 1px solid var(--hms-border);
    font-size: var(--hms-text-xs);
    color: var(--hms-text-muted);
}

.hms-reviews__author {
    font-weight: 600;
    color: var(--hms-text);
    text-transform: none;
    letter-spacing: 0;
}

.hms-reviews__sep {
    opacity: 0.5;
}

.hms-reviews__date {
    margin: 0;
    font-size: var(--hms-text-xs);
    color: var(--hms-text-muted);
}

.hms-reviews__item {
    display: flex;
    flex-direction: column;
}

/* Responsive grid — all cards same width at every breakpoint. No "featured"
 * first card because it makes the row feel lopsided when there are only
 * 5 reviews (the standard Trusted Shops API cap after filtering). */
@media (min-width: 768px) {
    .hms-reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hms-reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .hms-reviews__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--hms-s-4);
    }

    .hms-reviews__item {
        padding: var(--hms-s-5);
    }

    .hms-reviews__quote {
        font-size: var(--hms-text-sm);
        line-height: 1.5;
    }
}

/* ---------- 11. Body (long-form editorial) ---------- */
.hms-body {
    padding: var(--hms-s-9) 0;
}

.hms-body__inner {
    max-width: 820px;
}

.hms-body__sections {
    display: grid;
    gap: var(--hms-s-7);
}

.hms-body__section-title {
    font-size: var(--hms-text-xl);
    margin-bottom: var(--hms-s-3);
    position: relative;
    padding-left: var(--hms-s-5);
}

.hms-body__section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 4px;
    height: calc(100% - 0.7em);
    background: var(--hms-primary);
    border-radius: 2px;
}

.hms-body__section-text {
    font-size: var(--hms-text-base);
    color: var(--hms-text);
    line-height: 1.7;
}

/* ---------- Product comparison table ---------- */
.hms-comparison {
    padding: var(--hms-s-9) 0;
    background: var(--hms-bg);
}

.hms-comparison__intro {
    font-size: var(--hms-text-base);
    color: var(--hms-text-muted);
    max-width: 60ch;
    margin: 0 auto var(--hms-s-6);
    text-align: center;
}

.hms-comparison__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius);
    background: var(--hms-bg-card);
    box-shadow: var(--hms-shadow-sm);
}

.hms-comparison__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 720px;
}

.hms-comparison__table thead {
    background: var(--hms-bg-soft);
}

.hms-comparison__table th,
.hms-comparison__table td {
    padding: var(--hms-s-3) var(--hms-s-4);
    text-align: left;
    border-bottom: 1px solid var(--hms-border);
    vertical-align: top;
    line-height: 1.5;
}

.hms-comparison__table thead th {
    font-weight: 600;
    color: var(--hms-text);
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hms-comparison__table tbody tr:last-child th,
.hms-comparison__table tbody tr:last-child td {
    border-bottom: none;
}

.hms-comparison__product a {
    color: var(--hms-text);
    font-weight: 600;
    text-decoration: none;
}

.hms-comparison__product a:hover {
    color: var(--hms-primary);
    text-decoration: underline;
}

.hms-comparison__price {
    font-weight: 600;
    color: var(--hms-primary);
    white-space: nowrap;
}

.hms-comparison__price del {
    color: var(--hms-text-muted);
    font-weight: 400;
    margin-right: 0.4em;
}

.hms-comparison__cta {
    display: inline-block;
    color: var(--hms-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hms-comparison__cta:hover {
    text-decoration: underline;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Tables embedded inside body sections — comparison and dosing tables. */
.hms-body__section-text .hms-table-wrap {
    overflow-x: auto;
    margin: var(--hms-s-5) 0;
    -webkit-overflow-scrolling: touch;
}

.hms-body__section-text table.hms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius);
    overflow: hidden;
}

.hms-body__section-text table.hms-table caption {
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hms-text-muted);
    padding: var(--hms-s-2) 0;
    caption-side: bottom;
}

.hms-body__section-text table.hms-table thead {
    background: var(--hms-bg-soft);
}

.hms-body__section-text table.hms-table th,
.hms-body__section-text table.hms-table td {
    padding: var(--hms-s-3) var(--hms-s-4);
    text-align: left;
    border-bottom: 1px solid var(--hms-border);
    vertical-align: top;
}

.hms-body__section-text table.hms-table th {
    font-weight: 600;
    color: var(--hms-text);
    white-space: nowrap;
}

.hms-body__section-text table.hms-table tbody tr:last-child td {
    border-bottom: none;
}

.hms-body__section-text table.hms-table a {
    color: var(--hms-primary);
    font-weight: 600;
    text-decoration: none;
}

.hms-body__section-text table.hms-table a:hover {
    text-decoration: underline;
}

/* ---------- 12. Dual CTA ---------- */
.hms-dual-cta {
    padding: var(--hms-s-9) 0;
    background: var(--hms-bg-soft);
    scroll-margin-top: 80px;
}

.hms-dual-cta__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-6);
}

.hms-dual-cta__buy,
.hms-dual-cta__quote {
    padding: var(--hms-s-7);
    background: var(--hms-bg-card);
    border-radius: var(--hms-radius-lg);
    box-shadow: var(--hms-shadow-md);
}

.hms-dual-cta__buy .hms-section-title,
.hms-dual-cta__quote .hms-section-title {
    font-size: var(--hms-text-xl);
    margin-bottom: var(--hms-s-4);
}

.hms-dual-cta__buy p,
.hms-dual-cta__quote p {
    color: var(--hms-text-muted);
    margin-bottom: var(--hms-s-5);
}

/* ---------- 13. Quote form ---------- */
.hms-quote-form {
    display: flex;
    flex-direction: column;
    gap: var(--hms-s-4);
}

.hms-quote-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-4);
}

.hms-quote-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--hms-s-2);
}

.hms-quote-form__label {
    font-size: var(--hms-text-sm);
    font-weight: 600;
    color: var(--hms-text);
}

.hms-quote-form__field input,
.hms-quote-form__field textarea {
    width: 100%;
    padding: var(--hms-s-3) var(--hms-s-4);
    border: 1.5px solid var(--hms-border-strong);
    border-radius: var(--hms-radius-sm);
    font-size: var(--hms-text-base);
    color: var(--hms-text);
    background: #ffffff;
    font-family: inherit;
    transition: border-color var(--hms-t-fast), box-shadow var(--hms-t-fast);
}

.hms-quote-form__field input:focus,
.hms-quote-form__field textarea:focus {
    outline: none;
    border-color: var(--hms-primary);
    box-shadow: 0 0 0 3px rgba(123, 159, 53, 0.15);
}

.hms-quote-form__field textarea {
    resize: vertical;
    min-height: 88px;
}

.hms-quote-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hms-quote-form__notice {
    min-height: 1.4em;
    margin: 0;
    font-size: var(--hms-text-sm);
}

.hms-quote-form__notice--error  { color: var(--hms-accent); }
.hms-quote-form__notice--ok     { color: var(--hms-primary-dark); }

/* ---------- 14. FAQ ---------- */
.hms-faq {
    padding: var(--hms-s-9) 0;
}

.hms-faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: var(--hms-s-3);
}

.hms-faq__item {
    padding: var(--hms-s-5) var(--hms-s-6);
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-md);
    transition: border-color var(--hms-t-base), box-shadow var(--hms-t-base);
}

.hms-faq__item[open] {
    border-color: var(--hms-primary);
    box-shadow: var(--hms-shadow-sm);
}

.hms-faq__question {
    font-size: var(--hms-text-base);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--hms-text);
    padding-right: var(--hms-s-6);
    position: relative;
}

.hms-faq__question::-webkit-details-marker { display: none; }

.hms-faq__question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: var(--hms-radius-full);
    background: var(--hms-primary-soft);
    color: var(--hms-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--hms-text-lg);
    font-weight: 700;
    transition: transform var(--hms-t-base), background var(--hms-t-base);
}

.hms-faq__item[open] .hms-faq__question::after {
    content: "−";
    background: var(--hms-primary);
    color: #ffffff;
}

.hms-faq__answer {
    padding-top: var(--hms-s-4);
    color: var(--hms-text-muted);
    font-size: var(--hms-text-base);
    line-height: 1.65;
}

.hms-faq__answer p { margin: 0 0 var(--hms-s-3); }
.hms-faq__answer p:last-child { margin-bottom: 0; }

/* ---------- 14b. Spokes grid (hub page only) ---------- */
.hms-spokes {
    padding: var(--hms-s-9) 0;
    scroll-margin-top: 80px;
}

.hms-spokes__intro {
    font-size: var(--hms-text-lg);
    color: var(--hms-text-muted);
    max-width: 68ch;
    margin-bottom: var(--hms-s-7);
}

.hms-spokes__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-6);
}

.hms-spoke-card {
    display: flex;
    flex-direction: column;
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-lg);
    overflow: hidden;
    box-shadow: var(--hms-shadow-sm);
    transition: transform var(--hms-t-base), box-shadow var(--hms-t-base), border-color var(--hms-t-base);
}

.hms-spoke-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hms-shadow-lg);
    border-color: var(--hms-primary);
}

.hms-spoke-card__media {
    display: block;
    aspect-ratio: 1376 / 714;
    overflow: hidden;
    background: var(--hms-bg-soft);
}

.hms-spoke-card__media img,
.hms-spoke-card__media picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hms-t-slow);
}

.hms-spoke-card:hover .hms-spoke-card__media img {
    transform: scale(1.03);
}

.hms-spoke-card__body {
    padding: var(--hms-s-6) var(--hms-s-6) var(--hms-s-7);
    display: flex;
    flex-direction: column;
    gap: var(--hms-s-3);
    flex: 1;
}

.hms-spoke-card__eyebrow {
    margin: 0;
    font-size: var(--hms-text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hms-primary-dark);
}

.hms-spoke-card__title {
    font-size: var(--hms-text-xl);
    margin: 0;
    line-height: var(--hms-lh-snug);
}

.hms-spoke-card__title a {
    color: var(--hms-text);
}

.hms-spoke-card__title a:hover {
    color: var(--hms-primary-dark);
}

.hms-spoke-card__text {
    margin: 0;
    font-size: var(--hms-text-sm);
    color: var(--hms-text-muted);
    line-height: 1.55;
}

.hms-spoke-card__link {
    margin-top: auto;
    font-weight: 600;
    font-size: var(--hms-text-sm);
    color: var(--hms-primary-dark);
    padding-top: var(--hms-s-2);
}

.hms-spoke-card__link:hover {
    color: var(--hms-primary);
}

@media (min-width: 768px) {
    .hms-spokes__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hms-s-6);
    }

    /* First card (HACCP pillar) spans both columns as the hero "feature" */
    .hms-spokes__grid .hms-spoke-card--featured {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .hms-spokes__grid .hms-spoke-card--featured .hms-spoke-card__media {
        flex: 0 0 55%;
        aspect-ratio: auto;
    }

    .hms-spokes__grid .hms-spoke-card--featured .hms-spoke-card__body {
        flex: 1 1 auto;
        justify-content: center;
        padding: var(--hms-s-7) var(--hms-s-8);
    }

    .hms-spokes__grid .hms-spoke-card--featured .hms-spoke-card__title {
        font-size: var(--hms-text-2xl);
    }

    .hms-spokes__grid .hms-spoke-card--featured .hms-spoke-card__text {
        font-size: var(--hms-text-base);
    }
}

/* ---------- 15. Related pages ---------- */
.hms-related {
    padding: var(--hms-s-8) 0;
    background: var(--hms-bg-soft);
}

.hms-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-3);
}

.hms-related__item a {
    display: block;
    padding: var(--hms-s-5) var(--hms-s-6);
    background: var(--hms-bg-card);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-md);
    font-weight: 600;
    color: var(--hms-text);
    font-size: var(--hms-text-base);
    transition: transform var(--hms-t-base), box-shadow var(--hms-t-base), border-color var(--hms-t-base), color var(--hms-t-base);
}

.hms-related__item a:hover {
    transform: translateY(-2px);
    color: var(--hms-primary-dark);
    border-color: var(--hms-primary);
    box-shadow: var(--hms-shadow-md);
}

.hms-related__item--hub a {
    background: var(--hms-primary);
    color: #ffffff;
    border-color: var(--hms-primary);
}

.hms-related__item--hub a:hover {
    background: var(--hms-primary-dark);
    color: #ffffff;
    border-color: var(--hms-primary-dark);
}

/* ---------- 15b. "Stand:" marker ---------- */
/* Content-freshness signal for readers and Google. Intentionally NOT a
 * legal disclaimer — Austrian case law treats pauschale website disclaimers
 * as ineffective (no contract = no binding liability exclusion) and they
 * can backfire via the "boomerang effect" (§ 242 BGB good-faith reasoning).
 * Only shows an italicised last-updated date. Nothing more. */
.hms-content-stand {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--hms-s-6) var(--hms-s-5);
    text-align: center;
    font-size: var(--hms-text-xs);
    color: var(--hms-text-muted);
    font-style: italic;
}

/* ---------- 16. Footer — legally compliant B2B/DSGVO layout ---------- */
.hms-landing-footer {
    padding: var(--hms-s-8) 0 var(--hms-s-5);
    background: #1a1a1a;
    color: #d0d0c8;
    font-size: var(--hms-text-sm);
    line-height: 1.6;
}

.hms-landing-footer a {
    color: #d0d0c8;
    text-decoration: none;
    transition: color var(--hms-t-fast);
}

.hms-landing-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hms-landing-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hms-s-7);
    padding-bottom: var(--hms-s-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hms-landing-footer__brand {
    margin: 0 0 var(--hms-s-3);
    font-size: var(--hms-text-lg);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hms-landing-footer__address,
.hms-landing-footer__contact {
    margin: 0 0 var(--hms-s-4);
    font-style: normal;
    color: #a8a89e;
}

.hms-landing-footer__contact {
    margin-bottom: 0;
}

.hms-landing-footer__legal-heading,
.hms-landing-footer__biozid-heading {
    margin: 0 0 var(--hms-s-4);
    font-size: var(--hms-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.hms-landing-footer__legal ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hms-s-2) var(--hms-s-5);
}

.hms-landing-footer__legal li {
    margin: 0;
}

.hms-landing-footer__biozid {
    padding: var(--hms-s-4) var(--hms-s-5);
    background: rgba(177, 79, 79, 0.08);
    border-left: 3px solid var(--hms-accent);
    border-radius: var(--hms-radius-sm);
}

.hms-landing-footer__biozid-text {
    margin: 0 0 var(--hms-s-3);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.45;
}

.hms-landing-footer__biozid-note {
    margin: 0;
    font-size: var(--hms-text-xs);
    color: #a8a89e;
    line-height: 1.5;
}

.hms-landing-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--hms-s-3);
    padding-top: var(--hms-s-5);
    text-align: center;
    font-size: var(--hms-text-xs);
    color: #807f77;
}

.hms-landing-footer__copy,
.hms-landing-footer__trusted {
    margin: 0;
}

@media (min-width: 768px) {
    .hms-landing-footer__grid {
        grid-template-columns: 1.2fr 1fr 1.3fr;
        gap: var(--hms-s-8);
    }

    .hms-landing-footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* ---------- 17. Mini cart ---------- */
.hms-mini-cart-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--hms-bg-card);
    border: 1.5px solid var(--hms-border-strong);
    border-radius: var(--hms-radius-full);
    color: var(--hms-text);
    transition: border-color var(--hms-t-fast), transform var(--hms-t-fast);
}

.hms-mini-cart-toggle:hover {
    border-color: var(--hms-primary);
    transform: scale(1.04);
}

.hms-mini-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--hms-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: var(--hms-radius-full);
    border: 2px solid #ffffff;
}

.hms-mini-cart-count--hidden {
    display: none;
}

.hms-mini-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform var(--hms-t-slow);
    /* Sits above the sticky header (z-index 40) but BELOW the Trusted Shops
     * badge widget (~9999) so the customer can still see the rating while
     * reviewing their cart. */
    z-index: 100;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.hms-mini-cart-panel[aria-hidden="false"] {
    transform: translateX(0);
    visibility: visible;
}

.hms-mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hms-s-5) var(--hms-s-6);
    border-bottom: 1px solid var(--hms-border);
}

.hms-mini-cart-header h2 {
    margin: 0;
    font-size: var(--hms-text-lg);
}

.hms-mini-cart-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: var(--hms-text-muted);
    transition: color var(--hms-t-fast);
}

.hms-mini-cart-close:hover {
    color: var(--hms-text);
}

.hms-mini-cart-empty {
    padding: var(--hms-s-7);
    text-align: center;
    color: var(--hms-text-muted);
}

.hms-mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--hms-s-4) var(--hms-s-6);
    display: flex;
    flex-direction: column;
    gap: var(--hms-s-4);
}

.hms-mini-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--hms-s-4);
    align-items: center;
    padding-bottom: var(--hms-s-4);
    border-bottom: 1px solid var(--hms-border);
}

.hms-mini-cart-item:last-child { border-bottom: none; }

.hms-mini-cart-item-thumb img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--hms-bg-soft);
    border-radius: var(--hms-radius-sm);
}

.hms-mini-cart-item-name {
    display: block;
    font-weight: 600;
    color: var(--hms-text);
    font-size: var(--hms-text-sm);
    line-height: 1.4;
    margin-bottom: var(--hms-s-1);
}

.hms-mini-cart-item-meta {
    display: flex;
    gap: var(--hms-s-2);
    font-size: var(--hms-text-xs);
    color: var(--hms-text-muted);
}

.hms-mini-cart-item-remove {
    font-size: 22px;
    line-height: 1;
    color: var(--hms-text-muted);
    text-decoration: none;
    padding: var(--hms-s-2);
    transition: color var(--hms-t-fast);
}

.hms-mini-cart-item-remove:hover {
    color: var(--hms-accent);
}

.hms-mini-cart-footer {
    padding: var(--hms-s-5) var(--hms-s-6);
    border-top: 1px solid var(--hms-border);
    background: var(--hms-bg-soft);
}

.hms-mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--hms-s-4);
    font-size: var(--hms-text-base);
}

.hms-mini-cart-subtotal strong {
    font-size: var(--hms-text-xl);
    color: var(--hms-primary-dark);
}

.hms-mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--hms-s-3);
}

.hms-mini-cart-actions .hms-btn {
    width: 100%;
}

/* Overlay behind mini-cart panel. z-index sits just below the panel itself
 * (100) and above the sticky header (40). The Trusted Shops badge is hidden
 * separately via the body.hms-cart-open class (see rule below) so it doesn't
 * peek through the overlay while the cart is open. */
.hms-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--hms-t-slow), visibility var(--hms-t-slow);
    z-index: 99;
}

/* Hide the Trusted Shops trustbadge widget when the cart panel is open.
 * Selector matches the wrapper div the TS script injects with an
 * `id="trustbadge-container-..."` prefix — stable across TS releases
 * unlike the hashed CSS-modules class names.
 *
 * Use `display: none` (not `visibility: hidden`) because the badge's
 * inner divs explicitly set their own `visibility: visible`, which
 * CSS allows children to do — visibility does NOT block descendants
 * the way display does. */
body.hms-cart-open div[id^="trustbadge-container-"] {
    display: none !important;
}

/* When the WordPress admin bar is visible (logged-in users), it pushes the
 * entire <html> down by 32px (46px on screens < 783px). Our position:fixed
 * cart panel still anchors to the viewport top — so we need to compensate
 * so the panel doesn't slide UNDER the admin bar. */
body.admin-bar .hms-mini-cart-panel,
body.admin-bar .hms-mini-cart-overlay {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hms-mini-cart-panel,
    body.admin-bar .hms-mini-cart-overlay {
        top: 46px;
    }
}

.hms-mini-cart-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* Toast notifications for add-to-cart */
.hms-toast {
    position: fixed;
    bottom: var(--hms-s-7);
    left: 50%;
    transform: translate(-50%, 100%);
    padding: var(--hms-s-4) var(--hms-s-6);
    background: var(--hms-text);
    color: #ffffff;
    border-radius: var(--hms-radius-full);
    font-size: var(--hms-text-sm);
    font-weight: 600;
    box-shadow: var(--hms-shadow-lg);
    opacity: 0;
    z-index: 100;
    transition: transform var(--hms-t-slow), opacity var(--hms-t-slow);
    pointer-events: none;
}

.hms-toast--visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ---------- 18. Responsive — desktop ---------- */
@media (min-width: 768px) {
    .hms-container { padding-left: var(--hms-s-6); padding-right: var(--hms-s-6); }
    .hms-section-title { font-size: var(--hms-text-3xl); }
    .hms-hero__title { font-size: var(--hms-text-4xl); }

    .hms-hero__grid {
        grid-template-columns: 1.05fr 1fr;
        gap: var(--hms-s-8);
    }

    .hms-problem__layout {
        grid-template-columns: minmax(280px, 0.9fr) 1.4fr;
        gap: var(--hms-s-8);
    }

    .hms-problem__figure {
        position: sticky;
        top: 88px;
    }

    .hms-problem__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--hms-s-4);
    }

    .hms-solution__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--hms-s-6);
    }

    /* Bento product grid:
       - First card spans 2 columns (the "hero" product in the ladder)
       - Remaining cards flow in the 3-column grid */
    .hms-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--hms-s-6);
    }

    .hms-products__grid .hms-product-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .hms-products__grid .hms-product-card:first-child .hms-product-card__media {
        aspect-ratio: 16 / 10;
    }

    .hms-products__grid .hms-product-card:first-child .hms-product-card__title {
        font-size: var(--hms-text-xl);
    }

    .hms-products__grid .hms-product-card:first-child .hms-product-card__price {
        font-size: var(--hms-text-2xl);
    }

    .hms-dual-cta__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--hms-s-7);
    }

    .hms-quote-form__row {
        grid-template-columns: 1fr 1fr;
    }

    .hms-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hms-s-4);
    }

    .hms-landing-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hms-hero { padding: var(--hms-s-9) 0; }
    .hms-hero__title { font-size: 4rem; }

    .hms-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hms-landing *,
    .hms-landing *::before,
    .hms-landing *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
