/* Geist - self-hosted, no external CDN */

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

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

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

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

:root {
    /* Colors */
    --primary-dark: #1a2e5a;
    --primary: #2563eb;
    --white: #ffffff;
    --divider: #e2e8f0;
    --muted: #64748b;

    /* Typography */
    --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* 8pt grid */
    --space-1: 0.25rem;    /*  4px */
    --space-2: 0.5rem;     /*  8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.5rem;     /* 24px */
    --space-6: 2rem;       /* 32px */
    --space-8: 3rem;       /* 48px */
    --space-10: 4rem;      /* 64px */
    --space-12: 5rem;      /* 80px */
}

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

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--primary-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.9375rem;          /* 15px */
    line-height: 1.6;
    letter-spacing: -0.016em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Language toggle */

[lang="de"] [data-lang="en"],
[lang="en"] [data-lang="de"] {
    display: none;
}

.lang-switch {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    display: flex;
    gap: var(--space-1);
    font-size: 0.8125rem;
    letter-spacing: -0.006em;
    z-index: 10;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    opacity: 0.35;
    min-height: 44px;
    min-width: 44px;
}

.lang-switch button.active {
    opacity: 1;
    font-weight: 600;
}

.lang-switch span {
    color: var(--divider);
    line-height: 2.6;
}

/* Main content */

main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: var(--space-10) var(--space-5);
}

.content {
    max-width: 520px;
    width: 100%;
}

/* Header */

.header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.019em;
    line-height: 1.2;
}

/* Sections */

.section {
    margin-bottom: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--divider);
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: var(--space-4);
}

/* Services */

.services {
    list-style: none;
}

.services li {
    font-size: 0.9375rem;
    line-height: 2;
    letter-spacing: -0.016em;
}

/* Projects */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.project a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.016em;
}

.project a:hover {
    text-decoration: underline;
}

.project p {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.125rem;
    line-height: 1.46;
    letter-spacing: -0.006em;
}

/* About */

.about {
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: -0.016em;
}

/* Contact */

.contact a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    letter-spacing: -0.016em;
}

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

.contact p {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: var(--space-1);
    letter-spacing: -0.006em;
}

/* Footer */

footer {
    padding: var(--space-6) var(--space-5);
}

footer nav {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-5);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8125rem;
    letter-spacing: -0.006em;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Legal pages */

.legal {
    max-width: 520px;
    width: 100%;
}

.legal h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.019em;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.legal > p:first-of-type {
    font-size: 0.8125rem;
    color: var(--muted);
    letter-spacing: -0.006em;
    margin-bottom: var(--space-8);
}

.legal h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.016em;
    line-height: 1.33;
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
}

.legal p,
.legal li {
    font-size: 0.875rem;
    line-height: 1.65;
    letter-spacing: -0.011em;
}

.legal ul {
    padding-left: 1.25rem;
    margin-bottom: var(--space-2);
}

.legal li {
    margin-bottom: var(--space-1);
}

.legal .back-link {
    display: inline-block;
    margin-top: var(--space-8);
    font-size: 0.8125rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: -0.006em;
}

.legal .back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive */

@media (min-width: 640px) {
    .logo {
        width: 56px;
        height: 56px;
    }

    .company-name {
        font-size: 1.375rem;
    }

    main {
        padding: var(--space-12) var(--space-6);
    }

    .lang-switch {
        top: var(--space-6);
        right: var(--space-6);
    }

    footer {
        padding: var(--space-6);
    }
}
