/* --- BASIS EINSTELLUNGEN --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- GLOBAL LIST RESET --- */
ul, li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Hält den Footer immer unten */
}

a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #666;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* Dein neues farbiges Logo mit 25% Aufhellung bei Hover */
.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #008a82; /* Deine Wunschfarbe */
    transition: filter 0.2s ease;
}

.logo a:hover {
    filter: brightness(1.25); /* Macht den Ton exakt 25% heller */
}

.nav-menu {
    display: flex;
    list-style: none;      /* Schaltet Punkte für die Liste aus */
    list-style-type: none; /* Doppelte Absicherung für Firefox */
    gap: 30px;
}

/* Diese neue Regel erzwingt das Ausschalten der Punkte direkt beim Listeneintrag */
.nav-menu li {
    list-style: none !important;
    list-style-type: none !important;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- HAMBURGER MENÜ (FÜR SMARTPHONES) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #222;
    transition: all 0.3s ease;
}

/* --- HAUPTINHALT --- */
main {
    flex: 1; /* Sorgt dafür, dass der Inhalt den Raum füllt */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- FOOTER --- */
footer {
    background-color: #fafafa;
    border-top: 1px solid #eee;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- RESPONSIVE DESIGN (MOBILGERÄTE) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Hamburger wird sichtbar */
    }

    .nav-menu {
        display: none; /* Versteckt das normale Menü */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        padding: 20px;
        gap: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    /* Diese Klasse wird per JavaScript aktiviert */
    .nav-menu.active {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
    }
}

/* --- PORTFOLIO & GALERIE LAYOUT --- */
.page-title {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Das flexible Raster für deine Arbeiten */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    align-items: start; /* Zwingt die Boxen, oben bündig anzufangen und verhindert Rundungsfehler */
}

.portfolio-item {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.portfolio-image-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 15px;
}

/* JETZT KORRIGIERT: Behebt die feine Haarlinie über den Bildern in Firefox/Safari */
.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1.005);          /* Streckt das Bild minimal, um Spaltenfehler zu überdecken */
    margin-top: -1px;                 /* Korrigiert den vertikalen Bildversatz */
    outline: 1px solid transparent;   /* Aktiviert die Hardware-Glättung im Browser */
}

/* Ein dezenter Zoom-Effekt, wenn man mit der Maus über ein Bild fährt */
.portfolio-item:hover img {
    transform: scale(1.03) !important; /* !important sichert den Zoom trotz der Glättung */
}

.portfolio-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #222;
}

.portfolio-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* --- LEBENSLAUF (CV) STYLING --- */
.cv-section {
    margin-bottom: 40px;
}

.cv-section h2 {
    font-size: 22px;
    border-bottom: 2px solid #008a82; /* Deine Wunschfarbe als Akzentlinie */
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.cv-item {
    display: flex;
    margin-bottom: 20px;
}

.cv-date {
    min-width: 165px;       /* Leicht erhöht für mehr Platz */
    padding-right: 20px;    /* Gibt dem Datum echten Atemraum zum Titel */
    font-weight: 600;
    color: #008a82;
}

.cv-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.3;       /* Verbessert die Lesbarkeit bei zweizeiligen Titeln */
}

.cv-content p {
    font-size: 14px;
    color: #666;
}

/* --- KONTAKTFORMULAR STYLING --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info a {
    color: #008a82;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #008a82;
}

.submit-btn {
    background-color: #008a82;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    filter: brightness(1.25);
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .cv-item {
        flex-direction: column;
        gap: 5px;
    }
    .cv-date {
        min-width: auto;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- AUTOMATISCHER SPRACHFILTER FÜR DIE CARTOONS --- */
.portfolio-grid .portfolio-item[data-lang="en"] {
    display: none;
}
