/* 6Flaschen – Legal-Links im eigentlichen App-Footer
 * Stand: 10.09.2026 · r21 Footer Single-Line + Baseline
 */

/* Frühere separate Legal-Footer dürfen nicht zusätzlich erscheinen. */
.app-footer-legal {
    display: none !important;
}

/*
 * Eine einzige Meta-Zeile auf Desktop und Mobile:
 * 6Flaschen · WeinApp · vX | Impressum & Datenschutz | Cookie-Einstellungen
 */
.app-footer-meta {
    width: 100%;
    display: flex;
    align-items: baseline !important;
    justify-content: center;
    gap: 0 8px;
    flex-wrap: nowrap !important;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2 !important;
}

.app-footer-version {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    white-space: nowrap !important;
    text-align: center;
    line-height: 1.2 !important;
}

.app-footer-inline-legal {
    display: inline-flex;
    align-items: baseline !important;
    justify-content: center;
    gap: 0 8px;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    min-width: 0;
    white-space: nowrap;
}

.app-footer-meta-separator {
    display: inline-block;
    flex: 0 0 auto;
    color: inherit;
    opacity: .52;
    line-height: 1.2 !important;
    vertical-align: baseline;
    user-select: none;
}

.app-footer-inline-legal a,
.app-footer-inline-legal .app-footer-inline-legal__consent {
    color: inherit;
    font: inherit;
    font-size: inherit;
    line-height: 1.2 !important;
    display: inline-flex;
    align-items: baseline;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-decoration: none;
    white-space: nowrap;
    opacity: .88;
    transition: opacity .15s ease, color .15s ease;
}

.app-footer-inline-legal .app-footer-inline-legal__consent {
    appearance: none;
    display: inline-flex;
    align-items: baseline;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
}

.app-footer-inline-legal a:hover,
.app-footer-inline-legal a:focus-visible,
.app-footer-inline-legal .app-footer-inline-legal__consent:hover,
.app-footer-inline-legal .app-footer-inline-legal__consent:focus-visible {
    color: #6f282d;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .app-footer-inline-legal a:hover,
html[data-theme="dark"] .app-footer-inline-legal a:focus-visible,
html[data-theme="dark"] .app-footer-inline-legal .app-footer-inline-legal__consent:hover,
html[data-theme="dark"] .app-footer-inline-legal .app-footer-inline-legal__consent:focus-visible {
    color: var(--weinapp-gold-600, #d5b57f);
}

@media (max-width: 760px) {
    .app-footer-meta {
        width: 100%;
        margin-bottom: 10px;
        padding-inline: 2px;
        gap: 0 clamp(3px, 1.1vw, 6px);
        /* Skalierung statt Umbruch. Bei typischen 360–430px bleiben alle Infos sichtbar. */
        font-size: clamp(7.5px, 2.25vw, 11px) !important;
        letter-spacing: 0 !important;
    }

    .app-footer-version,
    .app-footer-inline-legal {
        width: auto !important;
        flex: 0 0 auto !important;
        font-size: inherit !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .app-footer-inline-legal {
        gap: 0 clamp(3px, 1.1vw, 6px);
    }
}

@media (max-width: 360px) {
    .app-footer-meta {
        font-size: clamp(7px, 2.15vw, 8px) !important;
        gap: 0 3px;
    }
    .app-footer-inline-legal { gap: 0 3px; }
}

/* r21: Die ältere Theme-CSS setzt mobil align-items:center !important.
 * Mit höherer Spezifität wird die Text-Baseline für alle Footer-Segmente
 * verbindlich vereinheitlicht. */
html body .app-footer .app-footer-meta {
    align-items: baseline !important;
    line-height: 1.2 !important;
}
html body .app-footer .app-footer-version,
html body .app-footer .app-footer-meta-separator,
html body .app-footer .app-footer-inline-legal,
html body .app-footer .app-footer-inline-legal > a,
html body .app-footer .app-footer-inline-legal > .app-footer-inline-legal__consent {
    line-height: 1.2 !important;
    vertical-align: baseline !important;
}
html body .app-footer .app-footer-inline-legal {
    align-items: baseline !important;
}
html body .app-footer .app-footer-inline-legal > a,
html body .app-footer .app-footer-inline-legal > .app-footer-inline-legal__consent {
    align-items: baseline !important;
    align-self: baseline !important;
}
