/* Self-hosted fonts (DSGVO-konform, kein Google CDN) */
@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/dm-serif-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/dm-serif-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #F9F7F3;
    --surface: #F2EFE8;
    --text: #1A1A1A;
    --muted: #737373;
    --border: #E5E1D8;
    --accent: #0F6E56;
    --accent-soft: #0F6E5614;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: text-decoration-color .15s ease, color .15s ease;
}
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    padding: 2rem 0 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--text);
}
.brand img { height: 32px; width: auto; display: block; }
.brand-name {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.35rem;
}

/* Hero */
.hero {
    padding: 4rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.4rem, 7vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.lede {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0;
    max-width: 38ch;
}

/* Section */
section + section { margin-top: 4rem; }
.eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}
.prose p { margin: 0 0 1rem; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }

/* Projects grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
@media (min-width: 640px) {
    .grid { grid-template-columns: 1fr 1fr; }
    /* Bei ungerader Anzahl letzte Card auf volle Breite, statt Lücke zu lassen */
    .grid > .project:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.project {
    background: var(--bg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: background .2s ease;
}
.project:hover { background: var(--surface); }

.project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.project h3 {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.15;
}
.status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.project p {
    margin: 0 0 1rem;
    color: var(--text);
}
.project-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.tags { list-style: none; padding: 0; margin: 0; display: contents; }
.tags li::after { content: "·"; margin-left: 0.75rem; color: var(--border); }
.tags li:last-child::after { content: ""; margin: 0; }
.project-link {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
.note {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Contact */
.contact-info {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}
.contact-info .address {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    margin-top: 5rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.site-footer nav { display: flex; gap: 1.5rem; }

/* Legal pages (Impressum, Datenschutz) */
.legal-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.1;
    margin: 3rem 0 0.5rem;
}
.legal-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}
.legal h2 {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 500;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.legal section:first-of-type h2 { padding-top: 0; border-top: none; margin-top: 0; }
.legal p, .legal address {
    margin: 0 0 1rem;
    max-width: 65ch;
    font-style: normal;
}
.legal p:last-child, .legal address:last-child { margin-bottom: 0; }
.legal dl {
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1.5rem;
    max-width: 65ch;
}
.legal dt { color: var(--muted); font-weight: 500; }
.legal dd { margin: 0; }
.legal .note { margin-top: 1.5rem; }

@media (max-width: 540px) {
    .legal dl { grid-template-columns: 1fr; gap: 0 0; }
    .legal dt { margin-top: 0.5rem; }
    .legal dd { margin-bottom: 0.5rem; }
}

@media (max-width: 480px) {
    .site-header { padding: 1.5rem 0 1rem; }
    .hero { padding: 2.5rem 0 2.5rem; }
    section + section { margin-top: 3rem; }
    .project { padding: 1.5rem; }
}
