:root {
    --body-bg: #e7e7e5;
    --surface: #f7f7f5;
    --text: #151515;
    --muted: #6e6e69;
    --line: #d5d5d0;
    --accent: #b5721f;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--body-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

.wrapper {
    width: 95%;
    max-width: 50rem;
    margin: 0 auto 2rem;
    background-color: var(--surface);
}

.site-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.site-header__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-header__claim {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.main-nav {
    border-bottom: 1px solid var(--line);
    background-color: var(--surface);
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.menu-button__icon {
    position: relative;
    width: 1.6rem;
    height: 1rem;
}

.menu-button__icon::before,
.menu-button__icon::after,
.menu-button__icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.12rem;
    background-color: var(--text);
    content: "";
    transition: 180ms ease;
}

.menu-button__icon::before {
    top: 0;
}

.menu-button__icon span {
    top: 0.44rem;
}

.menu-button__icon::after {
    top: 0.88rem;
}

.menu-toggle:checked + .menu-button .menu-button__icon::before {
    top: 0.44rem;
    transform: rotate(45deg);
}

.menu-toggle:checked + .menu-button .menu-button__icon span {
    opacity: 0;
}

.menu-toggle:checked + .menu-button .menu-button__icon::after {
    top: 0.44rem;
    transform: rotate(-45deg);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-height: 0;
    margin: 0;
    padding: 0 1rem;
    overflow: hidden;
    background-color: var(--surface);
    transition: max-height 280ms ease, padding 280ms ease;
}

.menu-toggle:checked ~ ul {
    max-height: 28rem;
    padding: 0 1rem 1rem;
}

nav ul li {
    flex: 0 0 auto;
    width: 100%;
    list-style: none;
}

nav ul a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

nav ul a:hover,
nav ul a:focus {
    background-color: var(--white);
    color: var(--accent);
    transform: scale(1.03);
}

nav ul a[aria-current="page"] {
    color: var(--accent);
}

main {
    padding: 1.5rem 1.25rem 3rem;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.15;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 11vw, 5rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    letter-spacing: -0.025em;
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro {
    max-width: 41rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.hero {
    margin: 2rem -1.25rem 2.5rem;
}

.hero img {
    width: 100%;
}

.section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}

.service-list {
    margin: 0;
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.service-list span {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: right;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-card {
    overflow: hidden;
    background-color: var(--white);
}

.project-card img {
    width: 100%;
    transition: transform 350ms ease;
}

.project-card:hover img {
    transform: scale(1.015);
}

.project-card__content {
    padding: 1rem;
}

.text-link {
    display: inline-flex;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 750;
    text-decoration: none;
}

.text-link::after {
    content: "→";
}

.portrait {
    float: right;
    width: min(42%, 18rem);
    margin: 0 0 1.5rem 2rem;
}

.about-text::after {
    display: table;
    clear: both;
    content: "";
}

.info-box {
    clear: both;
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 0.25rem solid var(--accent);
    background-color: var(--white);
}

.info-box h2 {
    font-size: 1.35rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-list {
    margin: 0;
    padding: 0;
}

.contact-list li {
    margin-bottom: 0.9rem;
    list-style: none;
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
}

form {
    display: grid;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background-color: var(--white);
    color: var(--text);
    font: inherit;
}

button {
    width: fit-content;
    padding: 0.85rem 1.2rem;
    border: 0;
    background-color: var(--text);
    color: var(--white);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

button:hover,
button:focus {
    background-color: var(--accent);
    transform: scale(1.02);
}

.notice {
    padding: 1rem;
    border: 1px solid var(--line);
    background-color: var(--white);
    color: var(--muted);
}

.legal section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.legal h2 {
    font-size: 1.4rem;
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer p {
    margin: 0;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__links a {
    color: inherit;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: var(--accent);
}

@media (min-width: 37.5rem) {
    .site-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 2rem;
        padding: 1.5rem 2rem;
    }

    .site-header__claim {
        margin: 0;
        text-align: right;
    }

    .menu-button {
        display: none;
    }

    nav ul {
        max-height: none;
        padding: 0.65rem 1.2rem;
        overflow: visible;
    }

    nav ul li {
        width: auto;
    }

    main {
        padding: 2.5rem 2rem 4rem;
    }

    .hero {
        margin: 2.5rem -2rem 3.5rem;
    }

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

    .portrait {
        float: right;
        width: min(42%, 18rem);
        margin: 0 0 1.5rem 2rem;
    }

    .contact-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .site-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
}


/* Portfolio-Verlinkungen */
.eyebrow-link,
.service-link {
    color: inherit;
    text-decoration: none;
}

.eyebrow-link:hover,
.eyebrow-link:focus,
.service-link:hover,
.service-link:focus {
    color: var(--accent);
}

/* Portfolio-Auswahl */
.portfolio-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-choice__card {
    display: block;
    overflow: hidden;
    background-color: var(--white);
    color: var(--text);
    text-decoration: none;
}

.portfolio-choice__card img {
    width: 100%;
    height: auto;
    transition: transform 350ms ease;
}

.portfolio-choice__card:hover img,
.portfolio-choice__card:focus img {
    transform: scale(1.015);
}

.portfolio-choice__content {
    padding: 1rem;
}

.portfolio-choice__content h2 {
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
}

.portfolio-choice__content p {
    margin: 0;
    color: var(--muted);
}

/* Galerie: Motive bewusst untereinander */
.gallery-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.gallery-list figure {
    margin: 0;
}

.gallery-list img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.gallery-list figcaption {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent);
    font-weight: 750;
    text-decoration: none;
}

.back-link::before {
    content: "← ";
}

@media (min-width: 37.5rem) {
    .portfolio-choice {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-text-link { color: inherit; text-decoration: none; font-weight: inherit; transition: color 180ms ease; }
.portfolio-text-link:hover, .portfolio-text-link:focus { color: var(--accent); }
