/* General */

.acf-block.organigramm {
    background: rgba(216, 235, 234, .28);
}

.organigramm .organigramm-wrapper {
    overflow: hidden;
    padding: 54px;
    background: linear-gradient(135deg, var(--navy), #183148);
    border-radius: 36px;
    box-shadow: var(--shadow);
    color: #fff;
}

.organigramm .subtitel {
    background: rgba(86, 178, 184, .12);
    color: var(--teal);
}

.organigramm h2,
.organigramm h3 {
    color: #fff;
}

.organigramm .organigramm-intro-text {
    max-width: 950px;
}

.organigramm .organigramm-intro-text p,
.organigramm .organigramm-chart p {
    color: rgba(255, 255, 255, .78);
}

.organigramm .organigramm-intro-text {
    font-size: 1.15rem;
}

.organigramm .organigramm-chart {
    margin-top: 52px;
}

.organigramm .organigramm-dach,
.organigramm .organigramm-programm {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
}

.organigramm .organigramm-dach {
    position: relative;
    z-index: 1;
    width: min(720px, 75%);
    margin: 0 auto;
    padding: 28px 34px;
    text-align: center;
}

.organigramm .organigramm-dach h3,
.organigramm .organigramm-programm h3 {
    margin-top: 0;
}

.organigramm .organigramm-dach h3 {
    font-size: 2rem;
}

.organigramm .organigramm-dach::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--teal);
    content: "";
    transform: translateX(-50%);
}

.organigramm .organigramm-programme {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 22px;
    padding-top: 76px;
}

.organigramm .organigramm-programme::before {
    position: absolute;
    top: 39px;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal) 8%, var(--teal) 92%, transparent);
    content: "";
}

.organigramm .organigramm-programm {
    position: relative;
    min-width: 0;
    padding: 28px;
}

.organigramm .organigramm-programm::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 2px;
    height: 37px;
    background: var(--teal);
    content: "";
    transform: translateX(-50%);
}

.organigramm .organigramm-hinweis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    padding: 18px 24px;
    background: var(--teal);
    border-radius: 20px;
    color: #fff;
    text-align: center;
}

.organigramm .organigramm-hinweis span {
    font-size: 1.45rem;
    line-height: 1;
}

.organigramm .organigramm-hinweis strong {
    color: inherit;
    font-size: 1.05rem;
}

/* Responsive */

@media only screen and (max-width: 1199.98px) {
    .organigramm .organigramm-wrapper {
        padding: 44px;
    }

}

@media only screen and (max-width: 991.98px) {
    .organigramm .organigramm-programme {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 38px;
        padding-left: 34px;
    }

    .organigramm .organigramm-dach {
        width: 100%;
    }

    .organigramm .organigramm-dach::after {
        left: 17px;
        height: 100%;
        transform: none;
    }

    .organigramm .organigramm-programme::before {
        top: 0;
        right: auto;
        bottom: 0;
        left: 16px;
        width: 2px;
        height: auto;
        background: var(--teal);
    }

    .organigramm .organigramm-programm::before {
        top: 50%;
        right: 100%;
        bottom: auto;
        left: auto;
        width: 34px;
        height: 2px;
        transform: none;
    }
}

@media only screen and (max-width: 767.98px) {
    .organigramm .organigramm-wrapper {
        padding: 34px 26px;
        border-radius: 30px;
    }

    .organigramm .organigramm-chart {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 575.98px) {
    .organigramm .organigramm-wrapper {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .organigramm .organigramm-dach,
    .organigramm .organigramm-programm {
        padding: 22px;
        border-radius: 18px;
    }

    .organigramm .organigramm-dach h3 {
        font-size: 1.6rem;
    }

    .organigramm .organigramm-hinweis {
        align-items: flex-start;
        padding: 16px 18px;
        border-radius: 16px;
    }
}
