/*! EDITOR-PREVIEW
---------------------------------------------*/

.block-brevo-newsletter-editor-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--hoou-grau-100, #f5f5f5);
    border: 1px solid var(--hoou-grau-300, #d4d4d4);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    flex-wrap: wrap;
}

.block-brevo-newsletter-editor-warning {
    width: 100%;
    margin: 8px 0 0;
    color: var(--hoou-rot-600, #d73350);
    font-size: 13px;
    font-weight: 400;
}

/*! STATUS MESSAGE
---------------------------------------------*/

#brevo-http-response-status-message {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin: auto;
    color: var(--hoou-blau);
    max-width: 590px;
}

#brevo-http-response-status-message h2 {
    margin-bottom: 28px;
}

#brevo-http-response-status-message p {
    font-size: 20px;
    margin: 0;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    hyphens: none; 
}

/*! CUSTOM-BLOCK BREVO-NEWSLETTER
---------------------------------------------*/
#block-brevo-newsletter{
    background-color: var(--hoou-hellbeige);
    overflow: auto;
}

/*! OUTER WRAPPER
---------------------------------------------*/

.newsletter-outer-wrapper {
    container-type: inline-size;
    container-name: newsletter_outer_container;
    background-color: var(--hoou-hellbeige);
    margin-bottom: 60px;
}

.newsletter-outer-wrapper > div {
    padding: 0;
}

.entry-content > div:not(:first-child):has(.newsletter-outer-wrapper) {
    padding-top: 60px;
}

/*! IMAGE
---------------------------------------------*/

.newsletter-image img {
    margin-bottom: 30px;
}

/*! CHECKBOX
---------------------------------------------*/
/*The checkbox is self-drawn to enable border styling*/

#newsletter-terms-consent-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;                
    margin-top: 6px;
    margin-right: 20px !important;
    border: 1px solid var(--hoou-grau-800);
    border-radius: 4px;
    accent-color: var(--hoou-grau-800);    
    background-color: #fff;
    cursor: pointer;
}

#newsletter-terms-consent-checkbox:checked {
    background-color: var(--hoou-grau-800);
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M3.5 8.5l3 3 6-6.5"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/*! CAPTCHAFOX WIDGET
---------------------------------------------*/

.newsletter-outer-wrapper #newsletter-form .cf-button {
    max-width: 100%;
    border-color: var(--hoou-grau-800);
    background-color: var(--hoou-hellbeige);
}

/* redundance of .cf-lyowlz is necessary because of "Duplicate Selector Hack" used by CaptchaFox */
.newsletter-outer-wrapper .cf-button__label.cf-lyowlz.cf-lyowlz {
    font-family: var(--global-hoou-font-family);
    color: var(--global-hoou-font-color);
}

.newsletter-outer-wrapper .cf-button__error-code {
    display: none !important;
}

/*! FORM ELEMENTS
---------------------------------------------*/



.newsletter-terms-container a,
.newsletter-terms-container a:visited {
    font-weight: normal;
    text-decoration: underline;
}

/*! MOBIL-DEFAULT: GESTAPELT, BILD OBEN ZENTRIERT
---------------------------------------------*/

#newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-image {
    text-align: left;
    margin: auto;
}

.newsletter-content {
    width: 100%;
}

.newsletter-terms-container {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.newsletteremailfield-container {
    margin-bottom: 8px;
}

input.newsletteremailfield {
    width: 100%;
    text-align: center;
    padding: 10px 0 !important;
    border-radius: 5px;
    font-size: 14px;
    border-color: var(--hoou-grau-800);
}

#newsletter-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

#newsletter-terms label {
    flex: 1;
}

.captchafox {
    width: 100%;
    margin-bottom: 16px;
}

.mailerTitle {
    text-align: center;
    margin-bottom: 28px;
}

/*! DESKTOP-LAYOUT (CONTAINER QUERY)
---------------------------------------------*/

@container newsletter_outer_container (min-width: 940px) {
    .newsletter-image img {
        margin-bottom: 0;
    }

    #newsletter-form {
        flex-direction: row;
        align-items: flex-start;
    }

    .newsletter-image {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding-right: 64px;
    }

    .newsletter-content {
        flex: 0 0 66.667%;
        max-width: 66.667%;
    }
}

/*! NEWSLETTER-REQUIREMENT-HINTS
---------------------------------------------*/
#newsletter-requirement-hints {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--hoou-rot-600);
    line-height: 21px;
    gap: 6px;
    margin-bottom: 28px;
}

