/* ---- Self-hosted fonts (no external Google Fonts request — avoids IP transfer to Google) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens (from DESIGN.md — Papermark reference) ---- */
:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --text-on-dark-strong: #ffffff;
  --muted: #63625d;
  --line: #e7e5e0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max: 1280px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 72px;
  --space-6: 80px;

  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---- Nav (on dark hero) ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-on-dark-strong);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-on-dark);
}

.nav-links a:hover { color: #fff; }

.nav-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.nav-address {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark-strong);
}

.nav-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-on-dark-strong);
  letter-spacing: 0.01em;
  transition: transform 0.15s ease;
}

.nav-phone:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---- Hero (dark, type-led, photographic, parallax) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding-bottom: var(--space-6);
}

.hero-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background:
    linear-gradient(100deg, rgba(11,11,11,0.88) 0%, rgba(11,11,11,0.72) 32%, rgba(11,11,11,0.25) 60%, rgba(11,11,11,0.15) 75%),
    linear-gradient(180deg, rgba(11,11,11,0.15) 0%, rgba(11,11,11,0.1) 50%, rgba(11,11,11,0.9) 100%),
    url('assets/hero-excavator.webp') center 42% / cover no-repeat;
  will-change: transform;
}

.hero > .nav,
.hero > .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  padding: var(--space-6) 0 var(--space-4);
}

.hero-inner.wrap { padding-left: calc(var(--space-3) + var(--space-2)); padding-right: calc(var(--space-3) + var(--space-2)); }

.eyebrow-small {
  color: var(--text-on-dark);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 71px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-on-dark-strong);
  margin: 0 0 22px;
  max-width: 15ch;
}

.hero .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-on-dark);
  max-width: 46ch;
  margin-bottom: var(--space-3);
}

.cta-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.btn.on-dark {
  background: var(--paper);
  color: var(--ink);
}

.btn.on-dark.secondary {
  background: transparent;
  color: var(--text-on-dark-strong);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn.on-light {
  background: var(--ink);
  color: var(--paper);
}

.btn.on-light.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #d8d6cf;
}

.micro-trust {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-left: var(--space_1, 4px);
}

/* ---- Sections (light) ---- */
section.block { padding: var(--space-6) 0; border-top: 1px solid var(--line); }

.block-head { max-width: 62ch; margin-bottom: var(--space-4); }

.block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.block .block-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---- Dark section variant (Leistungen) — breaks the all-white run for rhythm ---- */
.block-dark {
  background: var(--ink);
  border-top: none;
  color: var(--text-on-dark);
}

.block-dark .block h2,
.block-dark h2 { color: var(--text-on-dark-strong); }

.block-dark .block-sub { color: var(--text-on-dark); }

.block-dark .service {
  background: #171614;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2.5px solid var(--text-on-dark-strong);
}

.block-dark .service:hover {
  border-color: rgba(255,255,255,0.22);
}

.block-dark .service h3 { color: var(--text-on-dark-strong); }
.block-dark .service p { color: rgba(255,255,255,0.62); }

/* Leistungen — not a sequence, no numbering */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service {
  background: #171614;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service:focus-visible {
  outline: 2px solid var(--text-on-dark-strong);
  outline-offset: 2px;
}

.service:hover {
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-2px);
}

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}

.service-photo.icon-fallback {
  object-fit: contain;
  background: var(--paper);
  padding: var(--space-4);
}

.service-body { padding: var(--space-3); }

.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 8px;
}

.service p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Warum wir + So läuft's ab side by side */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* Warum wir — not a sequence, no numbering */
.reason-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.reason-list-col {
  grid-template-columns: 1fr;
  gap: 0;
}

.reason-list-col .reason {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}

.reason-list-col .reason:last-child { border-bottom: 1px solid var(--line); }

.reason h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 8px;
}

.reason p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Mitarbeiter — team trust cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 900px;
}

.team-card {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: #faf9f5;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.team-name { font-weight: 600; font-size: 18px; margin: 0 0 3px; }
.team-role { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.team-meta { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }

@media (max-width: 560px) {
  .team-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; max-width: 720px; }

.faq-item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Vor-Ort photo (treated grayscale, supporting — not hero) */
.site-photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.site-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

.site-photo-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-1);
}

/* Ablauf — genuinely sequential, numbering is appropriate */
.step-list { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step .n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.step h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---- Closing / contact (dark, mirrors hero) ---- */
.closing {
  background: var(--ink);
  padding: var(--space-6) 0 var(--space-5);
}

.closing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  color: var(--text-on-dark-strong);
  margin: 0 0 var(--space-2);
  max-width: 16ch;
}

.closing .lede {
  color: var(--text-on-dark);
  font-size: 16px;
  margin-bottom: var(--space-3);
  max-width: 42ch;
}

.contact-block {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-on-dark);
}

.contact-block .firm { font-weight: 600; color: var(--text-on-dark-strong); }
.contact-block a { border-bottom: 1px solid rgba(255,255,255,0.3); }
.contact-block a:hover { border-color: #fff; }

footer {
  background: var(--ink);
  padding: var(--space-3) 0 var(--space-4);
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-links { display: flex; gap: var(--space-3); }
.footer-links a { color: rgba(255,255,255,0.45); }
.footer-links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 760px) {
  .service-grid, .reason-list { grid-template-columns: 1fr; gap: var(--space-4); }
  .split-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .team-grid { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---- Leistungs-Detail Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,11,11,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 100;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--paper);
  color: var(--ink);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--radius);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.18s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11,11,11,0.06);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.modal-close:hover { background: rgba(11,11,11,0.12); }

.modal-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.modal-body { padding: var(--space-3) var(--space-4) var(--space-4); }

.modal-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 var(--space-2);
}

.modal-list {
  margin: 0 0 var(--space-2);
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  columns: 2;
  column-gap: var(--space-3);
}

.modal-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

@media (max-width: 480px) {
  .modal-list { columns: 1; }
}

/* ---- Cookie-Hinweis ---- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-2) var(--space-3);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 90;
}

.cookie-bar.visible { transform: translateY(0); }

.cookie-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-bar p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-on-dark);
  max-width: 60ch;
}

.cookie-bar-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.cookie-bar .btn { padding: 10px 18px; font-size: 13.5px; }

@media (max-width: 560px) {
  .cookie-bar-inner { flex-direction: column; align-items: flex-start; }
  .cookie-bar-actions { width: 100%; }
  .cookie-bar-actions .btn { flex: 1; }
}
