/* =========================
   FONT
========================= */

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* =========================
   RESET
========================= */

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


/* =========================
   BASE TYPOGRAPHY
========================= */

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    color: #111;
    background: #f5f5f5;
}


/* =========================
   HEADER (jetzt begrenzt!)
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 24px;
    font-size: 22px;

    max-width: 1750px;   /* gleiche Begrenzung wie Content */
    margin: 0 auto;      /* zentriert */
}

header a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   STARTSEITE – PROJEKTE
========================= */

.projects {
    display: flex;
    flex-direction: column;
    padding: 24px;

    max-width: 1750px;   /* Begrenzung */
    margin: 0 auto;
}

.project {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}


/* =========================
   IMAGES
========================= */

figure {
    display: flex;
    flex-direction: column;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   CAPTION
========================= */

figcaption {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.25;
}

figcaption p {
    margin-bottom: 4px;
}

figcaption a {
    color: inherit;
    text-decoration: underline;
}

figcaption a:hover {
    opacity: 0.6;
}


/* =========================
   GRID SPANS
========================= */

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}


/* =========================
   INFO SEITE
========================= */

.info-grid {
    padding: 24px;
    padding-bottom: 120px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;

    font-size: 20px;
    line-height: 1.45;

    max-width: 1750px;   /* gleiche Begrenzung */
    margin: 0 auto;
}

.info-grid p {
    margin-bottom: 1.2em;
}

.info-grid a {
    color: inherit;
    text-decoration: none;
}

.info-grid a:hover {
    opacity: 0.6;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .projects {
        padding: 12px;
    }

    .project {
        gap: 4px;
        margin-bottom: 36px;
    }

    figcaption {
        font-size: 10px;
        line-height: 1.0;
    }

    .info-grid {
        grid-template-columns: 1fr;
        font-size: 16px;
        line-height: 1.4;
        padding: 24px;
        padding-bottom: 80px;
    }

    /* Abstand zwischen Kontaktblock und Personenblock */
    .info-grid > div + div {
        margin-top: 56px;
    }

}