/* Entwurf 1 – Maßarbeit: präzise, ruhig, wie eine Werkzeichnung. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-800.woff2") format("woff2");
}

:root {
  --paper: #f4f5f1;
  --white: #ffffff;
  --ink: #1b211d;
  --graphite: #59615b;
  --green: #1d7a2c;
  --green-dark: #155f21;
  --maple: #e6d3ad;
  --maple-soft: #efe4cc;
  --line: #d5d9d2;
  --font: "Archivo", system-ui, sans-serif;
  --wrap: 1200px;
  --gap: clamp(1rem, 2.4vw, 2rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--maple); color: var(--ink); }
a { color: var(--green-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.25rem;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  color: #fff; background: var(--green);
  border: 2px solid var(--green); border-radius: 4px;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--sm { min-height: 2.5rem; padding: .45rem .9rem; font-size: .9375rem; }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { color: var(--ink); background: #fff; border-color: #fff; }
.btn--light:hover { background: var(--maple); border-color: var(--maple); }
.btn--ghost-light { color: #fff; background: transparent; border-color: rgb(255 255 255 / .75); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.contact :focus-visible { outline-color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(244 245 241 / .94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.top__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: grid; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand__name { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }
.brand__name::after { content: ""; display: block; width: 100%; height: 3px; margin-top: 2px; background: var(--green); }
.brand__sub { font-size: .75rem; color: var(--graphite); margin-top: .2rem; }
.nav { display: flex; gap: 1.5rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .9375rem; padding: .4rem 0; }
.nav a:hover { color: var(--green-dark); text-decoration: underline; }
.top nav { margin-left: auto; }
@media (max-width: 52rem) { .top nav { display: none; } .top .btn--sm { margin-left: auto; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.02; max-width: 15ch; }
.lede { margin-top: 1.5rem; max-width: 52ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--graphite); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 1.5rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .8125rem; color: var(--graphite); }
.facts dd { margin: .15rem 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.hero__img { margin: 0; position: relative; }
.hero__img img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 2px; }

/* Maßlinie: the one ornament – a dimension line with end ticks. */
.dim { position: relative; margin-top: 1rem; display: flex; justify-content: center; font-size: .8125rem; color: var(--graphite); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--graphite); }
.dim::after { content: ""; position: absolute; inset: calc(50% - 7px) 0 auto; height: 14px; border-inline: 1px solid var(--graphite); }
.dim span { position: relative; z-index: 1; padding: 0 .75rem; background: var(--paper); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--rule { border-top: 1px solid var(--line); }
.section--maple { background: var(--maple-soft); }
.head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.head p { color: var(--graphite); max-width: 60ch; }
.section--maple .head p { color: #4a4232; }

/* Services: one lead row, three supporting columns */
.services { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc .svc__door { object-fit: contain; background: #f7f3ea; padding: 1rem 0; }
.svc .svc__tall { object-position: center 30%; }
.svc__body { display: grid; gap: .8rem; padding: 1.4rem 1.4rem 1.6rem; align-content: start; }
.svc__body p { color: var(--graphite); }
.svc__body .small { font-size: .9375rem; }
@media (min-width: 48rem) {
  .svc--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
  .svc--lead img { height: 100%; aspect-ratio: auto; min-height: 22rem; }
  .svc--lead .svc__body { padding: clamp(1.5rem, 3vw, 2.75rem); align-content: center; }
  .svc--lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: .4rem 0 0; padding: 0; }
.tags li { padding: .3rem .7rem; font-size: .875rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.list li { position: relative; padding-left: 1.1rem; color: var(--graphite); }
.list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .55rem; border-top: 2px solid var(--green); }

/* Steps on a folding-rule scale */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; padding-top: 2.75rem; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.4rem;
  border-top: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px) top left / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px) top left / 100% 14px no-repeat;
}
.steps li::after { content: counter(s); position: absolute; top: 1.15rem; left: 0; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--green-dark); }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--graphite); font-size: .9375rem; }

/* Woods */
.woods { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.wood { background: var(--white); padding: 0 1.4rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.wood::before { content: ""; height: 3.25rem; margin: 0 -1.4rem .6rem; background: var(--swatch); background-image: repeating-linear-gradient(100deg, rgb(255 255 255 / .08) 0 2px, transparent 2px 9px), repeating-linear-gradient(97deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 23px); }
.wood p { color: var(--graphite); font-size: .9688rem; }
.wood--kirsche { --swatch: #a4583a; }
.wood--nuss { --swatch: #5b4232; }
.wood--eiche { --swatch: #b88a4e; }
.wood--ahorn { --swatch: #e8d8b6; }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 56rem) { .about { grid-template-columns: 1fr 1.1fr; } }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 525 / 286; object-fit: cover; }
.about__img figcaption { margin-top: .6rem; font-size: .875rem; color: var(--graphite); }
.about__text { display: grid; gap: 1.1rem; max-width: 62ch; }
.about__text p { color: #3b423d; }
.about__text .promise { font-weight: 650; color: var(--ink); padding-top: .4rem; }
.portrait { display: flex; gap: 1rem; align-items: center; margin-top: .75rem; }
.portrait__slot { flex: none; width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 1px dashed var(--graphite); background: radial-gradient(circle at 50% 38%, var(--line) 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, var(--line) 0 42%, transparent 43%), var(--white); }

/* References */
.refs { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .refs { grid-template-columns: 1fr 2fr; } }
.reflist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0 var(--gap); }
.reflist li { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.reflist span { font-size: .9375rem; color: var(--graphite); }

/* Contact */
.contact { background: var(--green-dark); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact h2 { max-width: 16ch; }
.contact p { margin-top: 1rem; color: #e3efe4; max-width: 46ch; }
.contact a:not(.btn) { color: #fff; }
.contact__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem 2rem; }
.contact__list dt { font-size: .8125rem; color: #cfe3d1; }
.contact__list dd { margin: .25rem 0 0; font-weight: 550; font-variant-numeric: tabular-nums; }

/* Footer / Impressum */
.foot { padding: 3rem 0 3.5rem; font-size: .875rem; color: var(--graphite); }
.imp h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 1rem; }
.imp dl { display: grid; grid-template-columns: minmax(10rem, max-content) 1fr; gap: .35rem 2rem; margin: 0; }
.imp dt { font-weight: 650; color: var(--ink); }
.imp dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .imp dl { grid-template-columns: 1fr; } .imp dd { margin-bottom: .5rem; } }
.foot__note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 75ch; }
.foot__note a { color: var(--green-dark); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
