/* 1. VARIABLEN & GRUNDEINSTELLUNGEN */
:root {
    --primary: #00f2fe;      
    --secondary: #4facfe;    
    --text: #f0f0f0;
    --text-muted: #dfdfdf;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); 
    color: var(--text); 
    line-height: 1.6;
    min-height: 100vh;
}

/* 2. LAYOUT & ABSTÄNDE */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    text-align: center;
}
.auto{
    margin: auto;
}
section { 
    min-height: 80vh; 
    padding-top: 100px; 
    margin-bottom: 50px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
#profilpic{
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* 3. NAVIGATION */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px;
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}


nav ul { display: flex; list-style: none; gap: 30px; }
a { color: var(--text); text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary); }

/* 4. HERO SECTION */
.hero { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
}

.hero h2 { 
    font-size: 4rem; 
    font-weight: 800;
    text-shadow: none;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.typewriter { 
    color: var(--secondary); 
    font-size: 1.8rem; 
    margin: 15px 0; 
    height: 1.5em;
    font-family: 'Consolas', monospace;
}

/* 5. PROJEKTE GRID & KARTEN */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.card { 
    background: var(--glass-bg); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px; 
    border-radius: 15px; 
    border: 1px solid var(--glass-border); 
    transition: all 0.4s ease; 
}
.cardperm{
    background: var(--glass-bg); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px; 
    border-radius: 15px; 
    border: 1px solid var(--glass-border); 
    transition: all 0.4s ease; 
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2); 
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2); 
}

.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); margin-bottom: 20px; }

.tags span { 
    background: rgba(255, 255, 255, 0.1); 
    padding: 5px 12px; 
    font-size: 0.85rem; 
    border-radius: 20px; 
    margin-right: 8px; 
    color: var(--primary);
    display: inline-block;
    margin-bottom: 8px;
}

/* 6. FORMULAR */
form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }

input, textarea { 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    color: white; 
    padding: 15px; 
    border-radius: 8px;
    font-family: inherit; 
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

button { 
    background: linear-gradient(45deg, var(--primary), var(--secondary)); 
    border: none; 
    padding: 15px 30px; 
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold; 
    cursor: pointer; 
    color: #fff; 
    transition: 0.3s;
}

button:hover { 
    box-shadow: 0 0 15px var(--primary); 
    transform: scale(1.02);
}

/* 7. BENACHRICHTIGUNGEN (Alerts) */
.alert { padding: 15px; margin-bottom: 25px; border-radius: 8px; font-weight: bold; }
.success { background: rgba(0, 242, 254, 0.1); border: 1px solid var(--primary); color: var(--primary); }
.error { background: rgba(255, 75, 75, 0.1); border: 1px solid #ff4b4b; color: #ff4b4b; }


footer {
    margin-top: auto;
    margin-bottom: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.footer-brand {
    font-weight: 500;
    color: var(--text);
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 8px;
}

.footer-links {
    display: flex;
    gap: 30px; 
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text); 
    cursor: pointer;
}


@media (max-width: 600px) {
    
    nav {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        position: relative; 
        padding: 10px 20px;
    }

    .burger-menu {
        display: block; 
    }

    #nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
        border-radius: 15px;
        overflow: hidden; 
        border: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); 
        padding: 0;
        margin-top: 10px;
        z-index: 9999; 
    }

    #nav-links.active {
        display: flex; 
    }

    #nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    }

    #nav-links li a {
        display: block;
        padding: 15px;
        color: #ffffff; 
        text-decoration: none;
    }
    
    #nav-links li a:hover, 
    #nav-links li a:active {
        background-color: rgba(255, 255, 255, 0.1); 
    }

    footer {
        flex-direction: column;
        border-radius: 25px; 
        gap: 15px;
        text-align: center;
    }
    
    .footer-note {
        display: block; 
        margin-left: 0;
        margin-top: 5px;
    }
}