/* LEISTUNGEN PAGE - LAYOUT HARMONIZATION */
/* Harmonizing with main website design system */

/* === GLOBAL LAYOUT FIXES === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1.6 !important;
    background-color: #ffffff !important;
}

/* Content Wrapper Fixes */
#Content {
    margin-top: 72px !important;
    padding-top: 0 !important;
}

.content_wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* === SUBHEADER HARMONIZATION === */
#Subheader {
    background: linear-gradient(135deg, #37ac50, #2d8f42) !important;
    padding: 100px 0 80px !important;
    margin-top: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

#Subheader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.3 !important;
    z-index: 1 !important;
}

#Subheader .container {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

#Subheader h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 700 !important;
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-align: center !important;
    margin: 0 0 20px 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#Subheader h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.95) !important;
    text-align: center !important;
    margin: 0 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* === SECTION HARMONIZATION === */
.section {
    padding: 80px 0 !important;
    position: relative !important;
}

.section:nth-child(even) {
    background-color: #f8fafc !important;
}

.section:nth-child(odd) {
    background-color: #ffffff !important;
}

.section_wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* === TYPOGRAPHY HARMONIZATION === */
h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.8rem !important;
    line-height: 1.2 !important;
    color: #1e293b !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
}

h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    margin: 20px 0 15px 0 !important;
}

p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #64748b !important;
    margin: 0 0 20px 0 !important;
}

/* === SERVICE CARDS HARMONIZATION === */
.column.one-third {
    margin-bottom: 40px !important;
    padding: 0 10px !important;
}

.column.one-third .column_attr > div {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 40px 30px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
}

.column.one-third .column_attr > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #37ac50, #2d8f42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.column.one-third .column_attr > div:hover::before {
    opacity: 1;
}

.column.one-third .column_attr > div:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12) !important;
    border-color: rgba(55, 172, 80, 0.2) !important;
}

/* === IMAGE HARMONIZATION === */
.image_frame.no_border {
    margin-bottom: 25px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.image_wrapper img {
    max-width: 80px !important;
    height: auto !important;
    filter: drop-shadow(0 4px 8px rgba(55, 172, 80, 0.1)) !important;
    transition: all 0.3s ease !important;
}

.column.one-third:hover .image_wrapper img {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 6px 12px rgba(55, 172, 80, 0.2)) !important;
}

/* === BUTTON HARMONIZATION === */
.button.button_stroke_custom {
    background: transparent !important;
    border: 2px solid #37ac50 !important;
    color: #37ac50 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-block !important;
    text-align: center !important;
    margin-top: auto !important;
}

.button.button_stroke_custom:hover {
    background: #37ac50 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(55, 172, 80, 0.3) !important;
}

/* === CTA SECTION HARMONIZATION === */
.section.dark {
    background: linear-gradient(135deg, #37ac50, #2d8f42) !important;
    position: relative !important;
    overflow: hidden !important;
}

.section.dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid-dark" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid-dark)"/></svg>') !important;
    opacity: 0.4 !important;
    z-index: 1 !important;
}

.section.dark .section_wrapper {
    position: relative !important;
    z-index: 2 !important;
}

.section.dark h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.section.dark p {
    color: rgba(255,255,255,0.95) !important;
}

.button.button_large.button_stroke_custom {
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    color: rgba(255,255,255,0.95) !important;
    background: transparent !important;
}

.button.button_large.button_stroke_custom:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2) !important;
}

/* === RESPONSIVE HARMONIZATION === */
@media (max-width: 768px) {
    .section {
        padding: 60px 0 !important;
    }
    
    #Subheader {
        padding: 80px 0 60px !important;
    }
    
    #Subheader h1 {
        font-size: 2.8rem !important;
    }
    
    #Subheader h4 {
        font-size: 1.2rem !important;
    }
    
    h2 {
        font-size: 2.2rem !important;
    }
    
    .column.one-third {
        margin-bottom: 30px !important;
        padding: 0 5px !important;
    }
    
    .column.one-third .column_attr > div {
        padding: 30px 20px !important;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 50px 0 !important;
    }
    
    #Subheader {
        padding: 70px 0 50px !important;
    }
    
    #Subheader h1 {
        font-size: 2.4rem !important;
    }
    
    #Subheader h4 {
        font-size: 1.1rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .content_wrapper {
        padding: 0 15px !important;
    }
    
    .section_wrapper {
        padding: 0 15px !important;
    }
}

/* === ANIMATION FIXES === */
.animate[data-anim-type="zoomIn"] {
    opacity: 1 !important;
    transform: none !important;
}

.animate[data-anim-type="fadeInLeft"],
.animate[data-anim-type="fadeInUp"], 
.animate[data-anim-type="fadeInRight"] {
    opacity: 1 !important;
    transform: none !important;
}

/* === SPACING CONSISTENCY === */
.items_group {
    margin: 0 -10px !important;
}

.items_group .column {
    padding: 0 10px !important;
}

/* === NAVIGATION ACTIVE STATE === */
.nav-link[data-page="leistungen"] {
    color: #37ac50 !important;
    background: rgba(55, 172, 80, 0.12) !important;
    font-weight: 600 !important;
}

.nav-link[data-page="leistungen"]::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #37ac50 !important;
    border-radius: 1px;
}