@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.hw-bausteine-grid-container-2189 {
    background-color: #ffffff;
    padding: 100px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'PT Sans', sans-serif;
}

/* Header */
.hw-bausteine-head-2189 {
    text-align: center;
    margin-bottom: 56px;
}

.hw-bausteine-h2-2189 {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #002c77;
    margin: 0 auto;
    max-width: 760px;
}

.hw-bausteine-sub-2189 {
    font-family: 'PT Sans', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 44, 119, 0.75);
    margin: 16px auto 0;
    max-width: 640px;
}

/* Grid Layout */
.hw-bausteine-grid-2189 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    padding-top: 32px; /* Raum für überlappendes Icon */
}

/* Cards */
.hw-baustein-card-2189 {
    background-color: #ffffff;
    border-top: 4px solid #fdc82f;
    border-radius: 6px;
    padding: 0 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 44, 119, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-width 0.1s;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(24px);
}

.hw-baustein-card-2189.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hw-baustein-card-2189:hover {
    box-shadow: 0 6px 20px rgba(0, 44, 119, 0.14);
    transform: translateY(-3px);
    border-top-width: 6px;
}

/* Icon */
.hw-baustein-icon-wrap-2189 {
    margin-top: -32px; /* Half of icon size to overlap */
    margin-bottom: 20px;
}

.hw-baustein-icon-2189 {
    width: 64px;
    height: 64px;
    background-color: #002c77;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 32px;
    
    /* Animation initial state */
    transform: scale(0.8);
    opacity: 0;
}

.hw-baustein-icon-2189 svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.hw-baustein-card-2189.is-visible .hw-baustein-icon-2189 {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    /* Delay wird per JS gesetzt */
}

/* JS adds this class on first hover */
.hw-baustein-card-2189:hover .hw-baustein-icon-2189:not(.has-been-hovered) {
    animation: hw-icon-rotate-2189 0.6s ease forwards;
}

@keyframes hw-icon-rotate-2189 {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Content */
.hw-baustein-content-2189 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hw-baustein-eyecatcher-2189 {
    font-family: 'PT Sans', sans-serif;
    font-style: italic;
    font-size: 14px;
    color: #ff5800;
    margin-bottom: 12px;
    
    /* Animation initial state */
    opacity: 0;
}

.hw-baustein-card-2189.is-visible .hw-baustein-eyecatcher-2189 {
    opacity: 1;
    transition: opacity 0.5s ease;
    /* Delay per JS */
}

.hw-baustein-h3-2189 {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #002c77;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.hw-baustein-body-2189 p {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #002c77;
    line-height: 1.6;
    margin: 0;
}

/* Footer Hinweis */
.hw-bausteine-hinweis-2189 {
    margin-top: 48px;
    background-color: rgba(253, 200, 47, 0.08);
    border-left: 3px solid #fdc82f;
    padding: 20px 24px;
    border-radius: 6px;
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
    color: #002c77;
    
    opacity: 0;
    transform: translateY(10px);
}

.hw-bausteine-hinweis-2189.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hw-bausteine-hinweis-2189 p {
    margin: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hw-baustein-card-2189,
    .hw-baustein-icon-2189,
    .hw-baustein-eyecatcher-2189,
    .hw-bausteine-hinweis-2189 {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    .hw-baustein-card-2189:hover {
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hw-bausteine-grid-container-2189 {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hw-bausteine-grid-2189 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hw-bausteine-grid-container-2189 {
        padding: 60px 20px 40px;
    }
    .hw-bausteine-h2-2189 {
        font-size: 24px;
    }
    .hw-bausteine-grid-2189 {
        grid-template-columns: 1fr;
        gap: 36px; /* slightly more gap because of overlap */
    }
    .hw-baustein-icon-2189 {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    .hw-baustein-icon-wrap-2189 {
        margin-top: -28px;
    }
}
