/* Extracted from cage-quests-homepage.html (footer section) */
.cq-footer {
    position: relative;
    background: var(--surface);
    border-top: 1px solid var(--glass-border);
    z-index: 10;
}

.cq-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(178, 148, 116, 0.3), transparent);
}

.cq-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem clamp(1.5rem, 3vw, 3rem) 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.cq-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cq-footer-logo {
    height: 118px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
    display: block;
}

.cq-footer-logo:hover {
    opacity: 1;
}

.cq-footer-tagline {
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 240px;
}

.cq-footer-tagline strong {
    color: var(--gold);
    font-weight: 400;
}

.cq-footer-heading {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.3rem;
    /* opacity: 0.7 entfernt — verursachte #806b54 (ratio 3.91), unter WCAG-AA.
       Volles --gold auf --surface = 6.96 (AA). */
}

.cq-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.cq-footer-link {
    display: flex;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all 0.25s var(--ease);
}

.cq-footer-link::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--gold);
    margin-right: 0;
    transition: all 0.3s var(--ease);
}

.cq-footer-link:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.cq-footer-link:hover::before {
    width: 10px;
    margin-right: 6px;
}

.cq-footer-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 1px 6px;
    border: 1px solid var(--warn);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warn);
}

.cq-footer-link-badge-dot {
    width: 4px;
    height: 4px;
    background: var(--warn);
    border-radius: 50%;
}

/* ═══ NAP-Block je Standort (Adresse + Tel) ═══ */
.cq-footer-nap {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.cq-footer-nap:last-child { margin-bottom: 0; }

.cq-footer-nap-city {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.cq-footer-nap-line {
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

.cq-footer-nap-phone {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s;
}

.cq-footer-nap-phone:hover { color: var(--gold); }

.cq-footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cq-footer-hour-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Zusatz-Hinweiszeile unter den Öffnungszeiten.
   Vorher Inline-Style mit rgba(…0.4) = ratio 3.77 (WCAG-Fail).
   rgba(…0.6) = --text-muted = ratio 7.30 (AAA). */
.cq-footer-hour-note {
    border: none;
    padding-top: 0.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.cq-footer-hour-day {
    color: rgba(255, 255, 255, 0.7);
}

.cq-footer-hour-time {
    font-variant-numeric: tabular-nums;
}

.cq-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    padding: 4px 10px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Geöffnet — grün */
.cq-footer-status.is-open {
    background: rgba(24, 194, 126, 0.06);
    border: 1px solid rgba(24, 194, 126, 0.2);
    color: var(--ok);
}

.cq-footer-status.is-open .cq-footer-status-dot {
    background: var(--ok);
    animation: footerPulse 2s infinite;
}

/* Geschlossen — rot/dezent */
.cq-footer-status.is-closed {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

.cq-footer-status.is-closed .cq-footer-status-dot {
    background: rgba(255, 255, 255, 0.4);
    animation: none;
}

.cq-footer-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

@keyframes footerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(24, 194, 126, 0.5)
    }

    50% {
        box-shadow: 0 0 0 5px rgba(24, 194, 126, 0)
    }
}

.cq-footer-social {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.cq-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.cq-footer-social-link+.cq-footer-social-link {
    border-left: none;
}

.cq-footer-social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 148, 116, 0.2);
}

.cq-footer-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.cq-footer-bar {
    border-top: 1px solid var(--glass-border);
}

.cq-footer-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cq-footer-copy {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
}

.cq-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.cq-footer-legal a {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.25s;
}

.cq-footer-legal a:hover {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .cq-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .cq-footer-brand {
        grid-column: 1/-1;
    }
}

@media (max-width: 600px) {
    .cq-footer-main {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 2rem;
    }

    .cq-footer-brand {
        align-items: center;
        text-align: center;
    }

    .cq-footer-tagline {
        max-width: none;
    }

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

    .cq-footer-bar-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — LOCATION CARDS
   ══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .cq-locations {
        flex-wrap: wrap;
    }

    .cq-loc-card {
        width: 100%;
        max-width: 420px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .cq-locations {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cq-loc-card {
        width: 100%;
        min-width: auto;
    }

    .cq-loc-card.expanded .cq-loc-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cq-loc-rooms {
        grid-template-columns: repeat(2, 1fr);
    }

    body {
        padding-bottom: 70px;
    }
}

/* ══ Footer Bottom ══ */
.cq-footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .cq-footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}