/* ==========================================================================
   MEDSENSE V2 — Footer (Oversized Typo + Marquee)
   Basierend auf Prototyp Footer 5
   ========================================================================== */

.site-footer {
    background: var(--color-extra-dark);
    position: relative;
    overflow: hidden;
}

/* ── Riesiger Hintergrund-Text ── */
.footer-bg-text {
    font-family: var(--font-display);
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

/* ── Marquee Laufband ── */
.footer-marquee {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    overflow: hidden;
}

.footer-marquee:hover .footer-marquee__track {
    animation-play-state: paused;
}

.footer-marquee__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: footerMarquee 50s linear infinite;
}

.footer-marquee__item {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-marquee__item:hover {
    color: rgba(255, 255, 255, 0.5);
}

.footer-marquee__dot {
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    opacity: 0.4;
    flex-shrink: 0;
}

@keyframes footerMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Main Content ── */
.footer-main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 5rem var(--container-padding) 4rem;
    position: relative;
    z-index: 1;
}

/* ── Top: Termin | Logo | Telefon ── */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 180px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-top__action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
    min-width: 80px;
}

.footer-top__action:last-child {
    justify-content: flex-end;
}

.footer-top__action:hover {
    color: var(--color-primary-light);
}

.footer-top__action svg {
    flex-shrink: 0;
}

/* ── Grid: 4 Spalten ── */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    border-top: 1px solid #2c2c2c;
    padding-top: 60px;
}

/* ── Column Headings ── */
.footer-col__heading {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.4s ease;
}

.footer-col:hover .footer-col__heading::after {
    width: 40px;
}

/* ── Links ── */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.3rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    position: relative;
    transition: all 0.3s;
    text-transform: uppercase;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    transform: translateX(4px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links__all {
    margin-top: 0.5rem;
    color: var(--color-primary) !important;
    font-weight: var(--fw-medium);
}

/* ── Contact Items ── */
.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-contact__item svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact__item strong {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact__item a:hover {
    color: var(--color-primary-light);
}

/* ── Social Icons ── */
.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateY(100%);
    transition: transform 0.4s;
    z-index: 0;
}

.footer-social a:hover::before {
    transform: translateY(0);
}

.footer-social a:hover {
    color: var(--color-white);
    border-color: var(--color-primary);
}

.footer-social a svg {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
}

/* ── Bottom Bar ── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.footer-bottom__links {
    display: flex;
    gap: 2rem;
}

.footer-bottom__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-bottom__links a:hover {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 991px) {
    .footer-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-logo {
        order: -1;
        flex-basis: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-top__action {
        min-width: auto;
        justify-content: center;
    }

    .footer-top__action:last-child {
        justify-content: center;
    }
}

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

    .footer-main {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1.5rem;
    }

    .footer-cta__buttons {
        flex-direction: column;
    }
}

/* ── Mobile: zentrierte Spalten + voll klickbare Zeilen ── */
@media (max-width: 767px) {
    .footer-grid {
        gap: 2.5rem;
    }

    /* Spalten-Inhalt zentrieren */
    .footer-col {
        text-align: center;
    }

    /* Überschrift + Unterstrich mittig */
    .footer-col__heading {
        margin-bottom: 0.5rem;
        padding-bottom: 0.9rem;
    }

    .footer-col__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col:hover .footer-col__heading::after {
        transform: translateX(-50%);
    }

    /* Navigations-Listen: ganze Zeile klickbar + Trennlinie unten */
    .footer-links li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .footer-links li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .footer-links a {
        display: block;
        width: 100%;
        padding: 0.95rem 0.5rem;
        text-align: center;
    }

    /* zentrierte Variante: Slide-Effekt + Unterstrich raus */
    .footer-links a:hover {
        transform: none;
        color: var(--color-primary-light);
    }

    .footer-links a::after {
        display: none;
    }

    .footer-links__all {
        margin-top: 0;
    }

    /* Kontakt-Spalte mittig */
    .footer-contact__item {
        justify-content: center;
        text-align: center;
    }

    .footer-contact__item svg {
        display: none;
    }

    .footer-social {
        justify-content: center;
    }
}

