/* Custom styles */

/* === NAVIGATION MENU STYLING === */

/* Basis Navigation Styles */
#menu ul li a {
    color: #626262 !important;
    padding: 20px 15px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    margin: 0 2px !important;
    position: relative !important;
}

#menu ul li a:hover {
    color: #37ac50 !important;
    background-color: rgba(55, 172, 80, 0.1) !important;
}

#menu ul li a:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(55, 172, 80, 0.3) !important;
}

/* Submenu Styles */
#menu ul li ul.sub-menu {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    margin-top: 5px !important;
}

#menu ul li ul.sub-menu li a {
    padding: 12px 20px !important;
    margin: 2px 0 !important;
    font-size: 13px !important;
    border-radius: 3px !important;
}

/* Responsive Menu Toggle */
.responsive-menu-toggle {
    color: #626262 !important;
    outline: none !important;
    font-size: 20px !important;
    padding: 15px !important;
    transition: all 0.3s ease !important;
}

.responsive-menu-toggle:hover {
    color: #37ac50 !important;
}

.responsive-menu-toggle:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(55, 172, 80, 0.3) !important;
}

/* === SERVICE BOXES STYLING === */

/* Service Box Container */
.service-box {
    background: #fff !important;
    padding: 30px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    position: relative !important;
    text-align: center !important;
}

/* Service Box Hover Effect */
.service-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Service Icon Wrapper */
.service-icon-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 80px !important;
    height: 80px !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    margin: 0 auto 20px auto !important;
    transition: all 0.3s ease !important;
}

.service-box:hover .service-icon-wrapper {
    background: #e8f5e8 !important;
    transform: scale(1.05) !important;
}

/* Service Icon */
.service-icon {
    width: 40px !important;
    height: 40px !important;
    stroke: #37ac50 !important;
    transition: all 0.3s ease !important;
}

.service-box:hover .service-icon {
    stroke: #2d8f42 !important;
    transform: scale(1.1) !important;
}

/* Service Box Title */
.service-box h4 {
    margin-bottom: 15px !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.service-box:hover h4 {
    color: #37ac50 !important;
}

/* Service Box Text */
.service-box p {
    color: #626262 !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
    margin: 0 !important;
    text-align: center !important;
    flex-grow: 1 !important;
}

/* Service Cards Layout - Single Row */
.items_group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.column.one-fourth {
    flex: 1 !important;
    min-width: 250px !important;
    max-width: calc(25% - 15px) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Mobile Responsiveness - Cards wrap on smaller screens */
@media (max-width: 1024px) {
    .column.one-fourth {
        min-width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (max-width: 767px) {
    .items_group {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .service-box {
        height: auto !important;
        margin-bottom: 0 !important;
        padding: 25px 15px !important;
    }
    
    .column.one-fourth {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .service-icon-wrapper {
        width: 70px !important;
        height: 70px !important;
    }
    
    .service-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .service-box h4 {
        font-size: 16px !important;
    }
    
    .service-box p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .service-box {
        padding: 20px 10px !important;
    }
}

/* === LEGACY BACK TO TOP STYLES REMOVED === */
/* Component-based FAB now used - see components/back-to-top.html */

/* === SCROLL DOWN BUTTON STYLING === */

/* Scroll Down Button - Fixed Position */
#scroll_to_content {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
}

#scroll_to_content:hover {
    background-color: #1e7e34 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
    opacity: 1 !important;
}

#scroll_to_content:focus {
    outline: 3px solid #007bff !important;
    outline-offset: 2px !important;
}

#scroll_to_content span {
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    transform: rotate(180deg) !important;
}

/* Responsive adjustments for scroll down button */
@media (max-width: 768px) {
    #scroll_to_content {
        bottom: 76px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
    
    #scroll_to_content span {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    #scroll_to_content {
        bottom: 68px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    #scroll_to_content span {
        font-size: 16px !important;
    }
}


/* Hide Revolution Slider Navigation Arrows - Ultimate */
.tparrows,
.tp-leftarrow,
.tp-rightarrow,
[class*="tp-leftarrow"],
[class*="tp-rightarrow"],
[class*="tparrows"],
.rs-arrow,
.rs-arrow-left,
.rs-arrow-right,
.rev-slidebg ~ .tparrows,
#rev_slider_1_2 .tparrows,
.rev_slider_wrapper .tparrows,
div[class*="arrow"],
#rev_slider_1_2_wrapper .tparrows,
.fullwidthbanner-container .tparrows,
.tp-arr-allwrapper,
.tp-arr-imgholder,
.tp-arr-imgwrapper,
.tp-arr-titleholder,
.tp-title-wrap,
.icon-right-open-big,
.icon-left-open-big,
i.icon-right-open-big,
i.icon-left-open-big,
[class*="icon-right-open"],
[class*="icon-left-open"],
.tparrows i,
.tparrows span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -9999 !important;
}

/* Custom German Slider Button */
.custom-slider-button {
    background-color: #37ac50 !important;
    color: white !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.custom-slider-button:hover {
    background-color: #2d8a41 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* Service Icons - Modern SVG Icons */
.service-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(55, 172, 80, 0.08);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
}

.service-icon-wrapper:hover {
    background: rgba(55, 172, 80, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(55, 172, 80, 0.2);
}

.service-icon {
    stroke: #37ac50;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
}

.service-icon-wrapper:hover .service-icon {
    stroke: #2d8f42;
    transform: scale(1.05);
}

/* Animation für die Icons beim Laden */
.animate[data-anim-type="zoomIn"] .service-icon-wrapper {
    opacity: 0;
    transform: scale(0.8);
    animation: serviceIconZoomIn 0.6s ease-out forwards;
}

@keyframes serviceIconZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Anpassungen für Icons */
@media (max-width: 768px) {
    .service-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-icon {
        width: 32px;
        height: 32px;
    }
}

/* === ENHANCED ACCESSIBILITY FOCUS STYLES === */

/* Global focus styles for better accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #37ac50 !important;
    outline-offset: 2px !important;
    border-radius: 2px !important;
}

/* Enhanced focus for navigation links */
.nav-link:focus-visible,
.nav-dropdown-link:focus-visible {
    outline: 2px solid #37ac50 !important;
    outline-offset: 2px !important;
    background-color: rgba(55, 172, 80, 0.1) !important;
    border-radius: 4px !important;
}

/* Focus for service boxes */
.service-box:focus-visible {
    outline: 2px solid #37ac50 !important;
    outline-offset: 4px !important;
    transform: translateY(-2px) !important;
}

/* Focus for CTA buttons */
a[style*="background-color: #37ac50"]:focus-visible,
a[href*="#"]:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(55, 172, 80, 0.5) !important;
}

/* Focus for form elements */
#kontaktformular input:focus-visible,
#kontaktformular textarea:focus-visible {
    outline: 2px solid #37ac50 !important;
    outline-offset: 2px !important;
    border-color: #37ac50 !important;
    box-shadow: 0 0 0 3px rgba(55, 172, 80, 0.1) !important;
}

/* Skip to content link (for screen readers) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #37ac50;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* === FOOTER 2025 STYLING === */

.footer-2025 {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f1f5f9;
    padding: 60px 20px 20px;
    margin-top: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-column h4 {
    color: #37ac50 !important;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.footer-column p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column a {
    color: #cbd5e1;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #37ac50 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

