@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/DMMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/DMMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #f6f6f2;
    --surface: #ffffff;
    --text: #171717;
    --muted: #686863;
    --border: #deded7;
    --accent: #29483f;
    --max-width: 1180px;
}


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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

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

.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}


/* NAVIGATION */

nav {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
}


/* HERO */

.hero {
    padding: 120px 0 130px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    align-items: end;
}

.eyebrow {
    margin-bottom: 28px;
    color: var(--accent);
    font-family: "DM Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1 {
    max-width: 850px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 600;
}

.hero-description {
    max-width: 510px;
    margin-top: 36px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.hero-cta {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.hero-cta:hover {
    background: var(--text);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-cta-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.hero-cta-secondary:hover {
    background: var(--surface);
    border-color: var(--text);
}

.not-found {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.not-found-content {
    max-width: 850px;
}

.not-found-code {
    margin-bottom: 24px;
    color: var(--accent);
    font-family: "DM Mono", monospace;
    font-size: 14px;
}

.not-found h1 {
    max-width: 760px;
}

.not-found-description {
    max-width: 520px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 17px;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.not-found-actions .hero-cta {
    margin-top: 28px;
}

.hero-side {
    padding-bottom: 5px;
}

.hero-photo {
    margin-bottom: 20px;
}

.availability {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    font-size: 13px;
    font-family: "DM Mono", monospace;
    color: var(--muted);
    white-space: nowrap;
}

.availability-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
}

.availability-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.availability-separator {
    color: var(--border);
}


/* SECTIONS */

section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    margin-bottom: 65px;
}

.section-number {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 12px;
}

.section-title {
    max-width: 700px;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.section-intro {
    max-width: 650px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 17px;
}


/* LEISTUNGEN */

.service-list {
    border-top: 1px solid var(--border);
}

.service {
    display: grid;
    grid-template-columns: 70px 1fr 1.2fr;
    gap: 35px;
    padding: 34px 0;
    border-bottom: 1px solid var(--border);
}

.service-number {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 12px;
}

.service h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.service p {
    color: var(--muted);
    font-size: 15px;
}


/* KONTEXT */

.context {
    background: var(--accent);
    color: white;
}

.context .section-number {
    color: #aebdb7;
}

.context .section-title {
    max-width: 800px;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 70px;
    background: rgba(255, 255, 255, 0.18);
}

.context-item {
    padding: 35px;
    background: var(--accent);
}

.context-item h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.context-item p {
    color: #c7d1cd;
    font-size: 14px;
}


.hero-photo img {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
}


/* PROJEKTE */

.projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.project:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(23, 23, 23, 0.08);
}

.project-image {
    display: block;
    width: 100%;
    aspect-ratio: 400 / 235;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s ease;
}

.project:hover .project-image {
    transform: scale(1.04);
}

.project-body {
    flex: 1;
    padding: 24px 24px 0;
}

.project-type {
    margin-bottom: 10px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 600;
}

.project p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.project-stack {
    margin-top: 20px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* TABLET */

@media (max-width: 1000px) {

    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .projects {
        grid-template-columns: 1fr;
    }

    .project h3 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .project,
    .project-image {
        transition: none;
    }

    .project:hover,
    .project:hover .project-image {
        transform: none;
    }
}


/* ARBEITSWEISE */

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.approach-item {
    min-height: 230px;
    padding: 30px;
    background: var(--surface);
}

.approach-item span {
    display: block;
    margin-bottom: 55px;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    color: var(--muted);
}

.approach-item h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.approach-item p {
    color: var(--muted);
    font-size: 13px;
}


/* ÜBER MICH */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.about-label {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.about-text {
    font-size: 21px;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.about-text p + p {
    margin-top: 28px;
}

.about-text a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-photo img {
    display: block;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}


/* TECHNOLOGIEN */

.tech-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 70px;
}

.tech-group h3 {
    margin-bottom: 24px;
    font-size: 15px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 18px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 78px;
    text-align: center;
}

.tech-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tech-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    font-family: "DM Mono", monospace;
}

.tech-name {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}


/* KONTAKT */

.contact {
    padding: 130px 0;
}

.contact-content {
    max-width: 850px;
}

.contact h2 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 600;
}

.contact p {
    max-width: 600px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 17px;
}

.contact-links {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border: none;
    border-bottom: 1px solid var(--text);
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.contact-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.contact-icon {
    width: 16px;
    height: 16px;
}

.copy-feedback {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--text);
    color: var(--background);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.contact-copy.is-copied .copy-feedback {
    opacity: 1;
    transform: translateY(0);
}

#contact-form-root {
    margin-top: 60px;
}

.contact-form {
    display: grid;
    gap: 24px;
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    color: var(--muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
}

.contact .form-note,
.contact .form-error {
    margin-top: 0;
    font-size: 13px;
}

.contact .form-error {
    color: #b3261e;
}

.form-note a {
    text-decoration: underline;
}

.form-submit {
    justify-self: start;
    padding: 13px 26px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    font-family: inherit;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.form-submit:hover {
    opacity: 0.85;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-success {
    max-width: 700px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
}

.contact .form-success p {
    margin: 0 0 20px;
    color: var(--text);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* LEGAL PAGE */

.legal-header {
    padding: 90px 0 60px;
    border-bottom: 1px solid var(--border);
}
.legal-header h1 {
    max-width: 700px;
    margin-top: 20px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 600;
}

.legal-page {
    padding: 60px 0 120px;
}

.legal-content {
    max-width: 700px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}

.legal-content h2 {
    margin-top: 48px;
    margin-bottom: 18px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.legal-content p {
    margin-top: 20px;
}

.legal-content p:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin-top: 20px;
    padding-left: 22px;
}

.legal-content li {
    margin-top: 10px;
}

.legal-content li:first-child {
    margin-top: 0;
}

.footer-link:hover {
    color: var(--text);
}


/* FOOTER */

footer {
    padding: 25px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .hero {
        padding: 80px 0 90px;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service {
        grid-template-columns: 40px 1fr;
    }

    .service p {
        grid-column: 2;
    }

    .context-grid,
    .approach-grid,
    .tech-groups {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 75px 0;
    }
}


@media (max-width: 550px) {

    .container {
        width: min(var(--max-width), calc(100% - 32px));
    }

    h1 {
        font-size: 48px;
    }

    .service {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service p {
        grid-column: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }
}
