/* ==========================================================================
   holzwege zimmerei gmbh – Stylesheet
   Leitmotive: Kalk (Grund), Holz (Akzent), Patina, Lehm.
   Mobile first. Breakpoints: 40em (640px), 64em (1024px).
   ========================================================================== */

/* ---------- Schrift (lokal, SIL OFL) ----------
   Asap – wie auf der bisherigen Website holzwege.ch */
@font-face {
    font-family: "Asap";
    src: url("../fonts/asap-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Asap";
    src: url("../fonts/asap-italic-var.woff2") format("woff2");
    font-weight: 300 600;
    font-style: italic;
    font-display: swap;
}

/* ---------- Gestaltungs-Tokens ---------- */
:root {
    --kalk: #e8dece;
    --kalk-2: #dccfba;
    --paper: #f2ebdf;
    --ink: #26211b;
    --ink-2: #5a5045;
    --holz: #80451f;
    --holz-hell: #d39a5e;
    --doppelpunkt: #a85a24;        /* Doppelpunkt aus der Wortmarke */
    --doppelpunkt-hell: #e0a466;   /* … auf dunklem Grund */
    --patina: #4c5a4a;
    --dunkel: #221d18;
    --dunkel-2: #2e2720;
    --dunkel-text: #ece5d8;
    --dunkel-muted: #b9ae9c;
    --line: rgba(38, 33, 27, 0.18);
    --line-dark: rgba(236, 229, 216, 0.18);
    --error: #9b2c1f;
    --success: #3d5a3a;

    --display: "Asap", "Segoe UI", system-ui, -apple-system, sans-serif;
    --sans: "Asap", "Segoe UI", system-ui, -apple-system, sans-serif;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --max: 76rem;
    --space: clamp(4rem, 9vw, 8rem);
    --radius: 2px;
    --header-h: 4.25rem;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--kalk);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    text-wrap: balance;
}

p, ul, ol, dl, address { margin: 0 0 1rem; }
address { font-style: normal; }
p { text-wrap: pretty; }

a {
    color: var(--holz);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--holz);
    outline-offset: 3px;
    border-radius: var(--radius);
}

::selection { background: var(--holz); color: var(--paper); }

.wrap {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Doppelpunkt aus der Wortmarke als Motiv */
.brand__colon { color: var(--doppelpunkt); }

/* Doppelpunkt als grafisches Zeichen (Aufzählungen, Legenden) */
.colon-list { padding: 0; list-style: none; }
.colon-list > li { position: relative; padding-left: 1.1rem; }
.colon-list > li::before,
.figure figcaption::before,
.intro__figure figcaption::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: calc(0.825em - 5px);
    width: 4px;
    height: 4px;
    border-radius: 1px;   /* eckig wie der Doppelpunkt der Wortmarke */
    background: var(--doppelpunkt);
    box-shadow: 0 6px 0 var(--doppelpunkt);
}

/* ---------- Buttons & Links ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font: 600 1rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button:hover { background: var(--holz); border-color: var(--holz); color: #fff; }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.text-link { font-weight: 600; }

.more-link { margin-top: 2.5rem; }
.more-link a { font-weight: 600; }
.more-link a::after { content: " →"; }

.kicker {
    margin-bottom: 1.25rem;
    color: var(--ink-2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    font-family: var(--display);
    font-size: clamp(1.1875rem, 2vw, 1.375rem);
    line-height: 1.5;
    font-weight: 400;
}

/* ---------- Kopfzeile ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--kalk);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(38, 33, 27, 0.5);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.brand {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
}
.brand__word {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.brand__sub {
    margin-top: 0.2rem;
    color: var(--ink-2);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font: 600 0.9375rem var(--sans);
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Navigation: Panel unter der Kopfzeile */
.site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: none;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--kalk);
    border-top: 1px solid var(--line);
    overflow-y: auto;
}
.site-nav.is-open { display: flex; }

.site-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__list a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.75rem;
    text-decoration: none;
}
.site-nav__list a[aria-current="true"] { color: var(--holz); }

.site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 64em) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 0;
        background: none;
        border: 0;
        overflow: visible;
    }
    .site-nav__list { display: flex; gap: 1.6rem; }
    .site-nav__list a {
        position: relative;
        padding: 0.4rem 0;
        border: 0;
        font-family: var(--sans);
        font-size: 0.9875rem;
        font-weight: 500;
    }
    .site-nav__list a::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 2px;
        background: var(--holz);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }
    .site-nav__list a:hover::after,
    .site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
    .site-nav__list a[aria-current="true"] { color: var(--ink); }
    .site-nav__phone {
        padding: 0.5rem 0.9rem;
        border: 1px solid var(--ink);
        border-radius: var(--radius);
        font-size: 0.9375rem;
    }
    .site-nav__phone:hover { background: var(--ink); color: var(--paper); }
}

body.nav-open { overflow: hidden; }
@media (min-width: 64em) { body.nav-open { overflow: auto; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space); }
.section--plain { background: var(--kalk-2); }

.section-head {
    max-width: 50rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__label {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--ink-2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section-head__label a { color: inherit; text-decoration: none; }
.section-head__no {
    color: var(--holz);
    font-variant-numeric: tabular-nums;
}
.section-head__title {
    margin: 0;
    font-size: clamp(1.85rem, 4.4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}
.section-head__intro {
    margin-top: 1.25rem;
    max-width: 40rem;
    color: var(--ink-2);
    font-size: 1.125rem;
}

.prose { max-width: 40rem; }
.prose > :last-child { margin-bottom: 0; }

.split {
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 64em) {
    .split { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
    .split--reverse { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .split--team { grid-template-columns: 0.8fr 1.2fr; }
}

/* ---------- Bilder ---------- */
.figure { margin: 0; }
.figure figcaption,
.intro__figure figcaption {
    position: relative;
    margin-top: 0.75rem;
    padding-left: 1rem;
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.45;
}
.figure img,
.intro__figure img { background: var(--kalk-2); }

.figure-stack {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
}
.figure--tall { grid-column: 1 / span 8; grid-row: 1; align-self: start; }
.figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.figure--tall figcaption { max-width: 58%; }
.figure--offset {
    grid-column: 6 / span 7;
    grid-row: 1;
    margin-bottom: 2rem;
    padding: 0.6rem 0 0 0.6rem;
    background: var(--kalk);
}
@media (max-width: 40em) {
    .figure-stack { grid-template-columns: 1fr; gap: 2rem; }
    .figure--tall, .figure--offset { grid-column: 1; grid-row: auto; margin: 0; padding: 0; }
    .figure--tall figcaption { max-width: none; }
}
.figure--offset img { aspect-ratio: 16 / 10; object-fit: cover; }
.figure--offset figcaption { padding-bottom: 0.25rem; }

.figure--band { margin-block: clamp(3rem, 7vw, 5rem); }
.figure--band img { aspect-ratio: 21 / 9; object-fit: cover; }
.section--dark .figure--band figcaption { color: var(--dunkel-muted); }
.section--dark .figure--band figcaption::before { background: var(--doppelpunkt-hell); box-shadow: 0 6px 0 var(--doppelpunkt-hell); }

/* ---------- Intro ---------- */
.intro { padding-block: clamp(2rem, 6vw, 5rem) var(--space); }
.intro__grid {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 64em) {
    .intro__grid {
        grid-template-columns: 5fr 7fr;
        gap: 4rem;
        align-items: center;
    }
}
.intro__title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.25rem, 5.6vw, 4.1rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
    hyphens: manual;
}
.intro__lead {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--ink-2);
    font-size: 1.125rem;
}
.intro__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.intro__figure { margin: 0; }
.intro__figure img { aspect-ratio: 3 / 2; object-fit: cover; }

.intro__pillars {
    display: grid;
    gap: 0;
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}
@media (min-width: 40em) { .intro__pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .intro__pillars { grid-template-columns: repeat(4, 1fr); } }
.intro__pillars a {
    display: block;
    height: 100%;
    padding: 1.25rem 1.25rem 1.5rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.9875rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}
.intro__pillars strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.375rem;
    font-weight: 400;
}
.intro__pillars a:hover { color: var(--ink); }
.intro__pillars a:hover strong { color: var(--holz); }

/* ---------- Listen ---------- */
.list-title {
    margin-top: 2.5rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}
.tag-list li {
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.9375rem;
}

.service-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}
.service-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 1.0625rem;
}
.service-list strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-right: 0.35rem;
}

/* ---------- Material ---------- */
.material {
    display: grid;
    gap: 2rem;
    margin-top: clamp(4rem, 8vw, 6rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--paper);
    border: 1px solid var(--line);
}
@media (min-width: 64em) { .material { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.material__title { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.material__text p { color: var(--ink-2); max-width: 38rem; }
.material__list { margin: 0; align-self: center; }
.material__list div {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}
.material__list div:first-child { border-top: 1px solid var(--ink); }
.material__list dt {
    color: var(--ink-2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 0.2rem;
}
.material__list dd {
    margin: 0;
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.35;
}
@media (max-width: 30em) { .material__list div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Denkwerk (dunkel) ---------- */
.section--dark {
    background: var(--dunkel);
    color: var(--dunkel-text);
}
.section--dark a { color: var(--holz-hell); }
.section--dark .section-head__label { color: var(--dunkel-muted); }
.section--dark .section-head__no,
.section--dark .brand__colon { color: var(--doppelpunkt-hell); }
.section--dark .prose p:not(.lead) { color: var(--dunkel-muted); }

.ledger { border-top: 1px solid var(--dunkel-text); }
.ledger__row {
    display: grid;
    gap: 0.4rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 40em) { .ledger__row { grid-template-columns: 9rem 1fr; gap: 1.5rem; } }
.ledger__label {
    margin: 0;
    color: var(--holz-hell);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 0.25rem;
}
.ledger__items {
    margin: 0;
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.45;
}

.phases__title {
    margin-bottom: 2rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.phases {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: phase;
}
@media (min-width: 64em) { .phases { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.phases__item {
    position: relative;
    padding: 0 0 2rem 3.25rem;
}
.phases__item::before {
    content: "";
    position: absolute;
    left: 1.05rem; top: 2.5rem; bottom: 0;
    width: 1px;
    background: var(--line-dark);
}
.phases__item:last-child::before { display: none; }
@media (min-width: 64em) {
    .phases__item { padding: 3.75rem 0 0; }
    .phases__item::before {
        left: 2.75rem; right: -1.5rem; top: 1.1rem; bottom: auto;
        width: auto; height: 1px;
    }
}
.phases__no {
    position: absolute;
    left: 0; top: 0;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--holz-hell);
    border-radius: 50%;
    color: var(--holz-hell);
    font-family: var(--display);
    font-size: 1.1rem;
}
.phases__item h4 {
    margin-bottom: 0.5rem;
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.phases__item p {
    margin: 0;
    color: var(--dunkel-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.stance {
    position: relative;
    max-width: 52rem;
    margin: clamp(4rem, 8vw, 6rem) 0 0;
    padding: 2rem 0 0;
    border-top: 1px solid var(--line-dark);
}
.stance::before {
    content: ":";
    display: block;
    margin: 0 0 0.5rem;
    color: var(--doppelpunkt-hell);
    font-family: var(--sans);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}
.stance p {
    margin-bottom: 1rem;
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.35;
}
.stance footer {
    color: var(--holz-hell);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Projekte ---------- */
.projects {
    display: grid;
    gap: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 48em) { .projects { grid-template-columns: repeat(2, 1fr); } }

.project { display: flex; flex-direction: column; }
.project__media { margin: 0 0 1.25rem; overflow: hidden; background: var(--kalk-2); }
.project__media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project:hover .project__media img { transform: scale(1.02); }

@media (min-width: 48em) {
    .project--wide {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: clamp(1.5rem, 4vw, 3.5rem);
        align-items: center;
    }
    .project--wide .project__media { margin: 0; }
    .project--wide .project__media img { aspect-ratio: 16 / 10; }
    .project--wide .project__title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
}

.project__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--holz);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.project__meta span + span { color: var(--ink-2); }
.project__title { margin-bottom: 0.6rem; font-size: 1.6rem; }
.project__body > p:not(.project__meta) { color: var(--ink-2); }

.project__works { margin-top: auto; border-top: 1px solid var(--line); }
.project__works summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    list-style: none;
}
.project__works summary::-webkit-details-marker { display: none; }
.project__works summary::after,
.werkliste__group summary::after {
    content: "+";
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--holz);
    transition: transform 0.2s ease;
}
.project__works[open] summary::after,
.werkliste__group[open] summary::after { transform: rotate(45deg); }
.project__works ul {
    margin: 0 0 1rem;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

/* ---------- Werkliste ---------- */
.werkliste { border-top: 1px solid var(--ink); }
.werkliste__group { border-bottom: 1px solid var(--line); }
.werkliste__group summary {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
}
.werkliste__group summary::-webkit-details-marker { display: none; }
.werkliste__group summary::after { margin-left: auto; }
.werkliste__name {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
    line-height: 1.15;
}
.werkliste__count {
    color: var(--holz);
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.werkliste__items {
    columns: 1;
    column-gap: 2.5rem;
    margin: 0;
    padding: 0 0 2rem;
    list-style: none;
}
@media (min-width: 40em) { .werkliste__items { columns: 2; } }
@media (min-width: 64em) { .werkliste__items { columns: 3; } }
.werkliste__items li {
    break-inside: avoid;
    padding: 0.4rem 0 0.4rem 1.1rem;
    position: relative;
    font-size: 0.9875rem;
    line-height: 1.45;
}
.werkliste__items li::before { top: calc(0.4rem + 0.725em - 5px); }

/* ---------- Zusammenarbeit / Kosten ---------- */
.cost-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 64em) { .cost-grid { grid-template-columns: repeat(3, 1fr); } }
.cost {
    padding: 1.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--ink);
}
.cost--free { border-top-color: var(--patina); }
.cost h3 { font-size: 1.5rem; }
.cost ul { margin-bottom: 0; }
.cost li { margin-bottom: 0.5rem; }
.cost .note { color: var(--ink-2); font-size: 0.9375rem; }
.cost__credit {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.9375rem;
}

/* ---------- Team ---------- */
.jobs {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink);
}
.jobs h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.jobs p { margin: 0; color: var(--ink-2); }

.team {
    display: grid;
    gap: 0 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}
@media (min-width: 40em) { .team { grid-template-columns: repeat(2, 1fr); } }
.team__member {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}
.team__member--lead .team__name::after {
    content: "Geschäftsleitung";
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--holz);
    border-radius: 999px;
    color: var(--holz);
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.team__name {
    margin-bottom: 0.25rem;
    font-size: 1.375rem;
}
.team__roles {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.team__phone { margin: 0.4rem 0 0; font-size: 0.9375rem; font-weight: 600; }

/* ---------- Kontakt ---------- */
.section--contact { background: var(--paper); }
.contact {
    display: grid;
    gap: 3rem;
}
@media (min-width: 64em) { .contact { grid-template-columns: 1fr 1.5fr; gap: 5rem; } }

.contact__info address {
    margin-bottom: 1.5rem;
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1.35;
}
.contact__info address strong { font-weight: 500; }
.contact__list { margin-bottom: 1.5rem; border-top: 1px solid var(--ink); }
.contact__list div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}
.contact__list dt { color: var(--ink-2); font-size: 0.9375rem; }
.contact__list dd { margin: 0; font-weight: 600; }
.contact__list a { color: var(--ink); }
.contact__hint {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9375rem;
}
.field .req { color: var(--holz); }
.field .opt { color: var(--ink-2); font-weight: 400; }

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #8c8174;
    border-radius: var(--radius);
    background: #faf6ef;
    color: var(--ink);
    font: 1rem/1.4 var(--sans);   /* ≥16px verhindert Zoom auf iOS */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem;
    background-size: 0.35rem 0.35rem;
    background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--holz);
    box-shadow: 0 0 0 3px rgba(128, 69, 31, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error {
    margin: 0.4rem 0 0;
    color: var(--error);
    font-size: 0.9375rem;
    font-weight: 600;
}

.form__hp {
    position: absolute;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}
.form__privacy {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.55;
}
.form .button { justify-self: start; }

.notice {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid;
    background: var(--kalk);
}
.notice:focus { outline: none; }
.notice h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.notice p { margin: 0; }
.notice--success { border-color: var(--success); }
.notice--error { border-color: var(--error); color: var(--error); font-weight: 600; }

/* ---------- Links ---------- */
.section--links { padding-block: clamp(3rem, 6vw, 5rem); background: var(--kalk-2); }
.links__title { font-size: 1.75rem; margin-bottom: 1.5rem; }
.links {
    display: grid;
    gap: 1.5rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 40em) { .links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .links { grid-template-columns: repeat(4, 1fr); } }
.links li { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.links p {
    margin-bottom: 0.4rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.4;
}
.links a { font-size: 0.9375rem; font-weight: 600; }

/* ---------- Fusszeile ---------- */
.site-footer {
    padding-block: 4rem 2rem;
    background: var(--dunkel);
    color: var(--dunkel-muted);
    font-size: 0.9375rem;
}
.site-footer a { color: var(--dunkel-text); }
.site-footer .brand__word { color: var(--dunkel-text); font-size: 2rem; }
.site-footer .brand__colon { color: var(--doppelpunkt-hell); }
.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }
.site-footer__mark {
    width: 52px;
    height: auto;
    margin-bottom: 1rem;
    filter: invert(1) sepia(0.25);
    opacity: 0.8;
}
.site-footer__brand p { margin: 0 0 0.25rem; }
.site-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav li { margin-bottom: 0.45rem; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    background: linear-gradient(var(--line-dark), var(--line-dark)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
    font-size: 0.875rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem) var(--space); }
.legal__wrap {
    display: grid;
    gap: 2rem;
}
@media (min-width: 64em) {
    .legal__wrap {
        grid-template-columns: 16rem minmax(0, 44rem);
        column-gap: 5rem;
    }
    .legal__head { grid-column: 1 / -1; }
    .legal__toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.legal__head h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}
.legal__meta { margin-top: 0.75rem; color: var(--ink-2); }
.legal__toc {
    padding: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 0.9375rem;
}
.legal__toc p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.legal__toc ol { margin: 0; padding-left: 1.25rem; }
.legal__toc li { margin-bottom: 0.3rem; }
.legal__body { max-width: 44rem; }
.legal__body h2 {
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 1.75rem;
}
.legal__body h3 {
    margin-top: 1.75rem;
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 600;
}

.legal__body li { margin-bottom: 0.35rem; }
.legal__body .lead { margin-bottom: 1.5rem; }
.signature {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink);
    font-family: var(--display);
    font-size: 1.25rem;
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---------- Druck ---------- */
@media print {
    .site-header, .nav-toggle, .site-nav, .intro__actions, .contact__form, .section--links { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .section, .section--dark, .section--plain { padding-block: 1.5rem; background: #fff; color: #000; }
    .section--dark .prose p:not(.lead), .phases__item p { color: #333; }
    a { color: #000; }
}

/* ---------- Doppelpunkt in Beschriftungen ---------- */
.figure figcaption::before,
.intro__figure figcaption::before { top: calc(0.725em - 5px); }
.ledger__label::after,
.material__list dt::after,
.contact__list dt::after {
    content: ":";
    color: var(--doppelpunkt);
}
.ledger__label::after { color: var(--doppelpunkt-hell); }
