/* ===== FOOTER VARIABLES ===== */
:root {
    --footer-bg-color: #4a4a4a;
    --footer-text-color: #ffffff;
    --footer-hover-color: #d32f2f;
    --footer-spacing: 2rem;
    --footer-logo-width-mobile: 40%;
    --footer-logo-width-tablet: 30%;
    --footer-logo-width-desktop: 20%;
    --footer-breakpoint-mobile: 600px;
    --footer-breakpoint-tablet: 1000px;
}

/* ===== FOOTER BASE STYLES (Mobile First) ===== */
footer {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 50%, #3a3a3a 100%);
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 0;
}

.footer-logo {
    width: var(--footer-logo-width-mobile);
    height: auto;
    padding: 0;
    margin: 0;
    align-self: stretch;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    margin: 0;
    object-fit: cover;
}

.footer-content {
    flex: 1;
    padding: 1rem;
}

.footer-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

/* Address styles - reset browser default address styling */
.footer-address {
    font-style: normal;
}

.footer-address,
.footer-links,
.footer-social {
    width: 100%;
}

.footer-address h4,
.footer-links h4,
.footer-social h4 {
    margin-bottom: 0.5rem;
}

/* Unified list styles */
.footer-links ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.footer-links li,
.footer-social li {
    display: inline;
}

/* Unified link styles */
.footer-links a,
.footer-social a {
    color: var(--footer-text-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a {
    text-decoration: underline;
}

.footer-social a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--footer-hover-color);
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
.footer-links a:focus,
.footer-social a:focus {
    outline: 2px solid var(--footer-hover-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Social Media Icons */
.footer-social .social-link i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.footer-social .social-link span {
    vertical-align: middle;
}

/* Copyright section */
.footer-copyright {
    margin-top: 1rem;
    text-align: left;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

.separator {
    display: inline-block;
    margin: 0 0.5rem;
}

.footer-email {
    display: inline;
    margin-top: 0;
}

/* ===== MOBILE & TABLET SMALL (max-width: 1000px) ===== */
@media (max-width: 1000px) {
    .footer-logo {
        width: 30%;
        height: 50vw;
    }

    .footer-copyright p {
        font-size: 1.2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .separator {
        display: none;
    }

    .footer-email {
        display: block;
        margin-top: 0.5rem;
        width: 100%;
    }

    .footer-columns {
        gap: 0.75rem;
    }

    .footer-address h4,
    .footer-links h4,
    .footer-social h4 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .footer-address p,
    .footer-links a,
    .footer-social a {
        font-size: 1.1rem;
    }
}

@media (max-width: 800px) {
    .footer-logo {
        width: 30%;
        height: auto;
    }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 600px) {
    .footer-logo {
        width: var(--footer-logo-width-tablet);
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1000px) {
    .footer-logo {
        width: var(--footer-logo-width-desktop);
    }

    .footer-content {
        padding: var(--footer-spacing) 2rem;
    }

    .footer-columns {
        flex-direction: row;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .footer-address,
    .footer-links,
    .footer-social {
        width: 33.333%;
        padding-right: 1.5rem;
        position: relative;
    }

    /* Trennlinien zwischen den Spalten */
    .footer-address::after,
    .footer-links::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%
        );
    }

    .footer-social {
        padding-right: 0;
    }

    .footer-address h4,
    .footer-links h4,
    .footer-social h4 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .footer-address p,
    .footer-links a,
    .footer-social a {
        font-size: 1.2rem;
    }

    .footer-copyright {
        margin-top: var(--footer-spacing);
    }

    .footer-copyright p {
        font-size: 1.2rem;
    }
}

/* ===== LARGE DESKTOP STYLES ===== */
@media (min-width: 1400px) {
    .footer-address h4,
    .footer-links h4,
    .footer-social h4 {
        font-size: 1.8rem;
        margin-bottom: 0.7rem;
    }

    .footer-address p,
    .footer-links a,
    .footer-social a {
        font-size: 1.4rem;
    }

    .footer-copyright p {
        font-size: 1.4rem;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--footer-hover-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b71c1c;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.back-to-top:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}