:root {
    --color-background: #f8faf7;
    --color-surface: #ffffff;
    --color-text: #181b19;
    --color-muted: #5d655f;
    --color-accent: #237739;
    --color-accent-dark: #185a2a;
    --color-border: #d6ded7;
    --color-soft: #edf3ee;
    --space-page: clamp(1rem, 4vw, 4rem);
    --content-width: 1180px;
    --radius: 8px;
    --shadow-soft: 0 18px 40px rgba(32, 32, 30, 0.08);
    --font-base: "Aptos", "Segoe UI", system-ui, sans-serif;
    --font-display: "Aptos Display", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 1.0625rem;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-accent-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover,
a:focus {
    color: var(--color-accent);
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 20;
    transform: translateY(-150%);
    background: var(--color-text);
    color: #fff;
    padding: 0.75rem 1rem;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 250, 247, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.header-inner,
.section,
.footer-inner {
    width: min(100% - (2 * var(--space-page)), var(--content-width));
    margin-inline: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand {
    display: block;
    width: clamp(9rem, 18vw, 12rem);
    text-decoration: none;
}

.brand img {
    width: 100%;
    height: auto;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
}

.header-instagram {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-text);
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-text);
}

.header-instagram svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.header-instagram__dot {
    fill: currentColor;
    stroke: none;
}

.header-instagram:hover,
.header-instagram:focus-visible {
    color: var(--color-accent-dark);
}

.header-back {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-text);
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-text);
    padding: 0;
    text-decoration: none;
}

.header-back svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-back:hover,
.header-back:focus-visible {
    background: transparent;
    color: var(--color-text);
}

.main {
    min-height: 60vh;
}

.section {
    padding-block: 5.5rem;
}

.section-band {
    width: 100%;
}

.section-band--surface {
    background: var(--color-surface);
}

.section-band--soft {
    background: var(--color-soft);
}

.section-band--accent {
    background: var(--color-accent-dark);
    color: #fff;
}

.section-header {
    max-width: 720px;
    margin-bottom: 2.75rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 1rem;
}

h1 {
    max-width: 820px;
    font-size: 4.75rem;
}

h2 {
    max-width: 760px;
    font-size: 2.75rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1rem;
}

.lead {
    max-width: 700px;
    color: var(--color-muted);
    font-size: 1.3rem;
    line-height: 1.55;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 72px);
    align-items: end;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(24, 27, 25, 0.9), rgba(35, 119, 57, 0.7)), var(--color-soft);
    color: #fff;
}

.hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 22, 18, 0.86) 0%, rgba(17, 22, 18, 0.62) 52%, rgba(17, 22, 18, 0.25) 100%);
    content: "";
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero .section {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(3rem, 9vw, 7rem);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.86);
}

.hero .eyebrow {
    color: #c8e5cf;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-accent-dark);
    border-radius: var(--radius);
    background: var(--color-accent-dark);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    text-decoration: none;
}

.button.secondary {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.button:hover,
.button:focus {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

.button.secondary:hover,
.button.secondary:focus {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.card,
.notice {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    padding: clamp(1rem, 3vw, 1.5rem);
}

.card p,
.notice p {
    color: var(--color-muted);
}

.jobs-list {
    display: grid;
    gap: 2rem;
}

.job-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.job-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.job-card__workload {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--color-soft);
    color: var(--color-accent-dark);
    padding: 0.35rem 0.8rem;
    font-weight: 700;
}

.job-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin: 0 0 1.5rem;
    border-block: 1px solid var(--color-border);
    padding-block: 1rem;
}

.job-card__facts div {
    display: grid;
    gap: 0.15rem;
}

.job-card__facts dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.job-card__facts dd {
    margin: 0;
}

.job-card__description {
    max-width: 780px;
}

.job-card__details {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-card__details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.job-card__secondary-button {
    border-color: var(--color-accent-dark);
    background: transparent;
    color: var(--color-accent-dark);
}

.service-card {
    overflow: hidden;
    padding: 0;
}

.service-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 7;
    object-fit: cover;
}

.service-card__body {
    padding: 1.5rem;
}

.placeholder-image {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius);
    background: var(--color-soft);
    color: var(--color-accent-dark);
    font-weight: 700;
}

.page-hero {
    width: 100%;
    max-width: none;
    padding-inline: max(var(--space-page), calc((100% - var(--content-width)) / 2));
    background: var(--color-soft);
}

.service-hero {
    position: relative;
    display: grid;
    min-height: clamp(30rem, 60vh, 42rem);
    align-items: end;
    overflow: hidden;
    background: var(--color-text);
    color: #fff;
}

.service-hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 18, 15, 0.86) 0%, rgba(14, 18, 15, 0.58) 48%, rgba(14, 18, 15, 0.14) 100%);
    content: "";
}

.service-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero--schrank .service-hero__media {
    object-position: center 60%;
}

.service-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.service-hero__content h1 {
    max-width: 760px;
}

.service-hero__content .lead {
    color: rgba(255, 255, 255, 0.88);
}

.service-intro {
    max-width: 760px;
}

.service-intro--with-image {
    display: grid;
    max-width: none;
    align-items: center;
    gap: 2rem;
}

.service-intro__figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-soft);
}

.service-intro__figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 7;
    object-fit: cover;
}

.service-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
}

.service-gallery figure {
    display: block;
    flex: var(--gallery-ratio) 1 var(--gallery-basis);
    width: auto;
    max-width: min(100%, var(--gallery-max-width));
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-soft);
}

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

.service-gallery--count-1 {
    display: flex;
}

.service-gallery--count-1 figure {
    flex-basis: 100%;
    max-width: 100%;
}

.service-gallery--count-1 .service-gallery__item--portrait {
    max-width: 32rem;
}

.company-hero {
    position: relative;
    display: grid;
    min-height: min(72vh, 720px);
    align-items: end;
    overflow: hidden;
    background: var(--color-text);
    color: #fff;
}

.company-hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 18, 15, 0) 38%, rgba(14, 18, 15, 0.35) 62%, rgba(14, 18, 15, 0.92) 100%);
    content: "";
}

.company-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.company-hero__media--managed {
    object-position: center 47%;
}

.company-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 3.5rem;
}

.company-hero__content h1 {
    max-width: 760px;
    font-size: 4rem;
}

.company-hero__content .lead {
    color: rgba(255, 255, 255, 0.88);
}

.company-story {
    display: grid;
    gap: 2rem;
}

.company-story__text {
    max-width: 680px;
}

.company-story__text p:last-child {
    margin-bottom: 0;
}

.company-values {
    display: grid;
    gap: 2.5rem;
}

.company-value {
    border-top: 3px solid var(--color-accent);
    padding-top: 1.5rem;
}

.company-value p {
    color: var(--color-muted);
}

.contact-panel {
    max-width: 760px;
}

.section-band--accent .eyebrow,
.section-band--accent p {
    color: rgba(255, 255, 255, 0.82);
}

.section-band--accent .button {
    border-color: #fff;
    background: #fff;
    color: var(--color-accent-dark);
}

.section-band--accent .button.secondary {
    background: transparent;
    color: #fff;
}

.section-band--accent .button:hover,
.section-band--accent .button:focus {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.section-band--accent .button.secondary:hover,
.section-band--accent .button.secondary:focus {
    background: rgba(255, 255, 255, 0.12);
}

.contact-direct {
    border-left: 3px solid var(--color-accent);
    padding-left: 2rem;
}

.contact-address {
    margin-bottom: 0.4rem;
    font-style: normal;
}

.contact-route {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.contact-hours {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-links {
    max-width: 28rem;
    margin: 1.75rem 0 0;
}

.contact-link {
    padding-block: 1rem;
}

.contact-link + .contact-link {
    border-top: 1px solid var(--color-border);
}

.contact-link dt {
    margin-bottom: 0.25rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-link dd {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 650;
}

.process {
    counter-reset: step;
}

.process .card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 1rem;
    color: var(--color-accent-dark);
    font-weight: 800;
}

.site-footer {
    background: var(--color-text);
    color: #fff;
}

.footer-inner {
    display: grid;
    gap: 2rem;
    padding-block: 3rem;
}

.site-footer a {
    color: #fff;
}

.footer-note {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem;
    font: inherit;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

@media (min-width: 760px) {
    .job-card__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .company-story {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .company-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-intro--with-image {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 759px) {
    .service-gallery figure {
        flex-basis: 100%;
        max-width: 100%;
    }

    .service-gallery .service-gallery__item--portrait {
        max-width: 32rem;
    }

    .job-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        padding-block: 3.75rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.15rem;
    }

    .contact-direct {
        border-left: 0;
        border-top: 3px solid var(--color-accent);
        padding-top: 2rem;
        padding-left: 0;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(17, 22, 18, 0.45) 0%, rgba(17, 22, 18, 0.88) 72%);
    }

    .hero-media {
        object-position: 58% center;
    }

    .service-hero {
        min-height: clamp(28rem, 72svh, 38rem);
    }

    .service-hero::after {
        background: linear-gradient(180deg, rgba(14, 18, 15, 0.2) 10%, rgba(14, 18, 15, 0.9) 82%);
    }

    .service-hero__content {
        padding-bottom: 3.5rem;
    }

    .service-hero--kuechenbau .service-hero__media,
    .service-hero--schrank .service-hero__media,
    .service-hero--moebelbau .service-hero__media {
        object-position: 58% center;
    }

    .company-hero {
        display: block;
        min-height: 0;
    }

    .company-hero::after {
        content: none;
    }

    .company-hero__media {
        position: relative;
        height: auto;
    }

    .company-hero__content {
        padding-block: 3.25rem 4rem;
    }

    .company-hero__content h1 {
        font-size: 2.75rem;
    }
}

@media (min-width: 760px) and (max-height: 800px) {
    .company-hero__content {
        padding-bottom: 1.5rem;
    }

    .company-hero__content h1 {
        max-width: 700px;
        margin-bottom: 0.5rem;
        font-size: 3rem;
    }

    .company-hero__content .lead {
        max-width: 760px;
        margin-bottom: 0;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
