@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Montserrat:wght@600;700&display=swap');

/* ----- FARBDEFINITIONEN: SERIÖS UND MONOCHROM ----- */
:root {
    --primary-color: #007bff; /* Dezentes Blau als Akzent */
    --secondary-color: #343a40; /* Dunkles Grau für Text */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navigation --- */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.logo a:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease-out;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a:hover::after {
    width: 100%;
}


/* --- Hero Sektion --- */
.hero-section {
    padding: 80px 0;
    text-align: left;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin: 10px 0 15px;
    line-height: 1.1;
}

.tagline {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 25px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0056b3;
}

.hero-button {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Common Section Styling --- */
.common-section {
    padding: 80px 0;
    /* Klarer, unaufgeregter Hintergrund */
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    transition: opacity 1s ease-out, transform 1s ease-out; /* Für JS-Animation */
    opacity: 0;
    transform: translateY(20px);
}

.common-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* --- About Sektion --- */
.about-content {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.call-to-action-button {
    /* Style wie hero-button für Konsistenz */
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d; /* Dunkelgrauer Akzent */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.call-to-action-button:hover {
    background-color: #495057;
}

/* --- Skills Sektion --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-item {
    background-color: var(--light-bg);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-item h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.skill-item p {
    color: #6c757d;
    font-size: 0.95rem;
}


/* --- Projekte Sektion --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.project-tags span {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid var(--border-color);
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover {
    color: #0056b3;
}

/* --- Kontakt Sektion --- */
.contact-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #6c757d;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: var(--light-bg);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--white);
}

.submit-button {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-bg);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .profile-pic {
        margin-top: 30px;
    }
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}