html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
}

footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 0.8rem 0;
    width: 100%;
    margin-top: 1.2rem;
}

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

.no-select {
    user-select: none;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .copyright {
    font-size: 0.9rem;
    margin-bottom: 0rem;
}

.footer-brand .rights {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #e2e2e2;
    transform: translateX(3px);
}

.connect-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.2rem;
}

.contact-us {
    display: flex;
    align-items: center;
}

/* Styles für den Button im Footer */
.contact-us .btn {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    line-height: 1.5;
}

.contact-us .btn i {
    font-size: 0.8rem;
    margin-right: 0.2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem; /* Reduziertes Padding */
    border-radius: 3px;
    transition: all 0.3s ease;
    line-height: 1.2; /* Reduzierte Linienhöhe */
    height: auto;
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-btn i {
    font-size: 0.9rem;
}

.social-media {
    display: flex;
    gap: 0.8rem;
    align-items: center; /* Ausrichtung mit dem Button */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 1.9rem; /* Angepasste Höhe, um mit den anderen Links übereinzustimmen */
    aspect-ratio: 1/1; /* Garantiert quadratische Form */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 1rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0.7rem;
}

.credits {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.credits:hover {
    opacity: 1;
}

.credits a {
    color: #f5f5f5;
    text-decoration: none;
}

.credits .fa-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

.back-to-top {
    margin-top: 0.3rem;
}

.top-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-link:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
    transform: translateY(-3px);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: row;
        align-items: center; /* Zentrale vertikale Ausrichtung für alle Elemente */
        gap: 1.7rem;
    }
    
    .legal-links {
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
    }
    
    .connect-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-top: 0;
        height: 100%; /* Volle Höhe des Containers */
        display: flex;
    }
    
    /* Anpassung für den Bootstrap-Button, falls verwendet */
    .contact-us .btn {
        padding: 0.2rem 0.6rem;
        line-height: 1.2;
        height: auto;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        justify-content: center;
    }
    
    .back-to-top {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .footer-link:hover {
        transform: translateY(-3px);
    }
    
    .connect-wrapper {
        gap: 1.5rem;
    }
}