*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    /* Verhindert, dass das fixierte Menü die Überschriften beim Springen verdeckt */
    scroll-padding-top: 90px; 
}

body{
    font-family:'Inter',sans-serif;
    background:#f8fafc;
    color:#1f2937;
}

/* Navigation */

header{
    min-height:100vh;
    background:linear-gradient(135deg,#0f172a,#2563eb);
    color:#fff;
    /* Schafft Platz für die fixierte Navigationsleiste */
    padding-top: 80px; 
}

nav{
    /* Fixiert das Menü am oberen Bildschirmrand */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Hintergrund leicht transparent mit Unschärfe für modernen Look */
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    
    /* Ausrichtung und Abstände */
    padding: 20px 10%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo{
    font-size:1.6rem;
    font-weight:700;
}

nav ul{
    list-style:none;
    display:flex;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

nav a:hover{
    color:#93c5fd;
}

/* Hero */

.hero{
    width:90%;
    margin:auto;
    display:flex;
    align-items:center;
    height:80vh;
}

.hero-text{
    max-width:650px;
}

.hero h1{
    font-size:4rem;
    margin-bottom:20px;
}

.hero span{
    color:#93c5fd;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:35px;
    line-height:1.8;
}

.button{
    display:inline-block;
    background:white;
    color:#2563eb;
    padding:15px 35px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.button:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.2);
}

/* Allgemein */

section{
    padding:90px 10%;
}

section h2{
    text-align:center;
    font-size:2.4rem;
    margin-bottom:50px;
}

/* Karten */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    background:white;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    color:#2563eb;
    margin-bottom:15px;
}

/* Über mich */

.about{
    background:#0f172a;
    color:white;
}

.about .content{
    max-width:800px;
    margin:auto;
    text-align:center;
}

.about p{
    line-height:1.9;
}

/* Kontakt */

#kontakt{
    text-align:center;
}

#kontakt a{
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
}

/* Footer */

footer{
    background:#020617;
    color:white;
    text-align:center;
    padding:30px;
}

/* Responsive */

@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:20px;
        /* Schützt das Handy-Menü vor falscher Zentrierung */
        padding: 15px 0; 
    }

    nav ul{
        flex-direction:column;
        text-align:center;
        gap: 15px;
    }

    .hero{
        text-align:center;
        justify-content:center;
    }

    .hero h1{
        font-size:2.7rem;
    }

}
