/*
 * footer.css
 *
 * Weisses, abgesetztes Footer-Band (Bauform A - Contained).
 * Nach page.css / header.css einbinden.
 *
 * Liegt wie das Header-Band INNERHALB von .page und ist damit
 * exakt so breit wie Header und Inhalt. Die weisse Flaeche
 * kommt aus .surface - im Markup <div class="site-footer surface">.
 *
 * Struktur, ausgegeben von footer.php:
 *
 *   .site-footer.surface
 *     .footer-navigation
 *       div               Link Kontrollpult
 *       .footer-right     Link zur Domain, optional
 *     .footer-meta
 *       .footer-up
 *       .copyright
 *       .powered-by       optional
 *
 * Korrekturen gegenueber dem alten footers.css:
 *  1. Kein padding-left/right:35px. Die 35px waren auf den alten
 *     neworder-Container zugeschnitten und haben den Footer
 *     gegenueber dem Inhalt eingerueckt. Der seitliche Abstand
 *     kommt jetzt aus dem Band-Padding, identisch zum Header.
 *  2. .powered-by img 120px -> 88px. Das Markup war in beiden
 *     Scripts width="88"; die 120px haben das Logo um 36%
 *     horizontal verzerrt.
 *  3. .footer-meta display:table -> flex, konsistent mit .header.
 *  4. .footer-navigation hat kein border-top mehr - die obere
 *     Kante des Bandes leistet das jetzt.
 */


/* =========================================================
   BAND
   ========================================================= */

.site-footer {
    margin-top: 20px;

    padding: 12px 15px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.footer-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-navigation > div:first-child {
    text-align: left;
}

.footer-navigation .footer-right {
    text-align: right;
}

.footer-navigation a {
    color: var(--link);

    text-decoration: none;
}

.footer-navigation a:hover {
    color: var(--link-hover);

    text-decoration: underline;
}


/* =========================================================
   META (Nach oben / Copyright / Powered by)
   ========================================================= */

.footer-meta {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid var(--surface-border);

    display: flex;
    align-items: center;

    gap: 15px;
}

.footer-up {
    flex: 0 0 auto;
}

.footer-up img {
    display: block;

    border: 0;
}

.copyright {
    flex: 1;

    text-align: center;

    color: var(--text-faint);

    font-size: 14px;
    line-height: 1.5;
}

.powered-by {
    flex: 0 0 auto;
}

.powered-by img {
    display: block;

    width: 88px;
    height: 44px;

    border: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 700px) {

    .site-footer {
        padding: 10px 12px;
    }

    .footer-navigation {
        font-size: 15px;
    }

}
