/* =====================================================================
 * BSH Eigenprojekte – 1:1 Dynamic Style
 * (ohne Border & ohne Schatten auf Karten)
 * ===================================================================== */

.stiftung-projekte-dynamic {
    --bs-blue: #4283c4;
    --bs-orange: #eb6a05;
    --text-dark: #1a1a1a;

    position: relative;
    padding: 100px 0;
    background-color: #f9fafa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}

.dynamic-logo-bg {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 40%;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.dynamic-logo-bg img {
    width: 100%;
    height: auto;
    display: block;
}

.dynamic-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.sr-overline {
    color: var(--bs-orange);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 10px;
}

.sr-display-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.sr-display-subtitle {
    font-size: clamp(16px,2vw,20px); font-weight: 400; line-height: 1.5;
    margin: 0 0 44px; color: #555;
}

.dot-accent {
    color: var(--bs-blue);
}

.dynamic-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.dynamic-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px 0 50px 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
}



.dynamic-card-image {
    height: 240px;
    overflow: hidden;
}

.dynamic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sr-deco-badge {
    position: absolute;
    top: 26px;
    right: 24px;
    bottom: auto;
    left: auto;
    background: #eb6a05;
    color: var(--badge-icon, #fff);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    text-decoration: none;
    isolation: isolate;
}

.sr-deco-badge__core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--badge-bg, #eb6a05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sr-deco-badge__core i,
.sr-deco-badge__core svg {
    width: 28px;
    height: 28px;
    color: var(--badge-icon, #fff);
    fill: var(--badge-icon, #fff);
}

.dynamic-card-body {
    position: relative;
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    color: var(--bs-orange);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
}

.dynamic-card-body h2 {
    font-size: 24px;
    margin: 0 0 15px;
    color: var(--text-dark);
    font-weight: 800;
}

.dynamic-card-body p {
    color: #444;
    line-height: 1.6;
    margin: 0 0 25px;
    font-size: 16px;
}

.dynamic-btn {
    margin-top: auto;
    color: var(--bs-blue);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.dynamic-btn:hover,
.dynamic-btn:focus-visible {
    gap: 12px;
    color: var(--bs-orange);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.sr-visible .animate-fade-up,
.sr-visible .animate-card {
    opacity: 1;
    transform: translateY(0);
}

.sr-visible .animate-card:nth-child(1) {
    transition: 0.8s ease-out 0.1s;
}

.sr-visible .animate-card:nth-child(2) {
    transition: 0.8s ease-out 0.2s;
}

.sr-visible .animate-card:nth-child(3) {
    transition: 0.8s ease-out 0.3s;
}

.sr-visible .animate-card:nth-child(4) {
    transition: 0.8s ease-out 0.4s;
}

.sr-visible .animate-card:nth-child(5) {
    transition: 0.8s ease-out 0.5s;
}

@media (max-width: 1024px) {
    .dynamic-project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stiftung-projekte-dynamic {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .dynamic-project-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stiftung-projekte-dynamic {
        padding: 56px 0;
    }

    .dynamic-container {
        width: 100%;
        max-width: 1600px;
        padding: 0 18px;
    }

    .dynamic-card-body {
        padding: 28px 22px;
    }

    .sr-display-title {
        margin-bottom: 36px;
    }

    .sr-deco-badge {
        width: 46px;
        height: 46px;
        top: 18px;
        right: 16px;
        bottom: auto;
        left: auto;
    }

    .sr-deco-badge i,
    .sr-deco-badge svg {
        width: 20px;
        height: 20px;
    }

    .dynamic-card-image {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .stiftung-projekte-dynamic {
        padding: 44px 0;
    }

    .sr-overline {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .sr-display-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .dynamic-card-body h2 {
        font-size: 20px;
    }

    .dynamic-card-body p {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .dynamic-card-image {
        height: 200px;
    }

    .dynamic-card {
        border-radius: 36px 0 36px 0;
    }


}
