/* =====================================================
   STOREFRONT SHARED FOOTER — Standard fuer alle 9 Shops
   Hintergrund bewusst hardcoded dunkel (PreQ-Standard), damit nicht
   aus Versehen bunte Shop-secondary-900-Werte durchschlagen (z.B.
   PREQ hat secondary-900=#4c1d95 violett).
   Brand-Akzent aus dem Design-System per Inline-Style im DB-Template:
   style="--sf-footer-accent: var(--color-primary-500, #xxx);".
   ===================================================== */
:root {
    --sf-footer-bg: #0E0E11;
    --sf-footer-accent: #22D3EE;
}

/*
 * PreQ-Brand: "Pre" normale Schrift, "Q" fett und in Cyan.
 * Diese Regel muss unter Table-Headern und anderen Kontexten greifen,
 * daher !important gegen generische Shop-CSS (z.B. text-transform:uppercase).
 */
.preq-brand {
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit;
}
.preq-brand > span {
    font-weight: 700 !important;
    color: #22D3EE !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
}
.preq-footer-modern {
    background: var(--sf-footer-bg, #0E0E11);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 2rem;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.75);
}

.preq-footer-modern .container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
}

.preq-fm-top {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.preq-fm-brand {
    flex: 0 0 280px;
}

.preq-fm-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    display: block;
    margin-bottom: 1rem;
}

.preq-fm-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    margin: 0;
}

.preq-fm-links-group {
    flex: 1;
    display: flex;
    gap: 3rem;
}

.preq-fm-col {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.preq-fm-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.preq-fm-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.preq-fm-col a:hover {
    color: var(--sf-footer-accent, #22D3EE);
}

.preq-fm-bottom-legal {
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.preq-fm-bottom-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preq-fm-bottom-brand {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.preq-fm-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    /* Rechts ausrichten — auch wenn die Zeile umbricht und die Nav auf eigener Zeile steht */
    margin-left: auto;
    justify-content: flex-end;
}

.preq-fm-bottom-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.preq-fm-bottom-links a:hover {
    color: #fff;
}

.preq-fm-bottom-cookie {
    padding-top: 16px;
    text-align: center;
}

.preq-fm-cookie-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.preq-fm-cookie-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s;
    position: relative;
}

.preq-fm-cookie-links a:hover {
    color: #fff;
}

.preq-fm-cookie-links a + a::before {
    content: '|';
    position: absolute;
    left: -14px;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .preq-fm-top {
        flex-direction: column;
        gap: 2rem;
    }
    .preq-fm-brand {
        flex: none;
    }
    /* 1-Spalten-Layout fuer alle Cols: 2-Spalten + alleiniges Kontakt
       wirkte unbalanciert (KONTAKT haengt rechts daneben in der Luft). */
    .preq-fm-links-group {
        flex-direction: column;
        gap: 1.75rem;
    }
    .preq-fm-col {
        flex: none;
        width: 100%;
    }
    .preq-fm-bottom-top {
        flex-direction: column;
        text-align: center;
    }
    .preq-fm-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
    .preq-fm-cookie-links {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    /* Floating Widget-Toolbar (4 Bubbles unten rechts) deckt sonst die
       Cookie-Links zu. Extra Bottom-Padding schiebt den letzten Block
       weit genug hoch, damit beide nebeneinander Platz haben. */
    .preq-footer-modern { padding-bottom: 9rem; }
}
