﻿/* --- GRUND-LAYOUT (Desktop) --- */
body {
    font-family: 'Comic Sans MS', sans-serif;
    background-color: #8F8F8F;
    margin: 0;
    padding: 20px 0;
}

#page-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* Obere Navigationsleiste */
#top-nav {
    background-color: #e6e6e6;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

#top-nav a {
    text-decoration: none;
    color: #000;
    font-size: 0.95em;
}

#top-nav a:hover {
    text-decoration: underline;
}

/* Markierung für die aktuell geöffnete Seite */
#top-nav a.active {
    font-weight: bold;
    color: #222;
    border-bottom: 2px solid #888;
    padding-bottom: 3px;
}

/* Hellblauer Header-Banner - Container (500px Höhe) */
#header-banner {
    background-color: #c9e8ef;
    height: 500px;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Das Blumenbild innerhalb des Banners (Vollbild, randlos) */
#header-banner .header-flower {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
    padding: 0;
    margin: 0;
}

/* Hauptinhaltsbereich */
main {
    background-color: #ffffff;
    padding: 30px 40px;
}

h2 {
    color: #333;
    font-weight: normal;
    font-size: 1.4em;
    margin-top: 0;
}

h3 {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* Layout für die Startseite (35% Bild, 65% Text) */
.index-grid {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: 30px;
    align-items: start;
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-text p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #333;
}

.contact-box p {
    color: #333;
}

.contact-box a {
    color: #0000ee;
    text-decoration: underline;
}

/* Tabellen-Struktur für Lebenslauf */
.cv-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.cv-date {
    font-weight: bold;
    color: #333;
}

/* Fußzeile */
footer {
    text-align: center;
    padding: 15px;
    background-color: #d0d0d0;
    color: #333;
    font-size: 0.85em;
}

/* --- MOBILE ANPASSUNG (Responsive) --- */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }

    #page-container {
        box-shadow: none;
    }

    #top-nav {
        justify-content: center;
    }

    #top-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #header-banner {
        height: 250px;
    }

    main {
        padding: 20px 15px;
    }

    .index-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .welcome-text {
        text-align: center;
    }

    .cv-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .cv-date {
        margin-top: 15px;
        color: #0056b3;
    }
}