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

.hw-leistung-section-2082 {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    background-color: #ffffff;
    font-family: 'PT Sans', sans-serif;
    box-sizing: border-box;
}

.hw-leistung-h2-2082 {
    font-weight: 700;
    font-size: 32px;
    color: #002c77;
    text-align: center;
    margin: 0 auto 48px;
    max-width: 800px;
    line-height: 1.3;
}

.hw-leistung-grid-2082 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Wrapper for perspective to make 3D tilt work */
.hw-leistung-card-wrapper-2082 {
    perspective: 1000px;
    opacity: 0;
    transform: translateY(20px);
}

.hw-leistung-card-wrapper-2082.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hw-leistung-card-2082 {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 3px solid #4b92db;
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-width 0.3s ease, margin-top 0.3s ease;
    /* margin-top transition compensates for border width change so content doesn't jump */
    will-change: transform;
}

.hw-leistung-card-wrapper-2082:hover .hw-leistung-card-2082 {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-top-width: 5px;
    /* Note: The JS handles the 3D rotation and translation dynamically */
}

.hw-leistung-icon-2082 {
    color: #ff5800;
    font-size: 40px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateZ(20px); /* Popped out slightly for 3D effect */
    transition: color 0.5s ease;
}

.hw-leistung-icon-2082 svg {
    width: 40px;
    height: 40px;
    fill: #ff5800;
    transition: fill 0.5s ease;
}

/* Icon Pulse Hover via Keyframes */
.hw-leistung-card-wrapper-2082:hover .hw-leistung-icon-2082 {
    animation: hw-icon-pulse-2082 0.5s ease forwards;
}
.hw-leistung-card-wrapper-2082:hover .hw-leistung-icon-2082 svg {
    animation: hw-icon-pulse-fill-2082 0.5s ease forwards;
}

@keyframes hw-icon-pulse-2082 {
    0% { color: #ff5800; }
    50% { color: #cc4700; }
    100% { color: #ff5800; }
}

@keyframes hw-icon-pulse-fill-2082 {
    0% { fill: #ff5800; }
    50% { fill: #cc4700; }
    100% { fill: #ff5800; }
}

.hw-leistung-title-2082 {
    font-weight: 700;
    font-size: 20px;
    color: #002c77;
    margin: 0 0 12px 0;
    line-height: 1.3;
    transform: translateZ(10px);
}

.hw-leistung-text-2082 {
    font-weight: 400;
    font-size: 15px;
    color: #002c77;
    line-height: 1.6;
    margin: 0;
    transform: translateZ(5px);
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .hw-leistung-grid-2082 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hw-leistung-section-2082 {
        padding: 60px 20px;
    }
    .hw-leistung-h2-2082 {
        font-size: 24px;
        margin-bottom: 32px;
    }
    .hw-leistung-grid-2082 {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
    .hw-leistung-card-wrapper-2082 {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
    .hw-leistung-card-2082 {
        transform: none !important;
        transition: box-shadow 0.3s ease, border-width 0.3s ease;
    }
    .hw-leistung-card-wrapper-2082:hover .hw-leistung-icon-2082,
    .hw-leistung-card-wrapper-2082:hover .hw-leistung-icon-2082 svg {
        animation: none;
    }
    .hw-leistung-icon-2082, .hw-leistung-title-2082, .hw-leistung-text-2082 {
        transform: none;
    }
}
