:root {
    --primary-color: #034217;
    --primary-light: #e3f2ea;
    --text-color: #222222;
    --muted-color: #6b6b6b;
    --bg-color: #f6f6f6;
    --card-bg: #ffffff;
    --border-color: #dddddd;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: linear-gradient(135deg, var(--primary-color), #046e29);
    color: #ffffff;
    padding: 2.5rem 0 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.header-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
    opacity: 0.9;
}

.site-header h1 {
    font-size: 2.2rem;
    margin: 0 0 0.4rem;
}

.header-subtitle {
    margin: 0;
    font-size: 0.98rem;
    max-width: 32rem;
}

.contact-box {
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    padding: 1rem 1.3rem;
    font-size: 0.9rem;
}

.contact-box p {
    margin: 0 0 0.4rem;
}

.contact-box a {
    color: #ffffff;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr);
    gap: 2rem;
    padding: 2rem 1.5rem 3rem;
}

.main-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Intro / Selbstvorstellung */

.intro-section {
    grid-column: 1 / -1;
}

.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-photo-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Sections & Cards */

.section {
    background-color: var(--card-bg);
    border-radius: 0.9rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.section-accent {
    background-color: var(--primary-light);
    border-color: rgba(3, 66, 23, 0.18);
}

.section h2 {
    margin: 0 0 0.9rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color);
}

/* Jobs */

.job {
    padding-top: 0.75rem;
    border-top: 1px solid #eeeeee;
    margin-top: 0.75rem;
}

.job:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.job-header h3 {
    margin: 0;
    font-size: 1rem;
}

.job-time {
    font-size: 0.85rem;
    color: var(--muted-color);
    white-space: nowrap;
}

.job-company {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.job ul {
    margin: 0.25rem 0 0.4rem 1.1rem;
    padding: 0;
    font-size: 0.92rem;
}

.job ul li {
    margin-bottom: 0.2rem;
}

/* Info & Tags */

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
}

.info-list li {
    margin-bottom: 0.35rem;
}

.info-list span {
    font-weight: 600;
    display: inline-block;
}

.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-list li {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
    padding: 1rem 0;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Links */

a {
    color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}

.back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .header-content {
        align-items: flex-start;
    }

    .contact-box {
        align-self: stretch;
    }

    .intro-content {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 2rem 0 1.6rem;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 1.25rem 1.2rem;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
