
/* =========================================================
   ECQA HERO 1.5.0
   Clean consolidated stylesheet
   ========================================================= */

.ecqa-hero {
    --ecqa-bg: #eef7fc;
    --ecqa-pad-top: 72px;
    --ecqa-pad-bottom: 72px;
    --ecqa-max-width: 1180px;
    --ecqa-primary: #27378f;
    --ecqa-text: #273445;
    --ecqa-muted: #52647a;
    --ecqa-accent: #b79bed;
    --ecqa-section-radius: 40px;

    position: relative;
    display: block;
    clear: both;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: var(--ecqa-pad-top) 20px var(--ecqa-pad-bottom);
    background: var(--ecqa-bg);
    overflow-x: clip;
    font-family: inherit;
}

.ecqa-hero *,
.ecqa-hero *::before,
.ecqa-hero *::after {
    box-sizing: border-box;
}

.ecqa-hero.has-section-background {
    border-radius: var(--ecqa-section-radius, 40px);
    overflow: hidden;
}

.ecqa-hero.no-section-background {
    border-radius: 0;
    background: transparent;
}

.ecqa-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
    gap: var(--hero-gap, 60px);
    align-items: center;
    width: 100%;
    max-width: var(--ecqa-max-width, 1180px);
    margin: 0 auto;
}

.ecqa-hero__content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.ecqa-hero.image-left .ecqa-hero__visual {
    order: 1;
}

.ecqa-hero.image-left .ecqa-hero__content {
    order: 2;
}

.ecqa-hero__eyebrow {
    margin-bottom: 14px;
    color: var(--ecqa-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ecqa-hero h1 {
    margin: 0 0 34px;
    color: var(--ecqa-text);
    font-family: inherit;
    font-size: var(--hero-heading-size, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.ecqa-hero.has-unified-heading h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.ecqa-hero__intro {
    margin-bottom: 38px;
    color: var(--ecqa-muted);
    font-family: inherit;
    font-size: var(--hero-intro-size, 17px);
    line-height: 1.6;
}

.ecqa-hero__intro > :first-child {
    margin-top: 0;
}

.ecqa-hero__intro > :last-child {
    margin-bottom: 0;
}

.ecqa-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ecqa-hero .ecqa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 58px;
    padding: 15px 30px;
    border: 2px solid var(--ecqa-primary);
    border-radius: 6px;
    background: var(--ecqa-primary);
    color: #fff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 650;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease;
}

.ecqa-hero .ecqa-button:hover,
.ecqa-hero .ecqa-button:focus-visible {
    transform: translateY(-2px);
    background: #1f2d73;
    border-color: #1f2d73;
}

.ecqa-hero__visual {
    position: relative;
    min-width: 0;
}

.ecqa-hero__image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: var(--hero-height, 620px);
    margin: 0;
    overflow: hidden;
    border-radius: var(--hero-radius, 28px);
    background: #dfeaf2;
}

.ecqa-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--hero-fit, cover);
}

.ecqa-hero__dots {
    position: absolute;
    z-index: 1;
    width: 250px;
    height: 250px;
    opacity: .72;
    background-image: radial-gradient(circle, var(--ecqa-accent) 2px, transparent 2.6px);
    background-size: 16px 16px;
    pointer-events: none;
}

.ecqa-hero.dots-top-right .ecqa-hero__dots { top: -26px; right: -72px; }
.ecqa-hero.dots-bottom-right .ecqa-hero__dots { right: -72px; bottom: -26px; }
.ecqa-hero.dots-top-left .ecqa-hero__dots { top: -26px; left: -72px; }
.ecqa-hero.dots-bottom-left .ecqa-hero__dots { bottom: -26px; left: -72px; }

/* Bild unten: Text oben, Bild darunter */
.ecqa-hero.image-bottom .ecqa-hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.ecqa-hero.image-bottom .ecqa-hero__content {
    order: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ecqa-hero.image-bottom .ecqa-hero__intro {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.ecqa-hero.image-bottom .ecqa-buttons {
    justify-content: center;
}

.ecqa-hero.image-bottom .ecqa-hero__visual {
    order: 2;
    width: 100%;
    max-width: var(--ecqa-max-width, 1180px);
    margin: 42px auto 0;
}

/* Kein Bild: wirklich kompakter Einspalten-Block */
.ecqa-hero.no-hero-image .ecqa-hero__grid {
    display: block;
    width: 100%;
    max-width: var(--ecqa-max-width, 1180px);
    min-height: 0;
    height: auto;
}

.ecqa-hero.no-hero-image .ecqa-hero__content {
    width: 100%;
    max-width: var(--ecqa-text-only-width, 1180px);
    margin: 0 auto;
    padding: 0;
}

.ecqa-hero.no-hero-image .ecqa-hero__visual,
.ecqa-hero.no-hero-image .ecqa-hero__image {
    display: none;
}

.ecqa-hero.no-hero-image .ecqa-hero__content > :last-child {
    margin-bottom: 0;
}

/* If no buttons follow the intro, don't keep the old 38px internal gap. */
.ecqa-hero.no-hero-image .ecqa-hero__intro:last-child {
    margin-bottom: 0;
}

/* Animations */
.ecqa-animate {
    opacity: 0;
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1);
}
.ecqa-animate-fade { transform: none; }
.ecqa-animate-up { transform: translateY(44px); }
.ecqa-animate-left { transform: translateX(-44px); }
.ecqa-animate-right { transform: translateX(44px); }
.ecqa-animate.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
    .ecqa-hero__grid {
        grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr);
        gap: 44px;
    }
    .ecqa-hero__image {
        height: min(var(--hero-height, 620px), 540px);
    }
}

@media (max-width: 850px) {
    .ecqa-hero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ecqa-hero.image-left .ecqa-hero__visual,
    .ecqa-hero.image-left .ecqa-hero__content {
        order: initial;
    }

    .ecqa-hero h1 {
        font-size: 34px;
        margin-bottom: 26px;
    }

    .ecqa-hero.has-unified-heading h1 {
        font-size: 34px;
    }

    .ecqa-hero__intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .ecqa-hero__image {
        height: min(70vw, 500px);
    }
}

@media (max-width: 700px) {
    .ecqa-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ecqa-hero.image-bottom .ecqa-hero__content {
        text-align: left;
    }

    .ecqa-hero.image-bottom .ecqa-hero__intro {
        margin-left: 0;
        margin-right: 0;
    }

    .ecqa-hero.image-bottom .ecqa-buttons {
        justify-content: flex-start;
    }

    .ecqa-hero.image-bottom .ecqa-hero__visual {
        margin-top: 28px;
    }

    .ecqa-hero .ecqa-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .ecqa-hero h1 {
        font-size: 30px;
    }

    .ecqa-hero.has-unified-heading h1 {
        font-size: 30px;
    }

    .ecqa-hero__image {
        height: min(85vw, 420px);
        border-radius: 22px;
    }

    .ecqa-hero__dots {
        width: 160px;
        height: 160px;
        background-size: 14px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecqa-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ECQA Hero 1.5.1
   Text-only Hero must not create a large empty block.
   It keeps the module's own padding values, but removes template/row spacing. */
.ecqa-hero.no-hero-image {
    min-height: 0 !important;
    height: auto !important;
}

.ecqa-hero.no-hero-image .ecqa-hero__grid,
.ecqa-hero.no-hero-image .ecqa-hero__content {
    min-height: 0 !important;
    height: auto !important;
}

/* A text-only hero should never inherit image-bottom visual spacing. */
.ecqa-hero.no-hero-image.image-bottom .ecqa-hero__visual {
    display: none !important;
    margin: 0 !important;
}


/* ECQA Hero 1.5.2 – full text width for text-only sections */
.ecqa-hero.no-hero-image .ecqa-hero__intro {
    max-width: none !important;
    width: 100% !important;
}

.ecqa-hero.no-hero-image.image-bottom .ecqa-hero__content {
    max-width: var(--ecqa-text-only-width, 1180px) !important;
}




/* =========================================================
   ECQA Hero 1.6.0 – Helix-safe
   IMPORTANT: This module no longer changes any parent row,
   column or Joomla/Helix wrapper. Helix alone controls where
   modules sit on the page.
   ========================================================= */

.ecqa-hero {
    float: none !important;
    clear: both !important;
}

/* Transparent hero = normal width inside its assigned Helix position. */
.ecqa-hero.no-section-background {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Colored background may still be full bleed, but only the module itself
   leaves the content column – never its Helix parent. */
.ecqa-hero.has-section-background {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Text-only hero is always a single centered block. */
.ecqa-hero.no-hero-image .ecqa-hero__grid {
    display: block !important;
    width: 100% !important;
    max-width: var(--ecqa-max-width, 1180px) !important;
    margin: 0 auto !important;
    min-height: 0 !important;
}

.ecqa-hero.no-hero-image .ecqa-hero__content {
    width: 100% !important;
    max-width: var(--ecqa-text-only-width, 1180px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.ecqa-hero.no-hero-image .ecqa-hero__visual {
    display: none !important;
}

.ecqa-hero.no-hero-image .ecqa-hero__intro {
    width: 100% !important;
    max-width: none !important;
}


/* ECQA unified action button interaction */
.ecqa-button {
  position: relative; z-index: 2; pointer-events: auto; touch-action: manipulation;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
@media (hover: hover) and (pointer: fine) {
.ecqa-button:hover {
  background: #ffffff !important; color: #27378f !important; border-color: #27378f !important;
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(39,55,143,.14);
}
}
.ecqa-button:focus-visible { outline: 3px solid rgba(39,55,143,.25); outline-offset: 3px; }
@media (hover: none), (pointer: coarse) {
.ecqa-button { -webkit-tap-highlight-color: rgba(39,55,143,.12); }
.ecqa-button:hover { transform: none; }
}


/* ECQA Hero 1.6.3 – explicit text-only mode */
.ecqa-hero.image-none.no-hero-image .ecqa-hero__content {
    text-align: center !important;
}
.ecqa-hero.image-none.no-hero-image .ecqa-buttons {
    justify-content: center !important;
}
.ecqa-hero.image-none.no-hero-image .ecqa-hero__eyebrow,
.ecqa-hero.image-none.no-hero-image h1,
.ecqa-hero.image-none.no-hero-image .ecqa-hero__intro {
    margin-left: auto !important;
    margin-right: auto !important;
}
