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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    position: fixed;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007BFF;
    /* Primary color for logo */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #28A745;
    /* Secondary color on hover */
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

#hero {
    text-align: center;
    padding-top: 8rem;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

#hero h2 {
    font-size: 1.5rem;
    color: #007BFF;
    /* Primary color */
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    color: #666;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

#about {
    background: #f4f4f4;
    /* Light gray background */
}

#about p {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 0.5rem;
    text-align: center;
    color: #555;
}

/* About section layout: content left, tech stack on the right */
.about-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.about-content {
    flex: 1 1 auto;
    min-width: 0;
    /* prevents long content from forcing the aside below */
}

/* override centered headings/text for the multi-column layout */
.about-content h2 {
    text-align: center;
}

.about-content p {
    text-align: left;
    margin-top: 0.5rem;
}

.about-aside {
    /* increased width to give the tech stack more horizontal space */
    width: 560px;
    /* doubled from 280px */
    max-width: 560px;
    flex-shrink: 0;
    align-self: flex-start;
}

.about-aside h2 {
    margin-top: 0;
    text-align: center;
}

.tech-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px 12px;
    font-size: 0.95rem;
    color: #333;
}

.tech-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.tech-list strong {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: #111;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 900px) {
    .about-grid {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .about-aside {
        width: 100%;
    }
}

#experience {
    background: #fff;
}

#impressum,
#privacy {
    background: #fff;
    text-align: center;
}

#impressum p,
#privacy p {
    max-width: 600px;
    margin: 0 auto 1rem;
    text-align: left;
}

#privacy h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #28A745;
    /* Secondary color for timeline border */
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #28A745;
    /* Secondary color for job titles */
}

.timeline-item p {
    color: #666;
}

#contact {
    text-align: center;
    background: #f4f4f4;
    /* Light gray background */
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007BFF;
    /* Primary color */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #28A745;
    /* Secondary color on hover */
    transform: translateY(-2px);
    /* Subtle lift effect */
}

footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: #fff;
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #28A745;
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero h2 {
        font-size: 1.2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .timeline-item {
        padding-left: 0.5rem;
    }
}