.footer {
    background-color: var(--accent);
    padding: 3rem 1.5rem 2rem;
    font-family: 'Inter', sans-serif;
}

/* ===== Basis (Mobile first) ===== */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    width: 100px;
    height: auto;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bs-logo {
    width: 90px;
    height: auto;
}

.footer-contact i {
    color: #ccc !important;
    margin-right: 8px;
}

.footer-contact p {
    margin: 0.3rem 0;
    font-size: 1rem;
    color: #cccccc;
}

.footer-contact a {
    color: #ccc !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

/* ===== Desktop: optisch mittig ===== */
@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: auto 1fr auto; /* links | freier Raum | rechts */
        align-items: center;
        gap: 0;
        text-align: left;
    }

    .footer-logo {
        width: 355px;
        text-align: end;
    }

    .footer-right {
        justify-self: end;      /* bleibt rechts */
        display: inline-flex;   /* shrink-to-fit */
        align-items: center;
        gap: 1.5rem;
        width: 355px;
    }

    .footer-contact {
        text-align: left;
    }
}

/* ===== Footer-Bottom ===== */
.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: #aaa;
}

.footer-bottom a {
    color: #ccc !important;
    text-decoration: none;
    margin: 0 0.3rem;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ===== Back-to-top Button ===== */
.to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--accent);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
    width: 50px;
    height: 50px;
}

.to-top-btn:hover {
    transform: translateY(-3px);
}