:root {
  --black: #0F0F0F;
  --text: #141414;
  --text-2: #2a2a2a;
  --text-3: #2f2f2f;
  --bg: #F6F3EE;
  --hairline: #EAE4DA;
  --beige: #805F38;
  --accent: #4a3220;
  --accent-soft: #3a271a;

  --gutter: 20px;
  --section-y: 48px;

  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-label: 0.824em;
  --t-body: 1rem;
  --t-lead: 1.2rem;
  --t-h3: 1.44rem;
  --t-h2: 1.728rem;
  --t-h1: 2.074rem;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 80px; }
}
@media (min-width: 1120px) {
  :root { --gutter: 48px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 64px; }
}
@media (min-width: 1920px) {
  :root { --gutter: 96px; }
}

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

html { font-size: 106.25%; }
@media (min-width: 768px) { html { font-size: 112.5%; } }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}
a:hover, a:focus-visible {
  color: var(--accent-soft);
  text-decoration-thickness: 2px;
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

p { margin: 0 0 1em 0; max-width: 68ch; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(1.9rem, 3.2vw + 0.7rem, 4rem); margin-bottom: 0.4em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-lead); }

main { display: block; }

.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ------------- The signature: a four-block mark that echoes the logo's "M" */
.mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}
.mark i {
  display: block;
  background: var(--accent);
}

.kicker {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* ------------- Header band */
.header {
  background: var(--black);
  color: #fff;
  padding: 14px var(--gutter);
}
.header a { color: #fff; text-decoration: none; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: clamp(32px, 4.5vw, 44px);
  width: auto;
  display: block;
}
.hdr-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--beige);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: var(--t-body);
  min-height: 44px;
  line-height: 1;
}
.hdr-call:hover, .hdr-call:focus-visible {
  background: #7e5d33;
  color: #ffffff;
  text-decoration: none;
}
.hdr-call .phone-ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: #ffffff;
  clip-path: polygon(10% 0, 40% 0, 50% 25%, 35% 40%, 55% 60%, 70% 45%, 95% 55%, 95% 85%, 80% 100%, 60% 100%, 20% 75%, 0 35%);
}
.nav {
  margin-top: 12px;
  display: flex;
  gap: 14px 24px;
  flex-wrap: wrap;
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { color: #f0f0f0; text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom: 1px solid var(--beige); }
.nav a.current { color: #fff; border-bottom: 1px solid var(--beige); }

@media (min-width: 900px) {
  .header-row { gap: 32px; }
  .nav { margin-top: 0; flex: 1; justify-content: center; }
  .header { padding: 18px var(--gutter); }
}

/* ------------- Hero */
.hero {
  padding: 32px 0 0 0;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 var(--gutter);
}
.hero-text { padding: 20px 0 0 0; }
.hero-text .kicker { margin-bottom: 20px; }
.hero h1 {
  margin: 0 0 20px 0;
  font-size: clamp(2.1rem, 3.1vw + 1.1rem, 4.4rem);
}
.hero-text .lead {
  font-size: var(--t-lead);
  color: var(--text-2);
  max-width: 48ch;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-body);
  min-height: 48px;
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--accent-soft);
  color: #fff;
  text-decoration: none;
}
.hero-cta small {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.hero-cta .cta-wrap { display: block; }

/* Materialien chips (trade signature add-on) */
.materials {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.materials li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: transparent;
  border-left: 3px solid var(--beige);
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.materials li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--beige);
  flex-shrink: 0;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .materials li { transition: border-left-width 200ms ease-out, padding-left 200ms ease-out; }
  .materials li:hover,
  .materials li:focus-within {
    border-left-width: 5px;
    padding-left: 12px;
  }
}

/* Polish-sheen stroke across photos on hover and keyboard focus.
   Trade signature: the moment a mason wipes a polished stone. */
.hero-photo,
.slab-photo,
.trust-photo,
.ref-photo {
  position: relative;
  isolation: isolate;
}
.hero-photo::after,
.slab-photo::after,
.trust-photo::after,
.ref-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 38%,
    rgba(255, 246, 228, 0.0) 48%,
    rgba(255, 246, 228, 0.55) 50%,
    rgba(255, 246, 228, 0.0) 52%,
    transparent 62%);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-photo::after,
  .slab-photo::after,
  .trust-photo::after,
  .ref-photo::after {
    transition: transform 700ms cubic-bezier(.4,0,.2,1), opacity 400ms ease-out;
  }
  .hero-photo:hover::after,
  .slab-photo:hover::after,
  .slab-photo:focus-within::after,
  .trust-photo:hover::after,
  .ref-photo:hover::after,
  .ref-photo:focus-within::after {
    transform: translateX(100%);
    opacity: 1;
  }
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-strip {
  margin-top: 40px;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: var(--t-label);
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.hero-strip span { white-space: nowrap; }
.hero-strip b { color: var(--text); font-weight: 600; margin-right: 6px; letter-spacing: 0; }

@media (min-width: 720px) {
  .hero-wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
  }
  .hero-text { padding: 32px 0; }
  .hero-photo { aspect-ratio: 3 / 4; }
}
@media (min-width: 1120px) {
  .hero-wrap { gap: 72px; }
  .hero-text { padding: 48px 0; }
}

/* ------------- Section scaffolding */
.sec {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--hairline);
  position: relative;
}
.sec:first-of-type { border-top: none; }
/* Mason's chalk mark at section top left: short beige bar that marks the cut. */
.sec:not(:first-of-type)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 56px;
  height: 3px;
  background: var(--beige);
}
.sec-head {
  max-width: 60ch;
  margin-bottom: 32px;
}
.sec-head p { color: var(--text-2); font-size: var(--t-lead); max-width: 58ch; }
.sec h2 { display: flex; align-items: baseline; }
.sec h2 .mark { align-self: center; }

/* ------------- Three service slabs (home page, "Was ich mache") */
.slabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.slab {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.slab-photo {
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--hairline);
  aspect-ratio: 3 / 2;
  position: relative;
}
.slab-photo.tall { aspect-ratio: 3 / 4; }
.slab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slab-text { padding-top: 4px; }
.slab-text .mat {
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px 0;
}
.slab-text h3 { font-size: var(--t-h3); margin: 0 0 12px 0; }
.slab-text p { color: var(--text-2); }
.slab-text .more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}
.slab-text .more::after {
  content: " \2192";
  font-family: var(--sans);
}

@media (min-width: 780px) {
  .slab { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .slab.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .slab.flip .slab-photo { order: 2; }
  .slab.flip .slab-text { order: 1; }
  .slabs { gap: 72px; }
  .slab-photo { aspect-ratio: 4 / 3; }
}

/* ------------- Trust + contact block (home) */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.trust-photo {
  border: 1px solid var(--hairline);
  background: var(--hairline);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.trust-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust-copy p { color: var(--text-2); }
.trust-copy .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 20px 0;
  font-size: var(--t-label);
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.trust-copy .pill-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-copy .pill-row span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
}
.contact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.contact-grid dl { margin: 0; }
.contact-grid dt {
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 6px 0;
  font-weight: 600;
}
.contact-grid dd { margin: 0 0 4px 0; font-family: var(--serif); font-size: var(--t-lead); color: var(--text); }
.contact-grid a { color: var(--text); }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 12px;
  padding: 2px 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  color: var(--text-2);
}
.hours-list li span:first-child { color: var(--text); font-weight: 600; }
.contact-grid dd.email-dd { font-size: var(--t-body); color: var(--text-2); }

@media (min-width: 900px) {
  .trust { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* ------------- Call strip (shared at the bottom of every page) */
.call-strip {
  background: var(--beige);
  color: #ffffff;
  padding: 28px var(--gutter);
}
.call-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
.call-strip h2 {
  font-family: var(--serif);
  font-size: var(--t-h3);
  margin: 0;
  color: #ffffff;
}
.call-strip p { margin: 0; color: #ffffff; font-size: var(--t-body); }
.call-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 600;
  min-height: 48px;
  font-size: var(--t-body);
  justify-self: start;
}
.call-strip-cta:hover, .call-strip-cta:focus-visible {
  background: #2d2016;
  color: #fff;
  text-decoration: none;
}
.call-strip-cta small { display: block; font-size: 0.78em; font-weight: 400; color: #ffffff; margin-top: 2px; }

@media (min-width: 780px) {
  .call-strip-inner { grid-template-columns: 1fr auto; gap: 32px; }
  .call-strip-cta { justify-self: end; }
}

/* ------------- Footer band */
.footer {
  background: var(--black);
  color: #ffffff;
  padding: 48px var(--gutter) 24px var(--gutter);
  font-size: var(--t-label);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer h3, .footer .f-label {
  color: #fff;
  font-family: var(--sans);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 2px 0; }
.footer a { color: #ffffff; }
.footer ul a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .brand-footer img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.footer .brand-footer p { color: #ffffff; margin: 0; max-width: 32ch; }
.footer hr {
  border: 0;
  border-top: 1px solid #262626;
  margin: 32px 0 16px 0;
}
.footer .legal {
  color: #ffffff;
  font-size: calc(var(--t-label) * 0.95);
  line-height: 1.5;
  max-width: 68ch;
}
.footer .legal a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 780px) {
  .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
}

/* ------------- Inner page: intro + stacked reference slabs */
.page-head {
  padding: 48px var(--gutter) 20px;
}
.page-head .kicker { margin-bottom: 14px; }
.page-head h1 { margin-bottom: 20px; }
.page-head p { color: var(--text-2); font-size: var(--t-lead); max-width: 56ch; }

.refs {
  padding: 20px var(--gutter) var(--section-y);
  display: grid;
  gap: 56px;
}
.ref {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.ref-photo {
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--hairline);
  aspect-ratio: 3 / 2;
}
.ref-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-photo.portrait { aspect-ratio: 3 / 4; }
.ref-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ref-caption .mat {
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}
.ref-caption h2 { margin: 0; font-size: var(--t-h3); }
.ref-caption p { color: var(--text-2); max-width: 60ch; }

@media (min-width: 780px) {
  .ref { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .ref.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ref.flip .ref-photo { order: 2; }
  .ref.flip .ref-caption { order: 1; }
  .refs { gap: 88px; padding-top: 32px; }
}

/* ------------- Grabsteine: quiet typographic page */
.quiet {
  padding: 56px var(--gutter) var(--section-y);
  max-width: 100%;
}
.quiet-stmt {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw + 0.7rem, 2.1rem);
  line-height: 1.35;
  max-width: 24ch;
  color: var(--text);
  margin: 0 0 32px 0;
}
.steps {
  margin: 32px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}
.steps li {
  padding: 16px 0 0 0;
  border-top: 1px solid var(--hairline);
}
.steps .step-no {
  font-family: var(--serif);
  font-size: var(--t-h3);
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 4px 0;
}
.steps h3 {
  font-size: var(--t-lead);
  margin: 0 0 6px 0;
}
.steps p { margin: 0; color: var(--text-2); }

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.quiet-h2 { margin-top: 48px; }

/* ------------- Kontakt page */
.kontakt-main { padding: 48px var(--gutter) var(--section-y); }
.kontakt-head { max-width: 100%; }
.kontakt-main .kicker { margin-bottom: 14px; }
.kontakt-main h1 { margin-bottom: 16px; }
.kontakt-main .lead { color: var(--text-2); font-size: var(--t-lead); max-width: 52ch; }
.kontakt-card {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.kontakt-card dl { margin: 0; }
.kontakt-card dt {
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 600;
}
.kontakt-card dd { margin: 0 0 4px 0; font-family: var(--serif); font-size: var(--t-lead); color: var(--text); }
.kontakt-card a { color: var(--text); }
.anfahrt {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  max-width: 68ch;
}
.anfahrt h2 { margin-bottom: 12px; font-size: var(--t-h3); }
.anfahrt p { color: var(--text-2); }

@media (min-width: 780px) {
  .kontakt-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}
@media (min-width: 1120px) {
  .kontakt-card { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .kontakt-main { padding-top: 64px; }
  .kontakt-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: end; }
  .kontakt-head .lead { padding-bottom: 6px; }
  .anfahrt { max-width: 72ch; }
}

/* ------------- Smooth anchor scrolling (in-page) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .hdr-call, .hero-cta, .call-strip-cta { transition: background-color 180ms ease-out, color 180ms ease-out, text-decoration-thickness 150ms ease-out, border-color 150ms ease-out; }
  .slab-photo, .ref-photo, .hero-photo, .trust-photo { transition: border-color 180ms ease-out; }
}

@media (hover: hover) {
  .slab-photo:hover, .ref-photo:hover, .trust-photo:hover { border-color: var(--accent); }
}
a.slab-photo:focus-visible,
a.ref-photo:focus-visible { border-color: var(--accent); outline-offset: 2px; }

/* The dark typographic "slab" that stands in for a gravestone photo. */
.slab-photo.quote {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.slab-photo.quote p {
  font-family: var(--serif);
  color: var(--bg);
  font-size: clamp(1.4rem, 3vw + 0.4rem, 2.4rem);
  line-height: 1.25;
  max-width: 18ch;
  margin: 0;
}

/* --- v4: Meißel-Strich signature on section headings ---------------------- */
/* A small engraved chisel mark 'draws' next to each section h2 on load,
   like a mason's cut into stone. One short orchestrated reveal across the
   page, non-looping, prefers-reduced-motion safe. */
.sec h2 {
  position: relative;
}
.sec h2::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--accent, #6b4a2b);
  vertical-align: 0.4em;
  margin-left: 14px;
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .sec h2::after {
    animation: chisel-draw 900ms cubic-bezier(.65,.05,.3,1) 500ms forwards;
  }
  @keyframes chisel-draw {
    0%   { width: 0; }
    100% { width: 56px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sec h2::after { width: 56px; }
}
