﻿.site-footer {
    position: relative;
    width: 100vw;            /* volle Viewport-Breite */
    left: 50%;
    margin-left: -50vw;
    background: var(--navbar-color);
    color: #fff;
    overflow: hidden;
}

/* Hintergrund bündig unten */
.footer-bg {
    position: absolute;
    bottom: 0;               /* fixiert am unteren Rand */
    left: 0;
    right: 0;
    height: 160px;           /* Höhe des Schattens */
    background-image: url('../assets/img/footer-shadow.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 160px;
    z-index: 0;
    margin-bottom:0
}

/* Inhalt über dem Hintergrund */
.site-footer .container {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;    /* sorgt für bündigen Abschluss */
}

html, body {
    height: 100%;          /* volle Höhe */
    margin: 0;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;               /* füllt den Platz zwischen Header und Footer */
}

.site-footer {
    margin-top: auto;      /* Footer rutscht automatisch nach unten */
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    background: var(--navbar-color);
    color: #fff;
    overflow: hidden;
}

/* Hintergrund bündig unten */
.footer-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background-image: url('../assets/img/footer-shadow.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 160px;
    z-index: 0;
}

/* Inhalt über dem Hintergrund */
.site-footer .container {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
