/* Globale Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #0066cc;
}

/* Header Styling mit interaktivem Farbverlauf */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(90deg, #0e133e, #4d9fff);
    background-size: 200% 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-position 0.3s ease;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 0%) var(--y, 0%), 
                               #73b4ff 0%, 
                               rgba(77, 159, 255, 0.5) 20%, 
                               rgba(14, 19, 62, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

header:hover::before {
    opacity: 1;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
}

/* Styling für die Navigationsleiste ohne Hover-Effekt */
nav {
    padding: 0.5rem 1.5rem;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    color: white;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #73b4ff;
}

/* Hero Section mit 3D-Szene und Menü */
#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0 5rem; /* Ursprüngliches Padding wiederhergestellt */
    background: #0e133e;
    min-height: calc(100vh - 150px); /* Ursprüngliche Höhe wiederhergestellt */
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-left: 5%; /* Seitenabstand nur für den Inhaltsbereich */
    color: white;
    position: relative;
    z-index: 2;
    margin-top: -2rem;
}

/* Dunkelblaue Überblendung für bessere Lesbarkeit */
.hero-content::before {
    content: '';
    position: absolute;
    top: -400px; /* Vergrößert, um bis zum Header zu reichen */
    left: -50px;
    width: calc(33vw + 250px); /* Ein Drittel der Viewportbreite + extra Platz */
    height: calc(100% + 1000px); /* Vergrößert, um bis zum Header zu reichen */
    background: linear-gradient(to right, rgba(10, 15, 40, 0.85) 70%, rgba(10, 15, 40, 0));
    z-index: -1;
    border-radius: 0 20px 20px 0; /* Abgerundete Kanten auf der rechten Seite */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.3;
}

/* Zweite Überschrift mit reduziertem Abstand nach oben */
.hero-content h1 + h1 {
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Menü-Styling */
.hero-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 2.5rem;
    gap: 20px;
}

.menu-button {
    padding: 15px 22px;
    font-size: 1.1rem;
    background: rgba(77, 159, 255, 0.2);
    color: white;
    border: 1px solid rgba(77, 159, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 160px;
}

.menu-button:hover {
    background: rgba(77, 159, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(77, 159, 255, 0.4);
}

/* 3D-Container über volle Breite */
.hero-3d-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#scene-container {
    width: 100%;
    height: 100%;
    border-radius: 0; /* Keine abgerundeten Ecken mehr, da volle Breite */
    position: relative;
    background-color: transparent;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #004d99;
}

/* Footer */
footer {
    font-size: 0.9rem;
    padding: 1.3rem 3%; /* Ursprüngliches Padding wiederhergestellt */
    background-color: #0e133e; /* Dunklerer Blauton, passend zum Hero-Hintergrund */
    color: white;
    text-align: left; /* Text nach links ausrichten statt zentriert */
}

/* Responsive Design für 3D-Szene und Menü */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    #hero {
        flex-direction: column;
        padding: 3rem 1rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
        margin-top: 0; /* Keinen negativen Margin auf kleinen Bildschirmen */
    }
    
    .hero-3d-section {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .menu-button {
        width: 80%;
        margin-bottom: 0;
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .menu-button:hover {
        transform: translateY(-5px);
    }
    
    #scene-container {
        height: 300px;
        width: 100%;
    }
}