/* Funding Block */

.funding-block {
    position: relative;
    overflow: hidden;
}

.funding-header {
    max-width: 760px;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.funding-block h3{
    font-size: 250%;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 3rem;
}

.funding-title {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: var(--brand-accent-color);
}

.funding-subline::before,
.funding-service-subline::before {
    content: "";
    display: inline-block;
    width: 1.35rem;
    height: 1px;
    background-color: currentColor;
}

.funding-title {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: var(--brand-secondary-color);
}

.funding-title-box {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    padding:1rem;
    border-radius: 0.5rem;
    background: var(--brand-accent-color);
    color: var(--brand-primary-color);
    border-radius: var(--br);
}

.funding-title-box h3,
.funding-title-box h3 span{
    color: var(--brand-secondary-color);
}

.funding-layout {
    align-items: stretch;
}

/* Left Card */
.funding-overview-card {
    height: 100%;
    padding: clamp(2rem, 4vw, 2.5rem);
    border: 1px solid rgba(20, 33, 61, 0.08);
    border-radius: 1rem;
    background-color: #f5f7f9;
    /* box-shadow: 0 1.25rem 2rem rgba(20, 33, 61, 0.06); */
    position: relative;
}

.funding-overview-card.has-background-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--funding-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    border-radius: var(--br);
}


.funding-overview-title {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--brand-secondary-color);
}
.funding-overview-title strong,
.funding-overview-title b {
    color: var(--brand-accent-color);
}
.funding-overview-subline {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(20, 33, 61, 0.72);
}
.funding-bars {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.funding-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border-radius: 0.45rem;
    /* background-color: #e7f0cc; */
    color: #081421;
}
.funding-bar-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}
.funding-bar-value {
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
}
.funding-credit-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.15rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(20, 33, 61, 0.06);
    border-radius: 0.5rem;
    background-color: #ffffff;
}
.funding-credit-icon {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}
.funding-credit-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-secondary-color);
}
.funding-credit-text {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(20, 33, 61, 0.76);
}

.funding-overview-visual{
    position: relative;
    z-index: 1;
}

#abstandimbildoben .funding-overview-visual{
    min-height:120px;
    margin-bottom:10rem;
}

.funding-bilanz-box {
    width: 100%;
    margin-top: auto;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--brand-primary-color);
    box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.12);
    position: relative;
}

.funding-bilanz-topline {
    margin: 0 0 1.25rem;
    color: var(--brand-accent-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.funding-bilanz-items {
    display: grid;
    gap: 0.85rem;
}

.funding-bilanz-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(20, 33, 61, 0.12);
}

.funding-bilanz-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.funding-bilanz-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(20, 36, 51, 0.76);
}

.funding-bilanz-value {
    flex: 0 0 auto;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.funding-bilanz-value.blue {
    color: var(--brand-primary-color);
}

.funding-bilanz-value.green {
    color: var(--brand-accent-color);
}

.funding-bilanz-value.red {
    color: #c0392b;
}

.funding-result-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.55rem;
    background: rgba(154, 195, 0, 0.08);
    color: var(--brand-primary-color);
}

.funding-result-label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.funding-result-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}


/* Right Card */
.funding-service-card {
    height: 100%;
}

.funding-service-text {
    max-width: 580px;
    margin-bottom: 1.65rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
    line-height: 1.65;
    color: var(--brand-primary-color);
}
.funding-service-text p {
    margin: 0;
}
.funding-service-text ul {
    display: grid;
    gap: 0;
    margin: 1.5rem 0 1.5rem;
    padding: 0;
    list-style: none;
}
.funding-service-text li {
    position: relative;
    padding-left: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--brand-primary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    padding:10px 15px;
}
.funding-service-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--brand-accent-color);
}
.funding-service-button {
    margin-top: 1.25rem;
}


/* Responsive */
@media (max-width: 991px) {

    .content{order:1;margin-bottom:35px;}
    .image{order:2;}

    .funding-header {
        margin-bottom: 2rem;
    }

    .funding-overview-card,
    .funding-service-card {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .funding-overview-card{
        padding: .5rem;
        border-radius: 0.85rem;
    }
    .funding-bilanz-box{
        padding:.5rem;
    }
    .funding-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .funding-credit-box {
        align-items: flex-start;
    }

    .funding-service-card .btn-funding,
    .funding-service-card .btn {
        width: 100%;
    }
    .funding-result-box{
        padding:.5rem;
    }
    .funding-result-value{
        font-size:100%;
    }
    .funding-block h3{
        font-size:175%;
    }
}