/* ========== VARIABLEN & GLOBALE STILE ========== */
:root {
    --primary-color: #005f73;   /* Ein seriöses Blau/Türkis */
    --secondary-color: #e9d8a6; /* Ein sanfter Akzent */
    --dark-color: #212529;      /* Dunkles Grau für Text */
    --light-color: #f8f9fa;     /* Sehr helles Grau für Hintergründe */
    --white-color: #ffffff;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Aktiviert sanftes Scrollen für die ganze Seite */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

section {
    padding: 4rem 0;
}

img {
    max-width: 100%;
    display: block;
}


/* ========== HEADER & NAVIGATION ========== */
header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #00b4d8;
}

header nav ul li a.nav-link-active {
    color: #00b4d8;
    font-weight: bold;
}


/* ========== HERO SECTION ========== */
.hero {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    color: var(--white-color);
}

.hero .slogan {
    font-size: 1.5rem;
    font-weight: 300;
}


/* ========== ÜBER MICH SECTION ========== */
.about-me {
    background: var(--white-color);
}

.about-me .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-me .about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}


/* ========== WERDEGANG & ZIELE SECTION ========== */
.career-goals {
    background: var(--white-color);
}

.career-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.career-item h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.career-item ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.career-item ul li {
    margin-bottom: 0.5rem;
}


/* ========== FÄHIGKEITEN SECTION ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.skill-category ul li:last-child {
    border-bottom: none;
}


/* ========== PROJEKTE SECTION ========== */
.projects {
    background: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Sanfter Übergang */
}

/* HOVER-EFFEKT */
.project-card:hover {
    transform: translateY(-10px); /* Hebt die Karte leicht an */
    box-shadow: 0 10px 20px rgba(0,0,0,0.12); /* Stärkerer Schatten */
}

.project-details {
    padding: 1.5rem;
    display: flex; /* NEU: Flexbox aktivieren */
    flex-direction: column; /* NEU: Elemente untereinander anordnen */
    flex-grow: 1; /* NEU: Sorgt dafür, dass dieser Container den verfügbaren Platz ausfüllt */
}

.project-details p {
    flex-grow: 1; /* NEU: Der Text-Absatz füllt den Raum und schiebt die Tags nach unten */
}

.technologies span {
    background-color: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.technologies {
    margin-top: 1.5rem; /* Erzeugt einen deutlichen Abstand zum darüberliegenden Text */
}


/* ========== KONTAKT & FOOTER & BUTTONS ========== */
.contact {
    text-align: center;
}

.contact-details {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.button-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 1.5rem;
}

.button-link:hover {
    background: #0077b6;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--dark-color);
    color: var(--light-color);
}


/* ========== ZUSÄTZE FÜR MOBILES MENÜ ========== */
.hamburger {
    display: none; /* Standardmäßig auf Desktops versteckt */
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* Anpassungen im Responsive-Teil */
@media(max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    header .container {
        flex-direction: row; /* Wichtig, damit Logo und Hamburger nebeneinander sind */
        justify-content: space-between;
    }
    
    .hamburger {
        display: block; /* Auf mobilen Geräten anzeigen */
    }

    header nav {
        position: absolute;
        top: 65px; /* Höhe des Headers */
        left: 0;
        width: 100%;
        background: var(--white-color);
        max-height: 0; /* Menü ist standardmäßig eingeklappt */
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        border-bottom: 1px solid #eee;
    }

    header nav.active {
        max-height: 300px; /* Höhe, wenn Menü ausgeklappt ist */
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }
    
    header nav ul li {
        margin: 1rem 0;
    }
    
    .about-me .content-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}