/* style.css */

/* --- FONT --- */
@font-face {
    font-family: 'Mulish';
    src: url('schriften/Mulish-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('schriften/Mulish-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* --- CSS VARIABLES --- */
:root {
    --primary: #1a2744;
    --primary-light: #2a3d66;
    --accent: #e8b630;
    --light: #f6f7f9;
    --white: #ffffff;
    --dark: #2c2c2c;
    --text: #4a4a4a;
    --text-light: #6b6b6b;
    --padding-section: 100px 20px;
}

/* --- RESET & GLOBAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Mulish', 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s, background 0.3s, transform 0.3s; }
ul { list-style: none; }

/* --- UI ELEMENTE --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: background 0.3s, transform 0.3s;
}
.btn:hover {
    background: #d4a42b;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.section-title p {
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- HEADER & NAV --- */
header {
    background: var(--white);
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img {
    height: 46px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
}
.nav-links li a:hover {
    color: var(--primary);
}
.nav-links li a.btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--primary);
}
.nav-links li a.btn:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    padding: 5px;
    line-height: 1;
}

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    position: relative;
}
.hero-wrapper {
    position: relative;
    width: 100%;
    z-index: 2;
}
.hero-text {
    color: var(--white);
    max-width: 550px;
    position: relative;
    z-index: 2;
}
.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
}
.hero-text .btn {
    background: var(--accent);
    color: var(--primary);
}
.hero-text .btn:hover {
    background: #d4a42b;
}
.hero-image {
    position: absolute;
    right: 40px;
    bottom: 0;
    top: 100px;
    z-index: 1;
    opacity: 0.55;
    display: flex;
    align-items: flex-end;
}
.hero-image img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom right;
}

/* --- INTRO SECTION --- */
#intro {
    padding: var(--padding-section);
    background: var(--white);
}
.intro-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.intro-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.intro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 20px;
}
.intro-content p:last-child {
    margin-bottom: 0;
}

/* --- ANGEBOT (SERVICES) --- */
#offer {
    padding: var(--padding-section);
    background-color: var(--light);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Letzte Reihe (2 Karten) zentrieren */
.offer-grid .offer-card:nth-child(4) {
    grid-column: 1 / 2;
}

.offer-card {
    background: var(--white);
    padding: 40px 32px;
    border: 1px solid #e8e8e8;
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.offer-card:hover {
    box-shadow: 0 12px 32px rgba(26, 39, 68, 0.1);
    transform: translateY(-4px);
}

.offer-card h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.offer-card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Letzte Reihe zentrieren bei 5 Karten */
@media (min-width: 769px) {
    .offer-grid {
        justify-items: center;
    }
    /* Die letzten 2 Karten in der 2. Reihe zentrieren */
    .offer-card:nth-child(4),
    .offer-card:nth-child(5) {
        max-width: calc((1100px - 60px) / 3);
    }
    .offer-grid::after {
        content: '';
        grid-column: 3 / 4;
    }
    .offer-card:nth-child(4) {
        grid-column: 1 / 2;
        justify-self: end;
        margin-right: 15px;
    }
    .offer-card:nth-child(5) {
        grid-column: 2 / 3;
        justify-self: start;
        margin-left: 15px;
    }
}

/* --- UEBER MICH (ABOUT) --- */
#about {
    padding: var(--padding-section);
    background: var(--white);
}

.about-intro {
    display: flex;
    align-items: stretch;
    gap: 60px;
    margin-bottom: 70px;
}

.about-img {
    flex: 0 0 280px;
    position: relative;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    border-left: 4px solid var(--accent);
}
.about-img img {
    width: 100%;
    height: auto;
    border-radius: 0 10px 10px 0;
}

.about-text {
    flex: 1;
    min-width: 0;
}
.about-text p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}
.about-text p:last-child {
    margin-bottom: 0;
}

/* CV Layout */
.cv-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}
.cv-column {
    flex: 1;
    min-width: 280px;
}

.cv-header {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}
.cv-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 22px;
    border-left: 2px solid #ddd;
    position: relative;
}
.timeline li {
    margin-bottom: 22px;
    position: relative;
    padding-left: 22px;
}
.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 3px solid var(--accent);
    border-radius: 50%;
}

.timeline li strong {
    display: block;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.4;
}
.timeline li span {
    display: block;
    color: var(--text-light);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.5;
}

/* --- KONTAKT INTRO --- */
#contact-intro {
    padding: var(--padding-section);
    background: var(--light);
}

/* --- KONTAKT DETAILS --- */
#contact {
    padding: var(--padding-section);
    background: var(--primary);
    color: var(--white);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
}
.contact-info {
    min-width: 280px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.35rem;
    font-weight: 700;
}
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.contact-info a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-info a:hover {
    color: var(--accent);
}

/* --- FOOTER --- */
footer {
    background: #0f1b30;
    color: #8a8a8a;
    padding: 35px 20px;
    text-align: center;
    font-size: 0.9rem;
}
footer a {
    color: #8a8a8a;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}
footer a:hover {
    border-bottom-color: #8a8a8a;
    color: #bbb;
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .hero-image {
        display: none;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .offer-card:nth-child(4),
    .offer-card:nth-child(5) {
        margin: 0;
        justify-self: auto;
        grid-column: auto;
        max-width: none;
    }
    .offer-grid::after {
        display: none;
    }
    /* 5. Karte zentrieren */
    .offer-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - 15px);
        justify-self: center;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-section: 60px 20px;
    }

    /* Header */
    .navbar {
        position: relative;
        height: 60px;
    }
    .logo img {
        height: 34px;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1010;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -24px;
        right: -24px;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
        text-align: center;
        z-index: 1005;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links li a {
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
    }
    .nav-links li a:hover {
        background: var(--light);
    }
    .nav-links li a.btn {
        margin: 10px 24px;
        padding: 12px 24px;
        text-align: center;
        border-radius: 6px;
    }

    /* Hero */
    #hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .hero-wrapper {
        padding: 50px 0;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }

    /* Angebot */
    .offer-grid {
        grid-template-columns: 1fr;
    }
    .offer-card:nth-child(5) {
        max-width: none;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Über mich */
    .about-intro {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .about-img {
        flex: 0 0 auto;
        width: 220px;
    }

    .cv-container {
        flex-direction: column;
        gap: 40px;
    }

}