/* Grund-Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Weiches Scrollen für die gesamte Seite */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95); /* Leicht transparent für einen modernen Look */
    padding: 10px 0;
    border-bottom: 2px solid #eee;
    
    /* Hier ist die Magie: */
    position: sticky;
    top: 0;
    z-index: 1000; /* Sorgt dafür, dass der Header über allen anderen Elementen bleibt */
    
    /* Optional: Ein leichter Schatten beim Scrollen */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 2px;
}

.header-logo {
    max-width: 180px; /* Begrenzt die Breite auf maximal 180 Pixel */
    height: auto;     /* Erhält das Seitenverhältnis */
}

header .container {
    display: flex;
    align-items: center; /* Zentriert das Logo vertikal im Header */
    justify-content: flex-start; /* Logo linksbündig */
}

/* Header-Layout mit Logo links und Nav rechts */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db; /* Farbe beim Drüberfahren */
}

/* Damit die Sektionen nicht direkt am oberen Rand kleben beim Springen */
section {
    scroll-margin-top: 80px; 
}

/* Mobile Optimierung für das Menü */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 15px;
    }
}

/* Über mich Sektion */
#about {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;    /* Zentriert Bild und Text vertikal zueinander */
    justify-content: center; /* Zentriert den gesamten Block in der Mitte der Seite */
    gap: 40px;              /* Abstand zwischen Bild und Text */
    text-align: left;       /* Text innerhalb des Blocks linksbündig */
    max-width: 800px;
    margin: 0 auto;         /* Zentriert den Inhaltsblock auf der Seite */
}

.profile-img {
    width: 200px;           /* Etwas größer wirkt es im Side-by-Side Layout oft besser */
    height: 200px;
    object-fit: cover;      /* Sorgt dafür, dass das Bild nicht verzerrt wird */
    border-radius: 50%;     /* Macht das Bild kreisrund */
    border: 3px solid #3498db;  /* Optional: Ein farbiger Rahmen passend zum Design */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Ein leichter Schatten für mehr Tiefe */
    flex-shrink: 0;         /* Verhindert, dass das Bild zusammengedrückt wird */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Resume Sektion */
#resume {
    padding: 60px 0;
    background-color: #ffffff;
}

.resume-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.resume-column {
    flex: 1;
    min-width: 300px;
}

.resume-column h3 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.resume-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    border-left: 2px solid #eee; /* Dezenter Zeitstrahl-Effekt */
}

.resume-item h4 {
    margin: 5px 0;
    color: #333;
}

.resume-item .date {
    display: inline-block;
    background: #e1f0fa;
    color: #3498db;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.resume-item p {
    font-size: 0.95rem;
    color: #7f8c8d;
}

/* Projekt-Raster */
#projects {
    padding: 60px 0;
}

h2 {
    margin-bottom: 30px;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background: #2c3e50;
    color: white;
}

footer a {
    color: #3498db;
    text-decoration: none;
}
/* Auftraggeber Sektion */
#clients {
    padding: 40px 0;
    background-color: #f9f9f9; /* Leicht abgesetzter Hintergrund */
    text-align: center;
}

.client-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.client-logo img {
    max-width: 150px;  /* Maximale Breite der Logos */
    height: auto;
    filter: grayscale(100%); /* Macht das Bild grau */
    opacity: 0.6;            /* Macht es leicht transparent */
    transition: all 0.4s ease; /* Sorgt für einen weichen Übergang */
}

.client-logo:hover img {
    filter: grayscale(0%);   /* Wird farbig beim Drüberfahren */
    opacity: 1;              /* Wird voll sichtbar */
    transform: scale(1.05);  /* Ganz leichter Vergrößerungseffekt */
}

#legal-notice {
    padding: 80px 0;
    min-height: 70vh; /* Sorgt dafür, dass der Footer bei wenig Text unten bleibt */
    background: #fff;
}

.legal-content h2 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: left; /* Überschriften hier linksbündig */
}

.legal-content p {
    margin-bottom: 15px;
    color: #555;
}

/* Cookie Banner Styling */
.cookie-container {
    position: fixed;
    bottom: -100%; /* Startet außerhalb des Sichtfelds */
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 9999;
}

/* Wenn der Banner aktiv ist */
.cookie-container.active {
    bottom: 0;
}

.cookie-container p {
    margin: 0;
    font-size: 0.9rem;
    padding-right: 20px;
}

.cookie-container a {
    color: #3498db;
}

.cookie-btn {
    background: #3498db;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #2980b9;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-btn {
        margin-top: 15px;
        width: 100%;
    }
}