/* --- FARBEN & DESIGN-VARIABLEN --- */
:root {
    /* Standard: Dark Mode */
    --bg-color: #0b0f19;       
    --card-bg: #151c2c;        
    --navbar-bg: rgba(21, 28, 44, 0.85);
    --footer-bg: #090c14;
    --accent-color: #6366f1;   
    --accent-glow: rgba(99, 102, 241, 0.4); 
    --text-main: #f3f4f6;      
    --text-muted: #9ca3af;    
    --nav-height: 75px;        
    --border-color: rgba(255, 255, 255, 0.05);
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
}

/* --- AUTOMATISCHER LIGHT MODE --- */
html[data-theme="light"] {
    --bg-color: #f3f4f6;       
    --card-bg: #ffffff;        
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: #e5e7eb;
    --accent-color: #4f46e5; /* Etwas kräftigeres Blau für bessere Lesbarkeit auf weiß */
    --accent-glow: rgba(79, 70, 229, 0.25); 
    --text-main: #1f2937;      
    --text-muted: #4b5563;    
    --border-color: rgba(0, 0, 0, 0.08);
    --btn-secondary-bg: rgba(0, 0, 0, 0.04);
    --btn-secondary-border: rgba(0, 0, 0, 0.1);
}

/* --- GRUNDEINSTELLUNGEN --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    /* Macht den Wechsel zwischen den Themes geschmeidig */
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.navbar {
    height: var(--nav-height);
    background-color: var(--navbar-bg);
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; /* Viewport-Überlauf durch Innenabstände verhindern / Prevent viewport overflow caused by padding */
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 2rem; 
}

.nav-links {
    display: flex;
    align-items: center; /* Vertikalen Versatz der Listenelemente unterbinden / Prevent vertical offset of list items */
    gap: 1.2rem; 
    list-style: none;
    margin: 0; /* Standard-Browsermargins zurücksetzen / Reset default browser margins */
    padding: 0;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem; 
    line-height: 1; /* Höhenversatz durch Standard-Zeilenhöhe korrigieren / Fix height displacement caused by default line-height */
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a i {
    margin-right: 4px; 
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-divider {
    display: none;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}


.btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--text-main);
    border: 1px solid var(--btn-secondary-border);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(156, 163, 175, 0.15);
    border-color: var(--text-muted);
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 2rem 40px 2rem;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    transition: background 0.3s ease;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.hero h1 span {
    background: linear-gradient(45deg, var(--text-main), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    transition: color 0.3s ease;
}

/* --- FEATURE GRID --- */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--accent-glow);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
    transition: color 0.3s ease;
}
.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.card-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--text-main);
    background: var(--btn-secondary-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--btn-secondary-border);
}
.card:hover .card-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* --- FOOTER ABSCHNITT STYLES --- */
.footer {
    background-color: var(--footer-bg); 
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
    transition: color 0.3s ease;
}
.footer-column h4 span {
    color: var(--accent-color);
}

.footer-column p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    transition: color 0.3s ease;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 1050px) {
    .burger {
        display: block; 
    }

    .nav-container {
        position: fixed;
        right: -100%; 
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        background-color: var(--card-bg);
        width: 85%;
        max-width: 320px;
        padding: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1), background-color 0.3s ease; 
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        margin-left: 0;
        overflow-y: auto; 
    }

    .nav-container.nav-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 1.05rem;
    }

    .nav-divider {
        display: block;
        height: 1px;
        background: var(--border-color);
        margin: 0.2rem 0;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem; 
    }
    .auth-buttons .btn {
        justify-content: center;
        width: 100%;
        padding: 0.8rem;
    }

    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero h1 { font-size: 2.3rem; }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
