/* Globale Box-Modell-Einstellungen */
html {
    box-sizing: border-box;
    background-color: #000000;
    
}

*

/* Hintergrundbild über gesamten Viewport – über absoluten Pfad */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/template/gs_new/Screenshot_38.png');
    background-position: center 10%;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    background-attachment: fixed;
    z-index: -1;
}

/* Body mit Grid-Layout */
body {
    position: relative; /* wichtig für ::before */
    display: grid;
    grid-template-columns: minmax(180px, 300px) 1fr minmax(180px, 300px);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header header"
        "nav main aside"
        "footer footer footer";
    
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    grid-area: header;
    width: 100%;
    height: 800px;
    background: url(Schrift.png) no-repeat center center / cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    mix-blend-mode: screen;
    animation: fadeIn 3s ease-in-out;
    margin-right: 550px;
    background-position: center center;
     background-size: contain;
     background-position: 65% center;
     margin-top: -257px;
    
    
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

header ul {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

header li a {
    display: block;
    width: 120px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

header li a:hover,
header li .selected {
    color: #00ffff;
    background-color: #005555;
    box-shadow: 0 6px 12px rgba(0, 255, 255, 0.3);
}

/* Navigation & Aside */
nav, aside {
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

nav { grid-area: nav; }
main { grid-area: main; }
aside { grid-area: aside; }

nav article[name]::before,
aside article[name]::before {
    content: attr(name);
    display: block;
    width: 100%;
    height: 40px;
    line-height: 45px;
    color: #e0ffff;
    font-size: 18px;
    font-family: Georgia, serif;
    font-style: oblique;
    font-weight: bold;
    border-radius: 15px;
    border: 5px solid transparent;
    background-size: cover;
    animation: borderAnimation 10s infinite linear;
    margin-bottom: 15px;
}

nav li a,
aside li a {
    display: block;
    width: calc(100% - 10px);
    height: 24px;
    line-height: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    margin: 5px auto;
    background-color: #222;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav li a:hover,
nav li .selected,
aside li a:hover,
aside li .selected {
    color: #00ffff;
    background-color: #004444;
}

/* Hauptinhalt */
main, section {
    color: #ffffff;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

main article[name]::before,
section article[name]::before {
    content: attr(name);
    display: block;
    width: 100%;
    height: 35px;
    line-height: 35px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 15px;
}

main a, section a {
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

main a:hover, section a:hover {
    color: #00ffff;
}

/* Footer */
footer {
    grid-area: footer;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-image: url('/template/gs_new/2controller.png');
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    mix-blend-mode: screen;;
}

footer ul {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

footer li a {
    display: block;
    width: 120px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer li a:hover,
footer li .selected {
    color: #00ffff;
    background-color: #005555;
    box-shadow: 0 6px 12px rgba(0, 255, 255, 0.3);
}

footer p {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

footer a {
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00ffff;
}

/* Animation für Titelrahmen */
@keyframes borderAnimation {
    0% { border-color: rgb(29, 160, 226); }
    20% { border-color: rgb(21, 151, 153); }
    40% { border-color: rgb(170, 90, 30); }
    60% { border-color: rgb(13, 192, 123); }
    80% { border-color: rgb(175, 113, 6); }
    100% { border-color: rgb(212, 82, 30); }
}
/* ========== MEDIA QUERIES ========== */

/* Für Laptops (ab 1024px) – Standardlayout bleibt erhalten */
@media (min-width: 1024px) {
    /* Keine Änderungen nötig – Desktop-Layout greift */
}

/* Für Tablets (768px bis 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    body {
        grid-template-columns: 1fr; /* Eine Spalte */
        grid-template-areas:
            "header"
            "nav"
            "main"
            "aside"
            "footer";
    }

    header {
        height: 500px;
        margin-top: -100px;
    }

    nav, aside {
        padding: 10px;
    }

    main, section {
        padding: 15px;
    }

    header ul {
        flex-direction: column;
        gap: 5px;
    }

    footer ul {
        flex-direction: column;
        gap: 5px;
    }
}

/* Für Handys (unter 768px) */
@media (max-width: 767px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "nav"
            "aside"
            "footer";
    }

    header {
        height: 350px;
        margin-top: -80px;
        background-position: center;
        background-size: cover;
    }

    nav, aside {
        padding: 8px;
    }

    main, section {
        padding: 10px;
        font-size: 13px;
    }

    header ul,
    footer ul {
        flex-direction: column;
        gap: 4px;
    }

    header li a,
    footer li a {
        width: 100px;
        font-size: 12px;
    }
}

