/* Globale Stile und neues Farbschema */
:root {
    --primary-color: #00f2fe; /* Lebhaftes Türkis/Cyan */
    --secondary-color: #ffffff;
    --background-color: #0a192f; /* Dunkelblau, fast schwarz */
    --card-background: #112240; /* Etwas helleres Dunkelblau */
    --text-color: #ccd6f6; /* Helles, leicht blaues Grau */
    --text-color-darker: #8892b0;
    --font-main: 'Poppins', sans-serif;
    --navbar-height: 70px;
}

/* Basis-Reset und Body-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 4rem 1.5rem; /* Mehr vertikaler Abstand */
}

h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--secondary-color);
}

h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.8rem;
    position: relative;
}
/* Unterstrich-Effekt für Überschriften */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}


/* --- "Frosted Glass" Navbar --- */
.navbar {
    height: var(--navbar-height);
    width: 100%;
    /* Hintergrund mit Transparenz und Blur-Effekt */
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Für Safari */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: top 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.contact-link {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link.contact-link:hover {
    background-color: rgba(0, 242, 254, 0.1);
    color: var(--primary-color);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero-Sektion (Header) --- */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), 
                radial-gradient(circle, var(--card-background) 0%, var(--background-color) 100%);
    min-height: 80vh; /* Mehr Höhe */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: var(--navbar-height);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive Schriftgröße */
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color-darker);
    margin: 1rem 0 2rem 0;
}

.cta-button {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(0, 242, 254, 0.1);
    transform: translateY(-3px);
}

/* --- Skills & News Karten mit Glow-Effekt --- */
.skills-grid, .news-list {
    display: grid;
    gap: 1.5rem;
}
.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-item, .news-item {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover, .news-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px -10px var(--primary-color);
}


.skill-item.visible, .news-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.skill-item p, .news-item p {
    color: var(--text-color-darker);
}

.news-item h3 {
     color: var(--secondary-color);
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-style: normal;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
    color: var(--text-color-darker);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Media Queries für Responsivität & Burger Menu --- */
@media(max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 100%; /* Menü kommt von rechts */
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--background-color);
        width: 75%; /* Nicht die volle Breite */
        min-width: 280px;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
        gap: 2rem;
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
    }

    .nav-menu.active {
        left: auto;
        right: 0; /* Menü wird sichtbar */
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001; /* Stellt sicher, dass es über dem Menü-Hintergrund liegt */
    }

    .hamburger.active .bar {
        background-color: var(--primary-color); /* Farbe ändert sich bei Aktivierung */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    h2 {
        font-size: 2.2rem;
    }
}