/**
 * HRTime Branchen Grid - Frontend Styles
 * Version: 4.0
 */

/* Hero Section */
.branchen-hero-section-v7 {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
    background: transparent;
    overflow: visible;
}

/* Grid - 3 Spalten */
.hrtime-branchen-grid-v7 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0;
}

/* Card */
.branchen-card-v7 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(82, 114, 197, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.branchen-card-v7:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(82, 114, 197, 0.25);
    border-color: rgba(82, 114, 197, 0.3);
}

/* Image */
.branchen-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    line-height: 0; /* Verhindert Spalt unter dem Bild */
}

.branchen-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Zwingt Bild bündig an den Rand */
    transition: transform 0.6s ease;
}

.branchen-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.branchen-card-v7:hover .branchen-image-wrapper img {
    transform: scale(1.05);
}

.branchen-card-v7:hover .branchen-image-wrapper::before {
    animation: shineMove 0.75s ease-in-out;
}

@keyframes shineMove {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Content - LOCH-KILLER: Padding oben auf 0! */
.branchen-card-content {
    padding: 0 25px 30px !important; 
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    flex-grow: 1;
}

/* Überschrift - EXAKT DEINE WERTE, nur Margin-Top für Abstand zum Bild */
.branchen-card-content h3 {
    margin: 20px 0 0 0 !important; /* Sorgt für Abstand vom Bild zum Text IN der weißen Box */
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #0B1933 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Die Vorteile als saubere Liste */
.branchen-card-vorteile {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 10px 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.branchen-card-vorteile li {
    font-size: 14px !important;
    color: #4A5568 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
}

.branchen-card-vorteile li i {
    color: #E65100 !important;
    font-size: 16px !important;
}

/* Button - EXAKT DEIN ORIGINAL */
.branchen-card-content .hero-cta-button {
    background: linear-gradient(135deg, #E65100, #D84315);
    color: #ffffff !important;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.3);
    margin: 10px auto 0 !important;
    width: fit-content;
}

.branchen-card-content .hero-cta-button i {
    color: #ffffff !important;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.branchen-card-content .hero-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.45);
    color: #ffffff !important;
}

.branchen-card-content .hero-cta-button:hover i {
    transform: translateX(4px);
}

/* Footer Button */
.branchen-hero-footer {
    text-align: center;
    margin-top: 30px;
}

.branchen-explore-button {
    background: linear-gradient(135deg, #0B1933, #1a2f5c) !important;
    color: #ffffff !important;
    padding: 18px 40px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 25px rgba(11, 25, 51, 0.3) !important;
    border-radius: 35px !important;
    gap: 15px !important;
}

.branchen-explore-button:hover {
    background: linear-gradient(135deg, #1a2f5c, #0B1933) !important;
    box-shadow: 0 12px 35px rgba(11, 25, 51, 0.45) !important;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hrtime-branchen-grid-v7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Responsive - Mobile (ORIGINAL AUS STEP 47) */
@media (max-width: 768px) {
    .branchen-hero-section-v7 {
        padding: 0;
    }

    .hrtime-branchen-grid-v7 {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 15px 0;
    }

    .branchen-image-wrapper {
        height: 240px;
    }

    .branchen-card-content {
        padding: 25px 20px;
    }

    .branchen-card-content h3 {
        font-size: 18px;
    }

    .branchen-card-content .hero-cta-button {
        width: 100%;
        max-width: 280px;
    }

    .branchen-explore-button {
        width: 100%;
        max-width: 320px;
        font-size: 16px !important;
        padding: 16px 30px !important;
    }
}