/* ==========================================================================
   RESET & GRUNDLAGEN
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* font-family: "Open Sans", sans-serif; */
    font-family: "Molengo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
}

a {
    color: inherit;
    text-decoration: underline;
}
/* Container für die zentrierte Ausrichtung des Inhalts */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

h2 {
    font-size: 1.6rem;
    margin: 0 0 20px 0;
    font-weight: 500;
}
/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: flex-end;
    padding: 30px 60px;
}

.nav-links a {
    text-decoration: none;
    color: #8c8c8c;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-left: 25px;
    transition: color 0.2s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #000000;
}

/* ==========================================================================
   HERO SECTION (Bild & Haupttitel)
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 120px;
}

.image-wrapper {
    width: 100%;
    max-width: 380px;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    /* Falls das Bild farbig ist, macht dieser Filter es schwarz-weiß wie im Screenshot: */
    filter: grayscale(100%); 
}

.hero-text {
    padding-left: 20px;
}

.greeting {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.tagline {
    font-family: "Adamina", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal; 
    font-size: 2.8rem;
    line-height: 1.3;
    color: #2d2d2d;
    max-width: 550px;
}

/* ==========================================================================
   ABOUT SECTION/ XP SECTION
   ========================================================================== */

.content-section {
    display: grid;
    grid-template-columns: .5fr 1.4fr;
    gap: 60px; /* Abstand zwischen den einzelnen Jobs */
}

.content-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-top: 5px;
}

.timeline-container {
    display: grid;
    gap: 60px;
}

.timeline-container p,
.content-row p {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 580px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr; /* Links 150px für das Jahr, rechts der Rest */
    gap: 40px;
    position: relative;
}

.timeline-year {
    opacity: .1;
    color:#000;
    font-weight: 100;
    font-size: 1rem;
    position: sticky;
    top: 200px;
    align-self: start;
    transition: opacity 0.3s ease, font-size 0.3s ease, font-weight 0.3s ease;
}

.timeline-item.active .timeline-year {
        opacity: 1;
        font-weight: bold;
        font-size: 1.4rem;
        
    }

/* ==========================================================================
   Footer Section
   ========================================================================== */

.legal-footer {
    margin-top: 10rem;
    font-size: .8rem;
   }

.legal-footer a, .legal-footer span {
    padding: 0 10px 0 0;
    color: #828282
}

/* ==========================================================================
   HIGHLIGHTS & EFFEKTE (Gelbe Marker & Unterstreichungen)
   ========================================================================== */
.highlight {
    background-color: #FFFFA5; /* Pastellgelber Textmarker-Effekt */
    padding: 0 8px;
    display: inline-block;
    border-bottom: 2px solid #f5f547
}

.highlight-small {
    background-color: #FFFFA5;
    padding: 2px 6px;
    border-bottom: 1px solid #f5f547
}

/* Der Zurück-Link am Ende der Seiten */
.back-link {
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 60px;
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.back-link:hover {
    background-color: #fdf59a;
}

/* Der Pfeil bekommt eine kleine Animation beim Drüberfahren */
.back-to-top .arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

/* Hover-Effekte passend zu deinem Design */
.back-to-top:hover {
    color: #000;
}

.back-to-top:hover .arrow {
    transform: translateY(-3px); /* Der Pfeil hüpft leicht nach oben */
}

/* ==========================================================================
   RESPONSIVE DESIGN (Für Mobilgeräte)
   ========================================================================== */
@media (max-width: 768px) {
    h2 {
        font-size: 1.2rem;
    }

    .main-header {
        padding: 20px;
        justify-content: center;
    }
    
    .nav-links a {
        margin: 0 10px;
    }

    .hero-section, .content-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .image-wrapper {
        margin: 0 auto;
    }

    .hero-text {
        padding-left: 0;
    }

    .greeting {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.6rem;
    }

    .content-section {
        gap: 20px;
    }

    .timeline-container p,
    .content-row p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-year {
        position: static;
    }

    .legal-footer {
        text-align: center;
    }
}