:root {
    --white: #ffffff;
    --paleblue: #c3f6ff;
    --lightblue: #078bd9;
    --blue: #1e90ff;
    --smallmenublue: #001aff;
    --middleblue: #041ade;   
    --darkblue: #00275b;  
    --orange: #ffcf00;
    --yellow: #ffff00;
    --red: #ff0019;
    --green: #3cff00;
}

/* ---------------- BODY & LAYOUT (NEU mit CSS Grid) ---------------- */

body {
    background:
    linear-gradient(180deg, #00000ff5 100%),
        url(/mxsg/images/general/Hexa_25_110.gif);
    background-repeat: repeat;
    background-position: 0% 30%;
    background-size: 103% auto;
    
    /* --- NEU: Layout mit CSS Grid --- */
    display: grid;
    grid-template-rows: 1fr auto; /* 1. Reihe (main-content) füllt allen Platz, 2. Reihe (footer) ist so hoch wie nötig */
    min-height: 100vh;
    margin: 0;
}

.main-content {
    /* --- NEU: Zentriert den Inhalt innerhalb der ersten Grid-Reihe --- */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Media Queries für den Hintergrund bleiben unverändert */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 820px) and (orientation: portrait) {
        body { background-image: none !important; background-color: #00000ff5 !important; }
    }
}
@media (max-width: 820px), (orientation: portrait) {
    body { background: linear-gradient(180deg, #00000ff5 100%) !important; }
}

/* ---------------- TEXTSTILE & BILD ---------------- */

.standard {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    color: var(--lightblue);
}

h2.standard a:hover .mark {
    text-shadow: 0 0 8px var(--paleblue);
    opacity: 0.9;
    transition: all 0.2s ease-in-out;
}

.community-footer-block {
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
}

.community-image {
    display: block;
    margin: 0.5rem auto 0 auto;
    max-width: 200px;
    width: 60%;
    height: auto;
}

/* ---------------- FARBVERLAUF-TEXTEFFEKTE ---------------- */

.x-menu-normalfont {
    background-image: linear-gradient(-25deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 3s ease-in-out infinite;
    display: inline-block;
    font-family: 'Orbitron', cursive;
    font-size: 1.5rem;
}

.mark {
    background-image: linear-gradient(-25deg, #f8e71c 0%, #f9d423 30%, #ff0019 70%, #c10000 100%);
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 3s ease-in-out infinite;
    display: inline-block;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
}

/* ---------------- ANIMATION für Texteffekte ---------------- */
@keyframes textclip {
    50% { background-position: 20% center; }
    0% { background-position: 200% center; }
}

/* ---------------- FOOTER (jetzt als Teil des Grids) ---------------- */
.container-fluid.footer {
    /* --- GEÄNDERT: 'position: fixed' und zugehörige Werte entfernt --- */
    background: black;
    font-family: 'Orbitron', sans-serif;
    color: var(--blue);
    border-top: 4px solid var(--darkblue);
    box-shadow: inset 0px 4px 8px -2px var(--darkblue);
    text-align: center;
    width: 100%; /* Statt 100vw, da es jetzt im normalen Fluss ist */
    padding-top: 10px;
    box-sizing: border-box;
    z-index: 999;
}