/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color for contrast */
}

/* Container for aligning content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: #1f1f1f; /* Darker grey header */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: 700;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e0e0e0; /* Lighter header links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #FFA726;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(155deg, #FFA726 0%, #FF9800 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    display: inline-block;
}

.cta-button:hover {
    background: #FF9800;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* Hero section styling */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('iFrames/Muehle/hintergrundbild.webp') no-repeat center center/cover;
    color: white;
    height: 100vh;
    position: relative;
    z-index: 3000;
}

@media (max-width: 768px) {
    #hero {
        background-position: calc(100% + 20px) center;
    }
}

@media (max-width: 480px) {
    #hero {
        background-position: calc(100% + 100px) center;
    }
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for better text visibility */
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero .hero-content {
    max-width: 600px;
    padding: 30px;
    border-radius: 10px;
}

#hero .hero-content h1 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero .hero-content p {
    font-size: 1em;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.fa-3x {
    color: #666666;
}

#user-block {
    position: fixed; 
    top: 0; 
    width: 100vw; 
    height: 74px; 
    background-color: rgba(44, 44, 44, 0.8); 
    z-index: 1000; 
    backdrop-filter: blur(20px); /* Weichzeichner-Effekt */
    -webkit-backdrop-filter: blur(20px); /* Für Safari-Unterstützung */
  }

/* Section styling */
.section {
    padding: 60px 0;
    text-align: center;
    background-color: #1e1e1e; /* Dark section */
}

.section:nth-of-type(even) {
    background-color: #2c2c2c; /* Alternating dark section */
}

.section h2 {
    margin-bottom: 40px;
    font-size: 2em;
    font-weight: 700;
    color: #e0e0e0;
}

/* Games grid */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
}

#games {
    padding: 100px 0;
}

.game {
    position: relative;
    flex: 1 1 calc(25% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(55 55 55); /* Dark game card */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    padding-bottom: 20px;
}

.game:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.4); /* Orange glow on hover */
}

.game .game-image-container {
    position: relative;
    width: 100%;
    height: auto;
}

.game .game-background {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
}

.game .game-icon {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    object-fit: contain;
    aspect-ratio: 1/1;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #b9b9b9;
}

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.game h3 {
    margin: 20px 0 10px;
    font-size: 1.5em;
    color: #e0e0e0;
}

.game p {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #999999;
}

@media (max-width: 768px) {
    .game {
        flex: 1 1 100%;
    }

    .game .game-icon {
        width: 70px;
        height: 70px;
    }
}

/* Highlights Section Styling */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.feature {
    flex: 1 1 calc(25% - 20px);
    background: #2a2a2a; /* Dark feature card */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.4); /* Orange glow on hover */
}

.feature img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.feature p {
    font-size: 1em;
    color: #999999;
}

@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
    }

    .feature {
        flex: 1 1 100%;
    }
}

/* Install App Section */
#install-app {
    background: linear-gradient(135deg, #FF9800 0%, #F44336 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#install-app::before {
    content: '';
    background: url('install-background.jpg') no-repeat center center/cover;
    opacity: 0.05;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 0;
}

#install-app .container {
    position: relative;
    z-index: 1;
}

#install-app h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
}

#install-app p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.cta-container {
    display: inline-block;
}

/* Neuer Installationsbutton */
.install-button {
    background: #fff;
    color: #F44336;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.install-button i {
    margin-right: 10px;
    font-size: 1.5em;
}

.install-button:hover {
    background: #f0f0f0;
    transform: translateY(-5px);
}

.install-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #install-app h2 {
        font-size: 2em;
    }

    #install-app p {
        font-size: 1em;
    }

    .install-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* iOS Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9); /* Dark overlay */
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background: #1f1f1f; /* Dark overlay content */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

.overlay-content h2 {
    margin-bottom: 20px;
    color: #e0e0e0;
}

.overlay-content p {
    font-size: 1.2em;
    color: #999999;
}

.overlay-content .share-icon {
    width: 24px;
    vertical-align: middle;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    color: #e0e0e0;
    cursor: pointer;
}

/* Show the overlay when active */
.overlay.active {
    display: flex;
}

/* Footer */
footer {
    background: #1f1f1f; /* Dark footer */
    color: #e0e0e0;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    background: url('footer-background.webp') no-repeat center center/cover;
    opacity: 0.1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #FFA726;
}

.footer-logo {
    font-size: 1.5em;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #e0e0e0;
    font-size: 1.5em;
}

.footer-social a:hover {
    color: #FFA726;
}

@media (max-width: 768px) {
    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    header.nav-active nav {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #1f1f1f;
        position: absolute;
        top: 60px;
        left: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .games-grid {
        flex-direction: column;
        gap: 60px;
    }

    .game {
        flex: 1 1 100%;
    }

    /* Adjustments for small screens */
    .overlay-content {
        padding: 20px;
    }
}

/* Klasse zum Ausblenden von Elementen */
.hidden {
    display: none !important;
}
