* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

/* Verhindert horizontales Scrollen */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #ff0000, #00841a, #eaff00);
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: url("Bilder/homepage.JPG");
    background-position: top center;
    background-size: 100% 120%;
    position: relative;
    background-repeat: no-repeat;
    /* Verhindert die Wiederholung */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.fa-xmark {
    font-size: 50px;
}

/*-- Navigation --*/
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 150px;

}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #ffffff;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 90%;
}

.nav-links ul li.active::after {
    width: 90%;
    content: '';
    height: 2px;
    background: #ffffff;
    display: block;
    margin: auto;
}

/*-- General --*/
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn-black {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    padding: 12px 34px;
    font-size: 13px;
    position: relative;
    cursor: pointer;
    background: #000000;
    border: 1px solid #000000;
    transition: 0.5s;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}

.hero-btn-black:hover {
    border: 1px solid #ffaa00;
    background: #ffaa00;
    transition: 0.5s;
    box-shadow: 0 0 10px 0px rgb(255, 255, 255);
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

a {
    color: #ffff00;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Desktop: Icons ausblenden */
nav i[class*="fa-"] {
    display: none;
}

/*----- games -----*/
.games {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.games-page {
    padding: 0px 0;
    background-image: url("Bilder/desert.jpg");
    background-position: center;
    background-size: cover;
}

body.games-page .header {
    background-image: none;
    min-height: 80vh;
    width: 100%;
    background-position: 50% 70%;
    background-size: cover;
    position: relative;
    background-size: 150%;
    margin-bottom: -200px;
}

.games-page .header {
    min-height: auto;
    padding: 0px;
}

.games-col {
    flex-basis: 23%;
    background: #ffb700;
    border-radius: 10px;
    margin-bottom: 10%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.games-col:hover {
    box-shadow: 0 0 20px 0px rgb(255, 255, 255);
}

.game-panel {
    flex-basis: 100%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(100px);
    margin: 0 0 100px 0;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 50px;
    transition: 0.5s;
    border-radius: 30px;
}

.game-panel:hover {
    box-shadow: 0 0 20px 0px rgb(255, 255, 255);
}

.game-panel video {
    height: auto;
    max-height: 350px;
}

.game-panel .frame-container {
    border: 2px solid #000;
    padding: 20px;
    border-radius: 30px;
    flex-shrink: 0;
    min-width: 500px;
}

.game-panel .frame-container video {
    width: 100%;
    max-width: 1500px;
    display: block;
}

.game-panel .frame-container .hero-btn-black {
    display: block;
    text-align: center;
    margin-top: 10px;
}

.game-panel .text-container {
    flex-grow: 3;
    max-width: none;
}

.game-panel .text-container ul {
    padding-left: 60px;
    margin-left: 0;
    display: inline-block;
    text-align: left;
}

.game-panel .text-container li {
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    padding: 5px;
}

/*----------- music ----------*/
.music {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    margin-top: -100px;
}

.music-page {
    background-image: url('Bilder/venus_stars.png');
    background-position: center;
    background-size: cover;
}

.music-page .header {
    background-image: none;
}

.music-col {
    flex-basis: 23%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    max-height: 500px;
}

.music-col img {
    width: 100%;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(255, 255, 255, 0.615);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #000000;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
    ;
}


/*----------- contact ----------*/
.contact {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    margin-top: -100px;
}

.contact-page {
    background-image: url('Bilder/contact.jpg');
    background-position: center;
    background-size: cover;
}

.contact-page .header {
    background-image: none;
    min-height: auto;
    height: 200px;
}

/* Kontaktformular */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-col {
    flex-basis: 100%;
    margin-bottom: 20px;
}

.contact-col input,
.contact-col textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    box-sizing: border-box;
}

.contact-col textarea {
    resize: vertical;
}

.contact-col label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #fff;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-col input[type="text"]#captcha {
    width: 50%;
    text-align: center;
}

.contact-form .hero-btn {
    width: 100%;
    text-align: center;
}

/*-------- links ---------*/
.links {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facilities-col {
    flex-basis: 23%;
    border-radius: 10px;
    margin-bottom: 0;
    text-align: left;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

.facilities-col:hover {
    box-shadow: 0 0 100px 50px rgb(255, 255, 255);
}

.facilities-col img {
    border-radius: 10px;
    width: 300px;
    height: 300px;
    max-width: 100%;
    /* Verhindert, dass Bilder über Container hinausragen */
    object-fit: cover;
    /* Behält das Seitenverhältnis bei */
    display: block;
}

.facilities-col p {
    padding: 0;
}

.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;
}

/*-----------footer----------*/
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.icons {
    color: #f44336;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}

.icons i {
    font-size: 50px;
}

.fa-solid.fa-heart {
    color: #f44336;
}

.fa-brands.fa-instagram {
    color: #ff782a;
}

.fa-brands.fa-spotify {
    color: #15ff00;
}

.fa-brands.fa-github {
    color: #b400c8;
}

.fa-brands.fa-youtube{
    color: #ff0000;
}


/* music and voting */
.song-container {
    background: #5ba5ff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    padding: 24px;
    margin-bottom: 8px;
}
.vote-buttons button {
    font-family: 'Montserrat', sans-serif;
    background: #007bff;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    margin-right: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.vote-buttons button:hover:enabled {
    background: #0056b3;
}

@media(max-width: 768px) {
    .text-box h1 {
        font-size: 20px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: absolute;
        background: #ff8800;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav i[class*="fa-"] {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px
    }

    /* Entferne den bestehenden .active-Stil */
    .nav-links ul li.active::after {
        display: none;
        /* Deaktiviere den bestehenden Unterstrich */
    }

    /* Füge den Unterstrich direkt auf das <a>-Tag */
    .nav-links ul li.active a {
        border-bottom: 2px solid #ffffff;
        display: inline-block;
    }

    .row {
        flex-direction: column;
        gap: 20px;
    }

    .game-panel {
        flex-direction: column;
        gap: 20px;
    }

    .game-panel:nth-child(odd) {
        flex-direction: column;
    }

    .game-panel .frame-container {
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .game-panel .text-container {
        width: 100%;
        order: -1;
    }

    /*-- contact --*/
    .contact-col input,
    .contact-col textarea {
        font-size: 12px;
    }

    .contact-col input[type="text"]#captcha {
        width: 70%;
    }
}