.hiro-beratersuche {
    width: 100%;
    background: #fff;
    color: #454545;
}

.hiro-beratersuche__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: 70px;

    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 20px;
}

.hiro-beratersuche__content {
    max-width: 650px;
}

.hiro-beratersuche__header h2 {
    margin: 0 0 8px;
    color: #002241;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
}

.hiro-beratersuche__header h3 {
    margin: 0 0 25px;
    color: #002241;
    font-size: 33px;
    line-height: 1.2;
    font-weight: 400;
}

.hiro-beratersuche__text {
    max-width: 620px;
}

.hiro-beratersuche__text p {
    margin: 0 0 18px;
    font-size: 17.6px;
    line-height: 1.6;
}

.hiro-beratersuche__search {
    margin-top: 30px;
}

.hiro-beratersuche__search > strong {
    display: block;
    margin-bottom: 14px;
    color: #002241;
    font-size: 17.6px;
    line-height: 1.4;
}

.hiro-beratersuche__form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    max-width: 470px;
}

.hiro-beratersuche__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    margin: 0 !important;
    padding: 0 15px !important;

    border: 1px solid #d9dee1 !important;
    border-radius: 0 !important;
    background: #fff !important;

    color: #454545;
    font-size: 15px;

    box-shadow: none !important;
}

.hiro-beratersuche__input:focus {
    border-color: #002241 !important;
    outline: none;
}

.hiro-beratersuche__button {
    flex: 0 0 auto;
    height: 48px;
    margin: 0;
    padding: 0 24px;

    border: 0;
    border-radius: 0;
    background: #ff6f61;

    color: #fff;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.hiro-beratersuche__button:hover,
.hiro-beratersuche__button:focus {
    background: #e85c4f;
}

.hiro-beratersuche__button:disabled {
    cursor: wait;
    opacity: .7;
}

.hiro-beratersuche__message {
    min-height: 22px;
    margin-top: 9px;

    font-size: 14px;
    line-height: 1.4;
}

.hiro-beratersuche__message.is-error {
    color: #b42318;
}

.hiro-beratersuche__map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiro-beratersuche__map-figure {
    display: block;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
}

.hiro-beratersuche__map-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hiro-beratersuche__states path {
    fill: #e9e9e9;
    stroke: #999;
    stroke-width: 1;
    stroke-linejoin: round;
    cursor: pointer;
    transition:
        fill .2s ease,
        stroke .2s ease;
}

.hiro-beratersuche__states a:hover path,
.hiro-beratersuche__states a:focus path {
    fill: #ff6f61;
    stroke: #002241;
}

.hiro-beratersuche__states a:focus {
    outline: none;
}


/* Tablet */
@media (max-width: 960px) {

    .hiro-beratersuche__inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 40px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hiro-beratersuche__header h2 {
        font-size: 44px;
    }

    .hiro-beratersuche__header h3 {
        font-size: 33px;
    }

}


/* Mobil */
@media (max-width: 767px) {

    .hiro-beratersuche__inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hiro-beratersuche__content {
        max-width: none;
    }

    .hiro-beratersuche__header h2 {
        font-size: 36px;
    }

    .hiro-beratersuche__header h3 {
        font-size: 28px;
    }

    .hiro-beratersuche__form {
        max-width: none;
    }

    .hiro-beratersuche__map {
        order: 2;
    }

    .hiro-beratersuche__map-figure {
        max-width: 300px;
    }

}


/* Kleine Smartphones */
@media (max-width: 480px) {

    .hiro-beratersuche__form {
        flex-direction: column;
    }

    .hiro-beratersuche__button {
        width: 100%;
    }

}
.hiro-beratersuche__form {
    display: flex;
    align-items: stretch;
}

.hiro-beratersuche__input,
.hiro-beratersuche__button {
    box-sizing: border-box !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
}

.hiro-beratersuche__input {
    padding: 0 24px !important;
    line-height: 50px !important;
}

.hiro-beratersuche__button {
    padding: 0 32px !important;
    line-height: 52px !important;
}

/* ==========================================================
   Formular – identische Höhe
   ========================================================== */

.hiro-beratersuche__form {
    display: flex !important;
    align-items: stretch !important;
}

.hiro-beratersuche__input,
.hiro-beratersuche__button {
    box-sizing: border-box !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
}

.hiro-beratersuche__input {
    padding: 0 20px !important;
    line-height: normal !important;
}

.hiro-beratersuche__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 30px !important;
    line-height: 1.2 !important;
}


/* ==========================================================
   Berater Modal
   ========================================================== */

html.hiro-modal-open,
body.hiro-modal-open {
    overflow: hidden;
}

.hiro-berater-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.hiro-berater-modal.is-open {
    display: block;
}

.hiro-berater-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 34, 65, .76);
}

.hiro-berater-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;

    width: calc(100% - 80px);
    max-width: 1680px;
    max-height: calc(100vh - 80px);

    padding: 58px 70px 68px;

    overflow: auto;

    transform: translate(-50%, -50%);

    background: #fff;
}

.hiro-berater-modal__close {
    position: absolute;
    top: 22px;
    right: 26px;

    width: 44px;
    height: 44px;

    padding: 0;
    border: 0;
    background: transparent;

    color: #111;
    font-size: 42px;
    line-height: 1;

    cursor: pointer;
}

.hiro-berater-modal__header {
    margin-bottom: 42px;
    text-align: center;
}

.hiro-berater-modal__header h2 {
    margin: 0 0 12px !important;

    color: #002241;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
}

.hiro-berater-modal__header p {
    margin: 0;

    color: #5f5f5f;
    font-size: 21px;
    line-height: 1.4;
}

.hiro-berater-modal__slider {
    position: relative;

    display: flex;
    align-items: center;

    gap: 20px;
}

.hiro-berater-modal__viewport {
    flex: 1 1 auto;
    min-width: 0;

    overflow: hidden;
}

.hiro-berater-modal__track {
    display: flex;

    transition: transform .3s ease;
}

.hiro-berater-modal__card {
    flex: 0 0 20%;
    box-sizing: border-box;

    padding: 0 12px;

    text-align: center;
}

.hiro-berater-modal__image {
    width: 100%;
    aspect-ratio: 1 / 1;

    margin-bottom: 18px;

    overflow: hidden;

    background: #f3d9c4;
}

.hiro-berater-modal__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.hiro-berater-modal__card h3 {
    margin: 0 0 20px !important;

    color: #002241;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}

.hiro-berater-modal__button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 68px;
    padding: 12px 16px;

    background: #ff6f61;

    color: #fff !important;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;

    transition: background .2s ease;
}

.hiro-berater-modal__button:hover {
    background: #e85c4f;
}

.hiro-berater-modal__arrow {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    padding: 0;
    border: 0;

    background: #ff6f61;

    color: #fff;

    font-size: 44px;
    line-height: 1;

    cursor: pointer;
}

.hiro-berater-modal__arrow:hover {
    background: #e85c4f;
}

.hiro-berater-modal__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.hiro-berater-modal__arrow.is-hidden {
    visibility: hidden;
}


/* 4 Berater */
@media (max-width: 1350px) {

    .hiro-berater-modal__card {
        flex-basis: 25%;
    }

}


/* 2 Berater */
@media (max-width: 1000px) {

    .hiro-berater-modal__dialog {
        width: calc(100% - 40px);
        padding: 55px 30px 45px;
    }

    .hiro-berater-modal__card {
        flex-basis: 50%;
    }

}


/* 1 Berater */
@media (max-width: 640px) {

    .hiro-berater-modal__dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);

        padding: 50px 15px 30px;
    }

    .hiro-berater-modal__header {
        margin-bottom: 28px;
    }

    .hiro-berater-modal__header h2 {
        font-size: 28px;
    }

    .hiro-berater-modal__header p {
        font-size: 17px;
    }

    .hiro-berater-modal__card {
        flex-basis: 100%;
        padding: 0 8px;
    }

    .hiro-berater-modal__arrow {
        flex-basis: 42px;
        width: 42px;
        height: 48px;
        font-size: 34px;
    }

}
/* Beratersuche – vertikale Abstände kompakter */
.hiro-beratersuche {
    padding: 30px 0 !important;
}
@media (max-width: 767px) {
    .hiro-beratersuche {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }
}