/* ==========================================================================
   [FIRMENNAME] – Consulting & Entwicklung im Bauwesen
   ========================================================================== */

/* Fonts (lokal gehostet, DSGVO-konform) */
@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* Design-Tokens */
:root {
  --accent: #1F4D3A;
  --accent-dark: #143426;
  --accent-soft: #DCE7E0;
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --surface-muted: #E6E4DD;
  --ink: #1A1D1B;
  --ink-muted: #4E5450;
  --line: #D9D7CF;
  --line-soft: #E6E4DD;
  --footer-bg: #141816;
  --footer-ink: #B8BDB9;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --container: 1248px;
  --gutter: clamp(20px, 5vw, 96px);
  --section-y: clamp(72px, 9vw, 120px);
}

/* Reset / Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; padding: 12px 20px; background: var(--ink); color: #fff; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; font-size: 17px; font-weight: 600; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 16px; }

/* Eyebrow / Section-Kopf */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow--line::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section { padding-block: var(--section-y); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 16px; }
.section-head--split p { max-width: 420px; color: var(--ink-muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.main-nav { display: flex; align-items: center; gap: 40px; font-size: 16px; font-weight: 500; }
.main-nav__links { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.main-nav__links a { color: var(--ink); }
.main-nav__links a:hover { color: var(--accent); }
.lang-switch { display: flex; border: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink); }
.lang-switch [aria-current] { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding-block: clamp(56px, 7vw, 96px); }
.hero .container { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.hero__content { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.03em; }
.hero .lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero__media { margin: 0; position: relative; border: 1px solid var(--line); background: var(--surface-muted); }
.hero__media img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.hero__badge { position: absolute; left: -48px; bottom: 40px; width: 240px; padding: 24px; background: var(--accent); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.hero__badge small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.hero__badge strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; }

/* Leistungen */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { padding: clamp(28px, 3.5vw, 48px); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.card__icon { width: 40px; height: 40px; color: var(--accent); }
.card h3 { font-size: 30px; letter-spacing: -.01em; }
.card p { color: var(--ink-muted); }
.card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.card li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }

/* Vorgehen */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink); }
.steps li:first-child { border-top: 2px solid var(--accent); }
.steps__num { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent); }
.steps h3 { font-size: 24px; letter-spacing: -.01em; }
.steps p { font-size: 17px; line-height: 1.55; color: var(--ink-muted); }

/* Über uns */
.about { padding-top: 0; }
.about .container { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 24px; align-items: center; }
.about__media { grid-column: 1; border: 1px solid var(--line); background: var(--surface-muted); }
.about__media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.about__content { grid-column: 3; display: flex; flex-direction: column; gap: 24px; }
.about h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.12; }
.about p { color: var(--ink-muted); line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }

/* Kontakt */
.contact { background: var(--accent); color: #fff; }
.contact .container { display: grid; grid-template-columns: 6fr 1fr 5fr; gap: 24px; }
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact .eyebrow { color: #fff; opacity: .8; }
.contact h2 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; color: #fff; }
.contact__intro p { max-width: 480px; font-size: 19px; color: var(--accent-soft); }
.contact__details { grid-column: 3; display: flex; flex-direction: column; margin: 0; border-top: 1px solid rgba(255,255,255,.3); }
.contact__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 80px; border-bottom: 1px solid rgba(255,255,255,.3); color: #fff; }
.contact__row:hover { color: var(--accent-soft); }
.contact__row dt { font-size: 15px; color: var(--accent-soft); }
.contact__row dd { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; text-align: right; }
.contact__row dd a { color: inherit; }
.contact__details + .btn { grid-column: 3; justify-self: start; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: 15px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 96px; flex-wrap: wrap; }
.site-footer ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }

/* Rechtstexte (Impressum / Datenschutz) */
.legal { padding-block: var(--section-y); }
.legal .container { max-width: calc(800px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(36px, 4vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p { color: var(--ink-muted); margin-bottom: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav, .main-nav__links { gap: 24px; }
  .hero__badge { left: 16px; bottom: 16px; }
}

@media (max-width: 900px) {
  .site-header { position: static; }
  .site-header .container { flex-wrap: wrap; padding-block: 16px; min-height: 0; }
  .main-nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
  .main-nav__links { gap: 20px; flex-wrap: wrap; }
  .hero .container, .about .container, .contact .container { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .about__media, .about__content, .contact__details, .contact__details + .btn { grid-column: 1; }
  .contact__details { margin-top: 40px; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .main-nav__links { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .contact__row { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-block: 16px; }
  .contact__row dd { text-align: left; font-size: 20px; }
}
