:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #687386;
    --line: rgba(32, 45, 69, 0.1);
    --paper: #ffffff;
    --soft: #f6f8fc;
    --blue: #427eea;
    --blue-soft: #eaf2ff;
    --mint: #5ed3a6;
    --mint-soft: #e9faf3;
    --yellow: #ffd66b;
    --shadow: 0 24px 70px rgba(33, 47, 72, 0.12);
    --radius: 28px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(94, 211, 166, 0.18), transparent 28rem),
        radial-gradient(circle at 86% 2%, rgba(66, 126, 234, 0.18), transparent 30rem),
        linear-gradient(180deg, #fbfcff 0%, #f7f9fd 48%, #ffffff 100%);
}

img {
    display: block;
    max-width: 100%;
}

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

p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: clamp(3.4rem, 8vw, 7.6rem);
    line-height: 0.92;
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.02;
    font-weight: 800;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.2;
}

.site-header {
    position: fixed;
    z-index: 40;
    top: 18px;
    left: 50%;
    display: flex;
    width: min(calc(100% - 32px), var(--max));
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px 10px 10px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(28, 43, 70, 0.1);
    backdrop-filter: blur(20px);
    transition: box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line);
    box-shadow: 0 16px 38px rgba(28, 43, 70, 0.14);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--mint));
    box-shadow: 0 12px 24px rgba(66, 126, 234, 0.24);
}

.site-nav {
    gap: 4px;
}

.site-nav a {
    padding: 12px 15px;
    border-radius: 999px;
    color: #3c4658;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    background: #f0f4fb;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f0f4fb;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--ink);
}

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

.hero {
    display: grid;
    min-height: 100vh;
    align-items: center;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 34px;
    padding-top: 112px;
    padding-bottom: 76px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.hero-text {
    max-width: 640px;
    margin: 28px 0 0;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.motto {
    position: relative;
    max-width: 600px;
    margin: 22px 0 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--mint);
    color: #26344d;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.button.primary {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.22);
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.hero-visual,
.selfhosting-image,
.project-image {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-visual {
    transform: rotate(1deg);
}

.hero-visual img,
.selfhosting-image img,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band {
    margin: 36px 0;
    padding: 92px 0;
    background: rgba(255, 255, 255, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(32, 45, 69, 0.06);
}

.two-column {
    display: grid;
    align-items: end;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 46px;
}

.lead {
    margin: 0;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.about,
.projects,
.imprint-page {
    padding: 88px 0;
}

.legal-hero {
    padding-top: 160px;
    padding-bottom: 54px;
}

.legal-hero h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
}

.about-layout {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
}

.section-heading {
    max-width: 790px;
}

.section-heading p:not(.eyebrow) {
    margin: 22px 0 0;
    font-size: 1.08rem;
}

.stats,
.topic-grid,
.card-grid,
.project-list {
    display: grid;
    gap: 18px;
}

.stats {
    grid-template-columns: repeat(3, 1fr);
    margin: 34px 0 20px;
}

.profile-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 32px;
    background: linear-gradient(135deg, #ffffff, var(--blue-soft));
    box-shadow: var(--shadow);
}

.profile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.96) brightness(1.04);
}

.stat-card,
.info-card,
.hobby-card,
.project-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 45px rgba(33, 47, 72, 0.08);
}

.stat-card {
    padding: 26px;
}

.stat-card strong {
    display: block;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.info-card,
.hobby-card,
.project-card {
    padding: 28px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover,
.hobby-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(33, 47, 72, 0.13);
}

.icon-bubble,
.mini-graphic {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 18px;
    background: var(--blue-soft);
}

.icon-bubble::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    background: var(--blue);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.icon-home::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11.5 12 4l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E");
}

.icon-briefcase::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4h6l1 3h4a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h4zm1.7 3h2.6l-.34-1h-1.92z'/%3E%3C/svg%3E");
}

.icon-sun::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l1.2 4.2L17 4.1l-1.1 4.2L20 9.5l-3.4 2.5L20 14.5l-4.1 1.2L17 19.9l-3.8-2.1L12 22l-1.2-4.2L7 19.9l1.1-4.2L4 14.5 7.4 12 4 9.5l4.1-1.2L7 4.1l3.8 2.1z'/%3E%3C/svg%3E");
}

.icon-spark::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 2 10.2 8.2 4 11l6.2 2.8L13 20l2.8-6.2L22 11l-6.2-2.8zM5 3l1 2 2 1-2 1-1 2-1-2-2-1 2-1zm3 14 1 2 2 1-2 1-1 2-1-2-2-1 2-1z'/%3E%3C/svg%3E");
}

.card-grid,
.project-list {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 34px;
}

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

.mini-graphic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mint-soft), var(--blue-soft));
}

.hobby-card-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--blue-soft);
}

.hobby-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.96) brightness(1.05);
}

.mini-graphic span {
    position: absolute;
    border-radius: 999px;
    background: var(--blue);
}

.mini-graphic span:nth-child(1) {
    width: 24px;
    height: 24px;
    top: 10px;
    left: 10px;
}

.mini-graphic span:nth-child(2) {
    width: 30px;
    height: 8px;
    right: 9px;
    bottom: 14px;
    background: var(--mint);
}

.mini-graphic span:nth-child(3) {
    width: 10px;
    height: 32px;
    right: 14px;
    top: 8px;
    background: var(--yellow);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tag,
.label,
.status-label,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.tag {
    min-height: 30px;
    padding: 0 11px;
    color: #36516a;
    background: #edf4fb;
}

.highlight-project {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    margin-top: 36px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.project-copy {
    align-self: center;
    padding: 24px;
}

.label {
    min-height: 32px;
    margin-bottom: 18px;
    padding: 0 12px;
    color: #17452f;
    background: var(--mint-soft);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-meta .label {
    margin-bottom: 0;
}

.status-label {
    min-height: 32px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 0 12px;
    color: #315579;
    background: var(--blue-soft);
}

.project-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 220px;
}

.project-card-with-image {
    padding: 14px;
}

.project-card-with-image h3,
.project-card-with-image p,
.project-card-with-image .project-link {
    padding-right: 14px;
    padding-left: 14px;
}

.project-link {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;
    color: var(--blue);
    font-size: 0.92rem;
    font-weight: 800;
}

.project-link::after {
    content: "↗";
    margin-left: 6px;
}

.project-card-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--blue-soft);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workbench-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    margin-top: 36px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.workbench-image {
    overflow: hidden;
    min-height: 320px;
    max-height: 440px;
    border-radius: 24px;
    background: var(--blue-soft);
}

.workbench-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workbench-copy {
    align-self: center;
    padding: 18px;
}

.workbench-copy h3 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.feature-columns h4 {
    margin: 0 0 12px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-columns ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-columns li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.5;
}

.feature-columns li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
}

.selfhosting-layout {
    display: grid;
    align-items: center;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
}

.selfhosting-image {
    min-height: 360px;
}

.site-footer {
    display: flex;
    width: min(calc(100% - 36px), var(--max));
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 auto;
    padding: 42px 0 58px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-weight: 700;
}

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-pill {
    min-height: 34px;
    padding: 0 13px;
    color: #285c45;
    background: var(--mint-soft);
}

.made-home-pill {
    color: #315579;
    background: var(--blue-soft);
}

.imprint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.imprint-page a {
    color: var(--blue);
    font-weight: 800;
}

.imprint-page h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.18;
}

.imprint-page address {
    margin-top: 18px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.75;
}

.contact-page {
    padding: 0 0 88px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
    gap: 22px;
}

.contact-form,
.contact-aside {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.contact-aside {
    align-self: start;
    padding: 28px;
}

.contact-aside a {
    color: var(--blue);
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #344055;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 15px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(66, 126, 234, 0.55);
    box-shadow: 0 0 0 4px rgba(66, 126, 234, 0.12);
}

.challenge-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.website-field {
    position: absolute;
    left: -9999px;
}

.form-message {
    border-radius: 18px;
    padding: 14px 16px;
    line-height: 1.5;
}

.form-message ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-message.success {
    color: #285c45;
    background: var(--mint-soft);
}

.form-message.error {
    color: #6d332b;
    background: #fff0ed;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 920px) {
    .site-header {
        border-radius: 24px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        display: none;
        width: min(280px, calc(100vw - 32px));
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero,
    .two-column,
    .about-layout,
    .highlight-project,
    .workbench-panel,
    .contact-layout,
    .selfhosting-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 130px;
    }

    .hero-visual {
        transform: none;
    }

    .stats,
    .topic-grid,
    .card-grid,
    .project-list,
    .imprint-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: min(100%, 420px);
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .form-grid,
    .challenge-row {
        grid-template-columns: 1fr;
    }

    .workbench-image {
        min-height: 300px;
        max-height: none;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 3.2rem;
    }

    .brand span:last-child {
        display: none;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .band {
        padding: 68px 0;
    }

    .about,
    .projects,
    .contact-page,
    .imprint-page {
        padding: 68px 0;
    }

    .legal-hero {
        padding-top: 132px;
        padding-bottom: 30px;
    }

    .highlight-project {
        padding: 10px;
    }

    .project-copy {
        padding: 14px;
    }
}
