/* ============================================================
   INGENIEURBÜRO ANDREAS BAUR — Design System v2
   Inter · 12-Column Grid · Engineering Blue #1648C8
   ============================================================ */

/* ── 1. TOKENS ────────────────────────────────────────────── */
:root {
  --c-black:        #0A0A0A;
  --c-white:        #FFFFFF;
  --c-gray-50:      #F5F5F5;
  --c-gray-100:     #EBEBEB;
  --c-gray-200:     #D8D8D8;
  --c-gray-300:     #BEBEBE;
  --c-gray-400:     #9A9A9A;
  --c-gray-500:     #6E6E6E;
  --c-gray-700:     #3C3C3C;
  --c-gray-900:     #191919;
  --c-accent:       #1648C8;
  --c-accent-dark:  #123AAA;

  --f-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --sz-2xs:  0.625rem;
  --sz-xs:   0.6875rem;
  --sz-sm:   0.8125rem;
  --sz-base: 0.9375rem;
  --sz-md:   1.0625rem;
  --sz-2xl:  2rem;
  --sz-3xl:  clamp(1.625rem, 2.8vw, 2.375rem);
  --sz-hero: clamp(2.5rem, 5.5vw, 5rem);

  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;

  --nav-h:     64px;
  --max-w:     1200px;
  --gutter:    clamp(1.25rem, 4.5vw, 3rem);
  --section-v: clamp(4rem, 8vw, 7.5rem);
  --col-gap:   clamp(1.25rem, 3vw, 2rem);

  --t: 200ms ease-in;
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  color: var(--c-gray-900);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; }

/* ── 3. LAYOUT ────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.section { padding-block: var(--section-v); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-gray-200);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ── 4. TYPOGRAPHY UTILS ──────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-size: var(--sz-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--c-black);
}

/* ── 5. DIVIDER ───────────────────────────────────────────── */
/*
   A gradient-faded 1px rule — fades in from both edges.
   Provides visual breathing room between same-tone sections.
   Usage: <hr class="divider"> between <section> elements.
*/
.divider {
  display: block;
  border: none;
  margin: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--c-gray-200) 16%,
    var(--c-gray-200) 84%,
    transparent 100%
  );
}
/* Variant for dark-background adjacency */
.divider--dark {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.07) 16%,
    rgba(255,255,255,0.07) 84%,
    transparent 100%
  );
}

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-accent);
  color: var(--c-white);
  text-decoration: none;
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 1.625rem;
  transition: background var(--t);
}
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-primary svg   { transition: transform var(--t); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: var(--sz-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--t);
  padding: 0;
}
.btn-ghost:hover { color: rgba(255,255,255,0.9); }
.btn-ghost::after { content: '→'; transition: transform var(--t); display: inline-block; }
.btn-ghost:hover::after { transform: translateX(3px); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.625rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--t), color var(--t);
}
.btn-cta:hover { border-color: rgba(255,255,255,0.6); color: var(--c-white); }
.btn-cta svg { transition: transform var(--t); }
.btn-cta:hover svg { transform: translateX(4px); }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-gray-400);
  border-bottom: 1px solid var(--c-gray-200);
  padding-bottom: var(--sp-1);
  white-space: nowrap;
  transition: color var(--t), border-color var(--t);
}
.section-link:hover { color: var(--c-black); border-color: var(--c-black); }
.section-link svg { transition: transform var(--t); }
.section-link:hover svg { transform: translateX(3px); }

/* ── 7. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-gray-100);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 1px 24px rgba(0,0,0,0.07); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-black);
}
.nav-brand-sub {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--sz-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--c-gray-700);
  position: relative;
  transition: color var(--t);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 1px;
  background: var(--c-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-links a:hover,
.nav-links a.active       { color: var(--c-black); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta          { color: var(--c-accent)      !important; font-weight: 500 !important; }
.nav-cta::after   { background: var(--c-accent) !important; }
.nav-cta:hover    { color: var(--c-accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--c-black);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0; top: var(--nav-h);
  z-index: 199;
  background: var(--c-white);
  padding: var(--sp-12) var(--gutter);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  text-decoration: none;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-black);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-gray-100);
  transition: color var(--t);
}
.mobile-menu a:hover              { color: var(--c-accent); }
.mobile-menu li:last-child a      { color: var(--c-accent); border-bottom: none; margin-top: var(--sp-6); }

/* ── 8. HERO (Homepage) ───────────────────────────────────── */
/*
   Place hero.jpg in the same folder as index.html.
   Until added, the section shows solid black.
*/
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background-color: var(--c-black);
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay — legibility over any photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(10,10,10,0.80) 0%,
    rgba(10,10,10,0.22) 38%,
    rgba(10,10,10,0.35) 65%,
    rgba(10,10,10,0.82) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  grid-column: 1 / 9;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--sz-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-8);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.hero-title {
  font-size: var(--sz-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--c-white);
  margin-bottom: var(--sp-8);
}
.hero-title-dim { color: rgba(255,255,255,0.18); }

.hero-sub {
  font-size: var(--sz-base);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin-bottom: var(--sp-10);
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: var(--gutter);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; width: 100%; height: 100%;
  background: rgba(255,255,255,0.4);
  animation: scrollTick 2.4s linear infinite;
}
@keyframes scrollTick { 0% { top: -100%; } 100% { top: 200%; } }
.hero-scroll-label {
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  writing-mode: vertical-rl;
}

/* ── 9. PAGE HERO (sub-pages) ─────────────────────────────── */
.page-hero {
  background: var(--c-gray-900);
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero-eyebrow {
  display: block;
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: var(--sp-4);
}
.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--c-white);
  max-width: 720px;
}
.page-hero-sub {
  font-size: var(--sz-base);
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  max-width: 520px;
  line-height: 1.85;
  margin-top: var(--sp-5);
  letter-spacing: 0.01em;
}

/* ── 10. STATS ────────────────────────────────────────────── */
#stats {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--sp-8);
  border-right: 1px solid var(--c-gray-100);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--c-black);
}
.stat-num sup { font-size: 0.52em; vertical-align: super; opacity: 0.45; }
.stat-label {
  font-size: var(--sz-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-400);
}

/* ── 11. SERVICES ─────────────────────────────────────────── */
.services-section { background: var(--c-gray-50); padding-block: var(--section-v); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-gray-200);
}
.service-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 var(--sp-5);
  align-items: start;
  padding: var(--sp-8) var(--sp-12) var(--sp-8) 0;
  border-bottom: 1px solid var(--c-gray-200);
  transition: background-color var(--t);
}
.service-item:nth-child(even) {
  padding-left: var(--sp-12);
  padding-right: 0;
  border-left: 1px solid var(--c-gray-200);
}
.service-item:hover { background: var(--c-white); }
.service-item:nth-last-child(-n+2) { border-bottom: none; }
.service-icon {
  width: 20px; height: 20px;
  color: var(--c-gray-300);
  margin-top: 3px;
  flex-shrink: 0;
  transition: color var(--t);
}
.service-item:hover .service-icon { color: var(--c-accent); }
.service-body { grid-column: 2; }
.service-num {
  display: block;
  font-size: var(--sz-2xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gray-300);
  margin-bottom: var(--sp-3);
}
.service-name {
  font-size: var(--sz-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--c-black);
  margin-bottom: var(--sp-3);
}
.service-desc {
  font-size: var(--sz-sm);
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-gray-500);
}

/* ── 12. PROJECTS ─────────────────────────────────────────── */
.projects-section { background: var(--c-white); padding-block: var(--section-v); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--c-gray-100);
}
.project-card { background: var(--c-white); overflow: hidden; }
.project-card.featured { grid-column: span 2; }
.project-card.featured .project-img-wrap { aspect-ratio: 16 / 7; }
.project-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.02);
  transition: transform 200ms ease-in, filter 200ms ease-in;
}
.project-card:hover .project-img-wrap img { transform: scale(1.03); filter: saturate(1) contrast(1); }
.project-info { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.project-cat {
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: var(--sp-2);
}
.project-name {
  font-size: var(--sz-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--c-black);
  margin-bottom: var(--sp-1);
}
.project-loc { font-size: var(--sz-sm); font-weight: 300; color: var(--c-gray-400); }

/* ── 13. ABOUT ────────────────────────────────────────────── */
.about-section { background: var(--c-white); padding-block: var(--section-v); border-top: 1px solid var(--c-gray-100); }

.about-img-col {
  grid-column: 1 / 5;
  align-self: start;
  position: relative;
}
.about-img-col img {
  width: 100%; height: 520px;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.02);
  display: block;
}
.about-img-col::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 72px; height: 72px;
  background: var(--c-gray-200);
  z-index: -1;
}
.about-text-col {
  grid-column: 5 / 13;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--sp-4);
}
.about-title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--c-black);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.about-text {
  font-size: var(--sz-base);
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-gray-500);
  margin-bottom: var(--sp-5);
}
.about-text:last-of-type { margin-bottom: 0; }
.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-gray-200);
}
.about-metric { padding-right: var(--sp-6); border-right: 1px solid var(--c-gray-100); }
.about-metric:nth-child(2) { padding-left: var(--sp-6); }
.about-metric:last-child   { padding-left: var(--sp-6); padding-right: 0; border-right: none; }
.about-metric-num {
  display: block;
  font-size: var(--sz-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--c-black);
}
.about-metric-label {
  display: block;
  font-size: var(--sz-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-top: var(--sp-2);
}

/* ── 14. PORTRAIT (Über uns page) ─────────────────────────── */
/*
   Portrait fills the full column height matching the text beside it.
   Place baur.jpg in the same folder — gray background shown until then.
*/
.portrait-col {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  /* no align-self override — grid stretch handles height */
}

/* The fill container stretches to match the text column height */
.portrait-fill {
  flex: 1;
  min-height: 400px;
  overflow: hidden;
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-200);
}
.portrait-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(0.9);
}

.portrait-name {
  font-size: var(--sz-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-black);
  margin-top: var(--sp-4);
  display: block;
}
.portrait-role {
  font-size: var(--sz-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--c-gray-400);
  margin-top: var(--sp-1);
  display: block;
}
.portrait-text-col {
  grid-column: 4 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ── 15. PLACEHOLDER BLOCK ────────────────────────────────── */
/* For sections pending client content */
.placeholder-block {
  border: 1px dashed var(--c-gray-300);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  background: var(--c-gray-50);
}
.placeholder-block-label {
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: var(--sp-3);
}
.placeholder-block-note {
  font-size: var(--sz-sm);
  font-weight: 300;
  color: var(--c-gray-400);
  line-height: 1.7;
}

/* ── 16. INDUSTRIES ───────────────────────────────────────── */
.industries-section { background: var(--c-gray-50); padding-block: var(--section-v); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--c-gray-200);
  border-left: 1px solid var(--c-gray-200);
}
.industry-item {
  padding: var(--sp-6) var(--sp-4);
  border-right: 1px solid var(--c-gray-200);
  border-bottom: 1px solid var(--c-gray-200);
  transition: background-color var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.industry-item:hover { background: var(--c-white); }
.industry-icon {
  width: 22px; height: 22px;
  color: var(--c-gray-300);
  flex-shrink: 0;
  margin-bottom: var(--sp-4);
  transition: color var(--t);
}
.industry-item:hover .industry-icon { color: var(--c-accent); }
.industry-name { font-size: var(--sz-sm); font-weight: 400; line-height: 1.55; color: var(--c-gray-700); }

/* ── 17. CTA BAND ─────────────────────────────────────────── */
.cta-band { background: var(--c-gray-900); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  flex-wrap: wrap;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-white);
}
.cta-title-dim { color: rgba(255,255,255,0.2); }

/* ── 18. CONTACT ──────────────────────────────────────────── */
.contact-section { background: var(--c-white); padding-block: var(--section-v); }

.contact-info-col { grid-column: 1 / 5; }
.contact-form-col { grid-column: 5 / 13; }

.contact-intro {
  font-size: var(--sz-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-gray-500);
  max-width: 340px;
  margin-bottom: var(--sp-10);
}
.contact-detail { margin-bottom: var(--sp-8); }
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail-label {
  display: block;
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: var(--sp-2);
}
.contact-detail-val {
  font-size: var(--sz-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--c-gray-700);
}
.contact-detail-val a {
  text-decoration: none;
  color: var(--c-gray-700);
  border-bottom: 1px solid var(--c-gray-200);
  transition: color var(--t), border-color var(--t);
}
.contact-detail-val a:hover { color: var(--c-black); border-color: var(--c-black); }

/* Map placeholder */
.map-placeholder {
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-10);
}
.map-placeholder-text {
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-300);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label {
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-gray-400);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--f-sans);
  font-size: var(--sz-sm);
  font-weight: 300;
  color: var(--c-black);
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t), background-color var(--t);
}
.form-input:focus,
.form-textarea:focus { border-color: var(--c-accent); background: var(--c-white); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-gray-300); }
.form-textarea { height: 144px; resize: vertical; min-height: 120px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  align-self: flex-start;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9375rem 1.625rem;
  transition: background-color var(--t);
}
.form-submit:hover { background: var(--c-accent-dark); }
.form-submit svg  { transition: transform var(--t); }
.form-submit:hover svg { transform: translateX(3px); }

/* ── 19. FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--c-gray-900);
  padding: var(--sp-20) 0 var(--sp-10);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-top {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 0;
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--sp-8);
}
.footer-top > * {
  padding-inline: calc(var(--gutter) * 0.75);
}
.footer-top > *:first-child { padding-left: 0; }
.footer-top > *:last-child  { padding-right: 0; }
.footer-top > * + * {
  border-left: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: block;
  font-size: var(--sz-md);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}
.footer-tagline { font-size: var(--sz-sm); font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.32); }
.footer-col-title {
  font-size: var(--sz-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-5);
  display: block;
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  text-decoration: none;
  font-size: var(--sz-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--c-white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-copy { font-size: var(--sz-xs); color: rgba(255,255,255,0.22); }
.footer-legal { display: flex; gap: var(--sp-6); }
.footer-legal a {
  text-decoration: none;
  font-size: var(--sz-xs);
  color: rgba(255,255,255,0.22);
  transition: color var(--t);
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }


/* ── LEITBILD SLIDER ──────────────────────────────────────── */
/* Desktop: 3-column grid */
.leitbild-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}
.leitbild-card {
  border-top: 2px solid var(--c-gray-300);
  padding-top: var(--sp-6);
}
.leitbild-card--accent { border-top-color: var(--c-accent); }
.leitbild-card h3 {
  font-size: var(--sz-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--c-black);
  margin-bottom: var(--sp-4);
}
.leitbild-card p {
  font-size: var(--sz-sm);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-gray-500);
}
.leitbild-dots { display: none; }

/* ── MAP: desktop full-width / mobile in-column ───────────── */
.map-desktop-only { display: block; }
.map-mobile-only  { display: none;  }

/* Mobile overrides added in responsive block below */

/* ── 20. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-content      { grid-column: 1 / 11; }
  .about-img-col     { grid-column: 1 / 5; }
  .about-text-col    { grid-column: 5 / 13; }
  .contact-info-col  { grid-column: 1 / 5; }
  .contact-form-col  { grid-column: 5 / 13; }
  .portrait-col      { grid-column: 1 / 4; }
  .portrait-text-col { grid-column: 4 / 13; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}

@media (max-width: 767px) {
  :root { --nav-h: 56px; }

  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .hero-content  { grid-column: 1 / -1; }
  .hero-scroll   { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--c-gray-100); }
  .stat:nth-child(4) { border-top: 1px solid var(--c-gray-100); border-right: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-item:nth-child(even) { padding-left: 0; padding-right: 0; border-left: none; }
  .service-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-gray-200); }
  .service-item:last-child { border-bottom: none; }

  .projects-grid { grid-template-columns: 1fr; gap: 1px; }
  .project-card.featured { grid-column: span 1; }
  .project-card.featured .project-img-wrap { aspect-ratio: 16 / 9; }

  .about-img-col,
  .about-text-col    { grid-column: 1 / -1; }
  .about-img-col img { height: 260px; }
  .about-img-col::after { display: none; }

  .portrait-col,
  .portrait-text-col { grid-column: 1 / -1; }
  .portrait-fill     { min-height: 320px; flex: none; }

  .industries-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-8); }

  .contact-info-col,
  .contact-form-col { grid-column: 1 / -1; }
  .form-row         { grid-template-columns: 1fr; }

  .section-header { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .about-metrics { grid-template-columns: 1fr 1fr; }
  .about-metric:last-child { padding-left: 0; }
  .about-metric:nth-child(2) { border-right: 1px solid var(--c-gray-100); }
}

@media (max-width: 479px) {
  .hero-actions    { flex-direction: column; align-items: flex-start; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }

  /* Leitbild swiper */
  .leitbild-slider { overflow: hidden; position: relative; }
  .leitbild-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    transition: transform 200ms ease-in;
    will-change: transform;
  }
  .leitbild-card {
    flex: 0 0 100%;
    width: 100%;
    padding: var(--sp-6) var(--sp-2) var(--sp-6) var(--sp-5);
    border-top: none;
    border-left: 3px solid var(--c-gray-300);
  }
  .leitbild-card--accent { border-left-color: var(--c-accent); }
  .leitbild-dots {
    display: flex;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }
  .leitbild-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--t);
  }
  .leitbild-dot--active { background: var(--c-accent); }

  /* Map: hide desktop version, show mobile in-column version */
  .map-desktop-only { display: none; }
  .map-mobile-only  { display: block; }
}
