/**
 * 
 * michaelhamann.org, Portfolio
 * 
 * PHP Version 8
 * 
 * @category    Portfolio
 * @package     portfolio
 * @author      Michael Hamann <info@michaelhamann.org>
 * @copyright   2024 michaelhamann.org
 * @link        https://www.michaelhamann.org
 * 
 */

/* Footer-Styling */
.footer {
    padding: 10px;
    color: var(--color-footer-text);
    box-sizing: border-box;
    width: 100%;
    background-color: var(--color-footer-background); /* Hintergrundfarbe */
    border-top: 1px solid #ffffff; /* Obere Linie */
    position: fixed; /* Fixierter Footer */
    bottom: 0; /* Am unteren Rand fixieren */
    left: 0; /* Beginnend von ganz links */
    z-index: 1000; /* Sicherstellen, dass der Footer über anderen Elementen liegt */
}

.footer_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Zentrierter Footer-Bereich */
.footer_center {
    flex-grow: 1; /* Wächst flexibel, um Platz auszufüllen */
    text-align: center; /* Zentrierter Text */
    padding: 5px;
}

/* Linke und rechte Bereiche */
.footer_left,
.footer_right {
    padding: 5px;
}

/* Links Styling */
.footer a {
    color: var(--color-footer-text);
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-footer-text);
    text-decoration: none;
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .footer_row {
        flex-direction: column;
        text-align: center;
    }

    .footer_left,
    .footer_center,
    .footer_right {
        width: 100%;
        padding: 5px 0;
    }
}

/* Mobile Anpassungen für 540px */
@media screen and (max-width: 540px) {
    .footer {
        padding: 5px;
        font-size: 12px; /* Kleinere Schriftgröße */
    }

    .footer_left,
    .footer_center,
    .footer_right {
        padding: 3px 0;
        font-size: 10px; /* Noch kleinere Schriftgröße für kleine Displays */
        line-height: 1.4; /* Verbesserte Lesbarkeit */
    }

    .footer a {
        font-size: 10px; /* Kleinere Links */
    }
}

