/* ==========================================================================
   Grünholz — Schreinerei Rosenheim
   Architektonisches Rasterlayout. Swiss grid. Nur Linien und Abstände.
   Keine Schatten. Keine Animationen.
   ========================================================================== */

:root {
  --paper:   #f4f3f0;
  --graphit: #1c1c1a;
  --eiche:   #9a6a3c;
  --beton:   #cfccc4;
  --line:    #1c1c1a;
  --hairline: rgba(28,28,26,0.18);

  /* Full-bleed layout: no fixed container. Content runs edge-to-edge with
     fluid side padding that opens up on wide screens. */
  --gutter: clamp(16px, 1.6vw, 32px);
  --pad: clamp(20px, 5vw, 120px);
  --col: minmax(0, 1fr);

  --fs-mega: clamp(2.6rem, 6.4vw, 7rem);
  --fs-h1:   clamp(2.2rem, 5vw, 4rem);
  --fs-h2:   clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:   clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphit);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--eiche);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.upper { text-transform: uppercase; letter-spacing: 0.02em; }

/* ---- Layout shell -------------------------------------------------------- */

.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, var(--col));
  column-gap: var(--gutter);
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 104px);
}
.section:first-of-type { border-top: 0; }

/* Section index number 01 / 02 / 03 */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, var(--col));
  column-gap: var(--gutter);
  align-items: baseline;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.sec-num {
  grid-column: 1 / 3;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--eiche);
  letter-spacing: 0.02em;
}
.sec-title {
  grid-column: 3 / 11;
  font-size: var(--fs-h2);
  text-transform: uppercase;
}
.sec-kicker {
  grid-column: 11 / 13;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a4a46;
  text-align: right;
  align-self: end;
}

/* ---- Header / Nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; display: block; }
.brand .sub {
  font-family: -apple-system, sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #5a5a55;
  text-transform: uppercase;
  border-left: 1px solid var(--hairline);
  padding-left: 12px;
}
.nav {
  display: flex;
  align-items: stretch;
}
.nav a {
  display: flex;
  align-items: center;
  padding-inline: 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 1px solid var(--hairline);
}
.nav a:hover { background: var(--graphit); color: var(--paper); }
.nav a[aria-current="page"] { color: var(--eiche); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  border-left: 1px solid var(--hairline);
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--graphit);
}

/* ---- Hero ---------------------------------------------------------------- */

.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, var(--col));
  column-gap: var(--gutter);
  align-items: stretch;
}
.hero-text {
  grid-column: 1 / 7;
  padding-block: clamp(48px, 8vw, 120px);
  padding-right: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--eiche);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: var(--fs-mega);
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero-lead {
  max-width: 46ch;
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #2a2a28;
}
.hero-media {
  grid-column: 7 / 13;
  border-left: 1px solid var(--line);
  position: relative;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(8%);
}
.hero-caption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 16px;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--graphit);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--paper);
  cursor: pointer;
}
.btn:hover { background: var(--graphit); color: var(--paper); }
.btn--solid { background: var(--graphit); color: var(--paper); }
.btn--solid:hover { background: var(--eiche); border-color: var(--eiche); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- About / two col ----------------------------------------------------- */

.lead-col { grid-column: 1 / 7; }
.aside-col { grid-column: 8 / 13; }
.text-col { grid-column: 3 / 11; }
.text-col p { margin-block: 0 1.1em; max-width: 64ch; }

.factlist {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--hairline);
}
.factlist li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.factlist .k { color: #5a5a55; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; align-self: center; }
.factlist .v { font-family: "Archivo", sans-serif; font-weight: 700; }

/* ---- Project cards ------------------------------------------------------- */

.projects { display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: var(--gutter); row-gap: clamp(36px, 5vw, 64px); }
.proj { grid-column: span 12; display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: var(--gutter); align-items: center; }
.proj:nth-child(even) .proj-media { order: 2; }
.proj-media { grid-column: span 7; border: 1px solid var(--line); }
.proj-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proj-body { grid-column: span 5; }
.proj-index { font-family: "Archivo", sans-serif; font-weight: 700; color: var(--eiche); font-size: 1.1rem; }
.proj-title { font-size: var(--fs-h2); text-transform: uppercase; margin: 10px 0 14px; }
.proj-desc { max-width: 44ch; color: #2a2a28; }

.spec {
  list-style: none; margin: 22px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.spec li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
}
.spec .label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: #5a5a55; align-self: center; }
.spec .val { font-family: "Archivo", sans-serif; font-weight: 700; }

/* ---- Process steps 01–04 ------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: var(--gutter); row-gap: 1px; }
.step {
  grid-column: span 3;
  border-top: 2px solid var(--graphit);
  padding-top: 18px;
}
.step .n { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 2rem; color: var(--eiche); }
.step h3 { font-size: var(--fs-h3); text-transform: uppercase; margin: 8px 0 10px; }
.step p { margin: 0; font-size: 0.95rem; color: #2a2a28; max-width: 30ch; }

/* ---- Material table ------------------------------------------------------ */

.matgrid { display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: var(--gutter); row-gap: var(--gutter); }
.mat {
  grid-column: span 4;
  border: 1px solid var(--line);
  padding: 22px;
}
.mat h3 { font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: 8px; }
.mat .latin { font-style: italic; color: var(--eiche); font-size: 0.85rem; margin-bottom: 12px; }
.mat p { margin: 0; font-size: 0.92rem; color: #2a2a28; }

/* ---- Services table ------------------------------------------------------ */

.table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--graphit);
}
.table caption { text-align: left; font-size: var(--fs-small); color: #5a5a55; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.table th, .table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.table th {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a5a55;
}
.table td.leistung { font-family: "Archivo", sans-serif; font-weight: 700; }
.table td.preis { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Quote / testimonial ------------------------------------------------- */

.quote { grid-column: 2 / 12; }
.quote blockquote {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  text-transform: none;
  letter-spacing: -0.01em;
}
.quote .cite {
  margin-top: 24px;
  font-family: -apple-system, sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: #5a5a55;
}
.quote .cite strong { color: var(--graphit); font-weight: 600; }

/* ---- FAQ ----------------------------------------------------------------- */

.faq { border-top: 2px solid var(--graphit); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: var(--fs-h3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--eiche); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; max-width: 70ch; color: #2a2a28; }

/* ---- Contact / form ------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: var(--gutter); row-gap: 40px; }
.contact-info { grid-column: 1 / 6; }
.contact-info h3 { font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: 14px; }
.contact-info address { font-style: normal; line-height: 1.7; }
.contact-info a { border-bottom: 1px solid var(--eiche); }

.form { grid-column: 7 / 13; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: #5a5a55; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--graphit);
  background: var(--paper);
  color: var(--graphit);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hint { font-size: 0.78rem; color: #5a5a55; margin: 6px 0 22px; }

/* ---- Generic content (policies, werkstatt) ------------------------------- */

.prose { grid-column: 2 / 11; }
.prose h2 { font-size: var(--fs-h2); text-transform: uppercase; margin: 44px 0 14px; }
.prose h3 { font-size: var(--fs-h3); text-transform: uppercase; margin: 28px 0 10px; }
.prose p, .prose li { max-width: 72ch; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose a { border-bottom: 1px solid var(--eiche); }
.prose .meta { color: #5a5a55; font-size: 0.9rem; }

/* ---- Gallery (werkstatt / projekte index) -------------------------------- */

.gal { display: grid; grid-template-columns: repeat(12, var(--col)); column-gap: var(--gutter); row-gap: var(--gutter); }
.gal figure { grid-column: span 4; margin: 0; border: 1px solid var(--line); }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal figcaption { padding: 10px 14px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; border-top: 1px solid var(--line); }

/* ---- Pageheader (inner pages) -------------------------------------------- */

.pagehead { border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding-block: clamp(40px, 6vw, 88px); }
.pagehead .crumb { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.1em; color: var(--eiche); margin-bottom: 18px; }
.pagehead h1 { font-size: var(--fs-h1); text-transform: uppercase; }
.pagehead .intro { max-width: 60ch; margin-top: 22px; color: #2a2a28; }

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--graphit);
  color: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, var(--col));
  column-gap: var(--gutter);
  row-gap: 32px;
  padding-block: clamp(44px, 6vw, 72px);
}
.footer-brand { grid-column: span 4; }
.footer-brand .name { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-brand p { color: var(--beton); font-size: 0.9rem; max-width: 32ch; margin-top: 14px; }
.footer-col { grid-column: span 2; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--beton); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--eiche); }
.footer-contact { grid-column: span 4; }
.footer-contact a { border-bottom: 1px solid rgba(244,243,240,0.3); }
.footer-bar {
  border-top: 1px solid rgba(244,243,240,0.18);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--beton);
}
.footer-bar a:hover { color: var(--eiche); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Wide desktop: pull the section number fully into the left margin */
@media (min-width: 1600px) {
  .hero-lead { font-size: 1.25rem; max-width: 50ch; }
  .proj-desc, .mat p, .step p { font-size: 1rem; }
}

/* Laptop / small desktop */
@media (max-width: 1080px) {
  .hero-text { grid-column: 1 / 7; }
  .hero-media { grid-column: 7 / 13; }
  .sec-num { grid-column: 1 / 3; }
  .sec-title { grid-column: 3 / 11; }
  .sec-kicker { grid-column: 11 / 13; }
}

/* Tablet */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px -18px rgba(28,28,26,0.5);
  }
  .nav.open a { border-left: 0; border-top: 1px solid var(--hairline); padding: 16px var(--pad); }
  .nav-toggle { display: flex; align-items: center; }
  .site-header { position: sticky; }

  .hero-text { grid-column: 1 / 8; }
  .hero-media { grid-column: 8 / 13; }
  .proj-media, .proj-body { grid-column: span 12; }
  .proj:nth-child(even) .proj-media { order: 0; }
  .proj-media { margin-bottom: 18px; }
  .step { grid-column: span 6; }
  .mat { grid-column: span 6; }
  .lead-col, .aside-col, .text-col, .prose, .quote { grid-column: 1 / 13; }
  .aside-col { margin-top: 8px; }
  .contact-info, .form { grid-column: 1 / 13; }
  .gal figure { grid-column: span 6; }
  .sec-num { grid-column: 1 / 3; }
  .sec-title { grid-column: 3 / 13; }
  .sec-kicker { display: none; }
}

/* Large phone / small tablet */
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { grid-column: 1 / 2; padding-block: 40px 28px; padding-right: 0; }
  .hero-media { grid-column: 1 / 2; border-left: 0; border-top: 1px solid var(--line); min-height: 280px; }
  .step { grid-column: span 12; border-top-width: 2px; }
  .mat { grid-column: span 12; }
  .gal figure { grid-column: span 12; }
  .form-row { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact { grid-column: span 12; }
  .footer-col { grid-column: span 6; }
  .spec li { grid-template-columns: 96px 1fr; }

  /* Stacked section head on phones */
  .sec-head { display: block; margin-bottom: 26px; }
  .sec-num { display: inline-block; margin-bottom: 6px; }
  .sec-title { display: block; }

  /* Responsive price table: rows become stacked cards */
  .table, .table thead, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; left: -9999px; }
  .table { border-top: 2px solid var(--graphit); }
  .table tr { border-bottom: 1px solid var(--line); padding: 6px 0 14px; }
  .table td {
    border-bottom: 0;
    padding: 6px 0 6px 42%;
    position: relative;
    min-height: 1.4em;
  }
  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0; top: 6px;
    width: 38%;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a5a55;
    font-family: "Archivo", sans-serif;
    font-weight: 700;
  }
  .table td.leistung { font-size: 1.05rem; padding-top: 12px; }
}

/* Small phone */
@media (max-width: 420px) {
  .header-inner { min-height: 60px; }
  .brand .sub { display: none; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { gap: 10px; }
  .footer-col { grid-column: span 12; }
  .footer-bar { flex-direction: column; gap: 8px; }
}
