/* ═══════════════════════════════════════════════════════
 * BSH Contact Widget – Styles
 * ═══════════════════════════════════════════════════════ */

/* ── shared / global ──────────────────────────────────── */

.bsh-contact {
    --orange:    #eb6a05;
    --blue:      #4283c4;
    --blue-dark: #1b3a61;
    --dark:      #0f1720;
    --light-bg:  #f4f7fb;
    --gray-bg:   #ececec;
    --radius-a:  50px 0 50px 0;
    --radius-b:  0 50px 0 50px;
    font-family: inherit;
    color: var(--dark);
}

/* ── Focus visible (a11y) ─────────────────────────────── */

.bsh-contact a:focus-visible,
.bsh-contact button:focus-visible,
.bsh-contact input:focus-visible,
.bsh-contact textarea:focus-visible,
.bsh-contact summary:focus-visible,
.bsh-contact [type="checkbox"]:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bsh-contact,
    .bsh-contact * {
        transition-duration: 0.01ms !important;
    }
}

.bsh-contact__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.bsh-contact__kicker {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--orange);
    margin-bottom: 10px;
}

.bsh-contact__heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--dark);
}

.bsh-contact__text {
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    margin: 0 0 24px;
}

/* ── Buttons (organic BSH style) ─────────────────────── */

.bsh-contact__btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: border-radius .35s ease, background .25s ease, color .25s ease;
    text-decoration: none;
    text-align: center;
    background: var(--orange);
    color: #fff;
    border-radius: var(--radius-a);
}

.bsh-contact__btn:hover,
.bsh-contact__btn:focus-visible {
    border-radius: var(--radius-b);
    background: var(--blue-dark);
    color: #fff;
}

.bsh-contact__btn--ghost {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.bsh-contact__btn--ghost:hover,
.bsh-contact__btn--ghost:focus-visible {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    border-radius: var(--radius-b);
}

/* consent checkbox row */
.bsh-contact__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
    margin-bottom: 20px;
}

.bsh-contact__consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--orange);
}

.bsh-contact__consent a {
    color: var(--orange);
    text-decoration: underline;
}

/* ===================================================
 * 1. Kontakt & Formular
 * =================================================== */

.bsh-contact-s1 {
    background: #f4f7fb;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}
.bsh-contact-s1__bg { position: absolute; inset: 0; z-index: 0; background-size: 20%; background-repeat: no-repeat; background-position: right -60px bottom -60px; opacity: .04; pointer-events: none; }
.bsh-contact-s1 .bsh-contact__container { position: relative; z-index: 2; }

.bsh-contact-s1__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* -- Links: Kontaktdaten-Panel ----------------------- */

.bsh-contact-s1__left {
    position: relative;
    background: var(--light-bg);
    border-radius: 0;
    padding: 56px 48px;
    overflow: hidden;
}

.bsh-contact-s1__left-bg {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 280px;
    height: 280px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .045;
    pointer-events: none;
}

.bsh-contact-s1__left-inner {
    position: relative;
    z-index: 1;
}

.bsh-contact-s1__items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
}

.bsh-contact-s1__item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.bsh-contact-s1__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
}

.bsh-contact-s1__icon svg {
    width: 22px;
    height: 22px;
}

.bsh-contact-s1__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dark);
    margin-bottom: 3px;
}

a.bsh-contact-s1__value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

a.bsh-contact-s1__value:hover {
    color: var(--orange);
}

.bsh-contact-s1__value--plain {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.bsh-contact-s1__meta {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 6px 0 0;
}

/* -- Rechts: Formular -------------------------------- */

.bsh-contact-s1__right {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    padding: 48px;
}

.bsh-contact__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bsh-contact__field {
    margin-bottom: 20px;
}

.bsh-contact__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.bsh-contact__input,
.bsh-contact__textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #d0d5dd;
    border-radius: 0;
    background: #fafbfc;
    color: var(--dark);
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.bsh-contact__input:focus,
.bsh-contact__textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(235,106,5,.12);
}

.bsh-contact__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form messages */
.bsh-contact__msg {
    font-size: 14px;
    line-height: 1.5;
    min-height: 1.5em;
    margin-top: 12px;
}

.bsh-contact__msg--ok {
    color: #1b873b;
}

.bsh-contact__msg--err {
    color: #c42b2b;
}

/* ===================================================
 * 2. Text-Bild (Downloads / Presse)
 * =================================================== */

.bsh-contact__container--narrow {
    max-width: 900px;
}

.bsh-contact-s2 {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--gray-bg);
    background-size: cover;
    background-position: center;
}

/* dot pattern */
.bsh-contact-s2__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--orange) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: .035;
    pointer-events: none;
}

.bsh-contact-s2__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bsh-contact-s2__content .bsh-contact__kicker,
.bsh-contact-s2__content .bsh-contact__heading {
    text-align: center;
}

.bsh-contact-s2__body {
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 28px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.bsh-contact-s2__body p {
    margin: 0 0 .8em;
}

.bsh-contact-s2__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===================================================
 * 3. Newsletter (Bleiben Sie informiert)
 * =================================================== */

.bsh-contact-s3 {
    background: var(--light-bg, #f4f7fb);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bsh-contact-s3__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right -60px bottom -60px;
    opacity: .04;
    pointer-events: none;
}

.bsh-contact-s3__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    border-radius: 0;
    padding: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bsh-contact-s3__row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.bsh-contact-s3__input {
    flex: 1;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #d0d5dd;
    border-radius: 0;
    background: #fafbfc;
    color: var(--dark);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bsh-contact-s3__input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(235,106,5,.12);
}

.bsh-contact-s3__btn {
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--orange);
    color: #fff;
    border-radius: var(--radius-a);
    transition: border-radius .35s ease, background .25s ease;
    white-space: nowrap;
}

.bsh-contact-s3__btn:hover,
.bsh-contact-s3__btn:focus-visible {
    border-radius: var(--radius-b);
    background: var(--blue-dark);
}

/* ===================================================
 * 4. FAQ + Bild
 * =================================================== */

.bsh-contact-s4 {
    background: #1b3a61;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.bsh-contact-s4 .bsh-contact__container { position: relative; z-index: 2; }
.bsh-contact-s4 .bsh-contact__heading { color: #fff; }
.bsh-contact-s4 .bsh-contact__kicker { color: var(--orange); }

.bsh-contact-s4__tree {
    position: absolute; right: -40px; bottom: -40px;
    width: 320px; height: 320px;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: brightness(0) invert(1); opacity: .1;
    pointer-events: none; z-index: 0;
}


.bsh-contact-s4__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(66 131 196 / 71%) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .025;
    pointer-events: none;
}

.bsh-contact-s4__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* accordion */
.bsh-contact-s4__accordion {
    margin-top: 24px;
}

.bsh-contact-s4__item {
    border-bottom: 1px solid #e2e2e2;
}

.bsh-contact-s4__item:first-child {
    border-top: 1px solid #e2e2e2;
}

.bsh-contact-s4__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.bsh-contact-s4__question::-webkit-details-marker,
.bsh-contact-s4__question::marker {
    display: none;
    content: '';
}

.bsh-contact-s4__question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: var(--orange);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform .3s ease;
}

.bsh-contact-s4__item[open] > .bsh-contact-s4__question::after {
    content: '−';
}

.bsh-contact-s4__answer {
    padding: 0 4px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.bsh-contact-s4__answer p {
    margin: 0;
}

.bsh-contact-s4__image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    height: 450px;
}

.bsh-contact-s4__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bsh-contact-s4__badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    z-index: 2;
}

.bsh-contact-s4__badge svg {
    width: 28px;
    height: 28px;
}

/* ===================================================
 * Responsive
 * =================================================== */

@media (max-width: 900px) {
    .bsh-contact-s1__grid,
    .bsh-contact-s3__wrap,
    .bsh-contact-s4__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bsh-contact-s1,
    .bsh-contact-s2,
    .bsh-contact-s3,
    .bsh-contact-s4 {
        padding: 64px 0;
    }

    .bsh-contact-s1__left {
        padding: 40px 32px;
    }

    .bsh-contact-s1__right {
        padding: 36px 28px;
    }

    .bsh-contact-s3__wrap {
        padding: 40px 32px;
    }

    /* Bild unter Akkordeon auf Mobile */
    .bsh-contact-s4__image {
        order: 1;
        margin-top: 30px !important;
    }

    .bsh-contact-s4__grid {
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .bsh-contact__container {
        padding: 0 18px;
    }

    .bsh-contact__field-row {
        grid-template-columns: 1fr;
    }

    .bsh-contact-s1__left {
        padding: 32px 22px;
    }

    .bsh-contact-s1__right {
        padding: 28px 20px;
    }

    .bsh-contact-s2__ctas {
        flex-direction: column;
    }

    .bsh-contact-s3__row {
        flex-direction: column;
    }

    .bsh-contact-s3__wrap {
        padding: 32px 22px;
    }
}

/* Dark-section text overrides */
.bsh-contact-s4 .bsh-contact-s4__question { color: #fff; }
.bsh-contact-s4 .bsh-contact-s4__answer { color: rgba(255,255,255,.85); }
.bsh-contact-s4 .bsh-contact-s4__answer a { color: #fff; text-decoration: underline; }
.bsh-contact-s4 .bsh-contact-s4__chevron { color: #fff; }