:root {
    --mobile: 480px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1200px;
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base Responsive Styles */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Container */
.container,
.et_pb_row {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography Scaling */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
    }
}

/* Mobile Layout - Stacking Columns & Fix Padding */
@media (max-width: 980px) {
    .et_pb_column {
        width: 100% !important;
        margin-bottom: 30px;
    }

    .et_pb_row {
        width: 96% !important;
        /* 2% gap on each side */
        max-width: 96% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }

    .et_pb_section {
        padding: 40px 10px !important;
    }
}

/* FORCE Social Icons Styling - MATCH HOME PAGE EXACTLY */
body .footer-social-icons {
    display: flex !important;
    gap: 20px !important;
    margin-top: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both !important;
    flex-wrap: nowrap !important;
}

body .footer-social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    background: transparent !important;
    /* Explicitly remove any background */
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    /* Ensure generic width is unset */
    height: auto !important;
    /* Ensure generic height is unset */
    padding: 0 !important;
    margin: 0 !important;
}

body .footer-social-icons a:hover {
    color: #E48720 !important;
    transform: translateY(-3px) !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body .footer-social-icons svg {
    width: 48px !important;
    height: 48px !important;
    fill: currentColor !important;
    transform: none !important;
    /* Prevent double transforms */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* Footer widget spacing & CTA Section Fix */
@media (max-width: 768px) {
    #footer-widgets .footer-widget {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* Fixed: CTA Section text spacing */
    .cta-unten .et_pb_row {
        width: 96% !important;
        padding: 30px 15px !important;
    }

    .cta-unten h2 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 5px !important;
        /* Minimized space */
    }

    .cta-unten p {
        margin-top: 0 !important;
        /* Minimized space */
    }
}
