/* === Allgemeine Stile === */
body.home-background {
    background-image: url('/media/images/main/Main_Background_01.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}
:root {
    --nav-button-text-color: #ffffff;  /* Standardfarbe für den Text der Navigationsbuttons */
    --nav-button-hover-color: #5DADE2; /* Farbe des Textes beim Hover */
    --nav-button-font-size: 1.6rem;      /* Schriftgröße der Navigationsbuttons */
} 

html {
    scroll-behavior: smooth; /* Sanftes Scrollen */
}

/* === Hauptcontainer === */
.main-container {
    margin-top: 60px; /* Platz für fixierten Header */
    margin-bottom: 40px; /* Platz für fixierten Footer */
    overflow-y: auto; /* Vertikales Scrollen ermöglichen */
    padding: 20px;
    max-width: auto; /* Maximale Breite */
    margin-left: auto;
    margin-right: auto;
}

/* === Header-Stile === */
header.navbar {
    position: fixed; /* Header bleibt fest */
    top: 0;
    left: 0;
    width: 100%; /* Volle Breite */
    z-index: 1000; /* Immer im Vordergrund */
    background: rgba(0, 0, 0, 0.9); /* Dunkler Hintergrund */

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Schatteneffekt */
	
    padding: 15px 0;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

/* Header-Inhalt */
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

header .mr-title {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: url('/media/images/main/MR_01_logo.png') no-repeat left center;
    background-size: contain;
    height: calc(1.5rem + 1.5vw);
    width: calc(1.5rem + 1.5vw);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

header .mr-title a {
    display: block;
    height: 100%;
    width: 100%;
    color: #fff;
    text-decoration: none;
}

header .mr-title a:hover {
    text-decoration: underline;
}

/* Header-Text (Titel und Navigation) */
header h1, header h2 {
    margin: 0;
    padding: 20px 10px 5px calc(2rem + 2vw);
    font-size: calc(1.5rem + 1vw);
    letter-spacing: 0.25vw;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    display: flex;
    justify-content: center;
    gap: calc(0.5rem + 0.5vw);
    flex-wrap: wrap;
}

header nav ul li a {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    padding: calc(0.2rem + 0.3vw) calc(0.4rem + 0.6vw);
    font-size: calc(0.8rem + 0.5vw);
    border-radius: 0.2vw;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(40, 90, 255, 0.8);
}

/* === Footer-Stile === */
footer {
    position: fixed; /* Footer bleibt fest */
    bottom: 0;
    left: 0;
    width: 100%; /* Volle Breite */
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    font-size: calc(0.7rem + 0.5vw);
    z-index: 1000;
    box-sizing: border-box;
    padding: 10px 0;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: calc(0.5rem + 0.5vw);
    flex-wrap: wrap;
}

footer nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: calc(0.7rem + 0.5vw);
}

footer nav ul li a:hover {
    text-decoration: underline;
}

/* Copyright und Besucherzähler im Footer */
footer .copyright, .visitor-counter {
    font-size: calc(0.6rem + 0.4vw);
    color: #ccc;
}

.visitor-counter {
    position: absolute;
    right: 3vw;
    bottom: 1vw;
}

/* === Metadaten-Stile === */
.meta-container {
    display: table;
    width: 99%;
}

.meta-left {
    display: table-cell;
    text-align: left;
}

.meta-right {
    display: table-cell;
    text-align: right;
}

/* === Responsive Stile === */
@media (max-width: 1024px) {
    header, footer {
        font-size: calc(1rem + 1.5vw);
    }

    header .mr-title {
        height: calc(2rem + 2vw);
        width: calc(2rem + 2vw);
    }

    header h1, header h2 {
        font-size: calc(2rem + 2vw);
    }
}

@media (max-width: 768px) {
    header, footer {
        font-size: calc(1.5rem + 2vw);
    }

    header .mr-title {
        height: calc(3rem + 3vw);
        width: calc(3rem + 3vw);
    }

    footer {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    header, footer {
        font-size: calc(2rem + 3vw);
    }

    header .mr-title {
        height: calc(4rem + 4vw);
        width: calc(4rem + 4vw);
    }
}
