/* Grundkonfiguration */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #eeeeee;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Fixiertes Menü oben */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #252525;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling für normale Links und den Dropdown-Button */
.nav-links a, .dropbtn {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: inline-block;
}

.nav-links a:hover, .dropdown:hover .dropbtn {
    color: #3498db;
}

.nav-links a.active {
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* --- Dropdown Logik --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #252525;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Zentriert das Dropdown exakt mittig */
    border-radius: 4px;
    margin-top: 10px; /* Optischer Abstand nach oben */
}

/* Die unsichtbare Brücke, um den "Hover-Gap" zu füllen */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px; /* Reicht über die 10px Margin hinaus bis zum Button */
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent; /* Bleibt unsichtbar */
}

.dropdown-content a {
    color: #eeeeee;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0; /* Margins der Nav-Links hier zurücksetzen */
    text-align: left;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #333;
    color: #3498db;
}

/* Zeigt das Menü beim Hovern an */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Ende Dropdown Logik --- */

/* Hauptinhalt mittig */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px; 
    text-align: center;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: #3498db;
    margin: 20px 0;
}

/* Styling für Rechtstexte */
.legal-text {
    text-align: left;
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    line-height: 1.8;
}

.legal-text p {
    color: #ccc;
    margin: 10px 0;
}

/* Fixierter Footer unten */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #252525;
    color: #888;
    padding: 15px 0;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.footer-nav a {
    color: #888;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #3498db;
}
