/*
  M & K Projekt Bau GmbH — Premium website
  Lightweight, dependency-free, responsive and privacy-friendly.
*/

:root {
  --ink: #101923;
  --ink-soft: #34424f;
  --navy: #10283c;
  --navy-2: #0a1c2b;
  --blue: #4e7fa4;
  --blue-light: #b8cedd;
  --brass: #b69462;
  --brass-dark: #876c46;
  --stone: #f3efe8;
  --stone-2: #eae3d7;
  --paper: #fcfbf8;
  --white: #ffffff;
  --gold-soft: #efe3c6;
  --gold-deep: #b68c4d;
  --line: rgba(16, 25, 35, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 12px 30px rgba(12, 27, 40, 0.08);
  --shadow-md: 0 24px 70px rgba(12, 27, 40, 0.14);
  --shadow-lg: 0 35px 90px rgba(7, 19, 30, 0.23);
  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 34px;
  --container: 1240px;
  --header-height: 82px;
  --topbar-height: 36px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overscroll-behavior: none; }
body.menu-open::before {
  content: "";
  position: fixed;
  z-index: 900;
  top: var(--mobile-nav-top, calc(var(--header-height) + var(--topbar-height)));
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(5, 18, 28, .44);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--blue); }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container--narrow { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.section { padding: clamp(78px, 9vw, 132px) 0; }
.section--compact { padding: clamp(58px, 7vw, 96px) 0; }
.section--stone {
  background: linear-gradient(180deg, rgba(243,239,232,1) 0%, rgba(250,247,242,1) 100%);
}
.section--navy { color: var(--white); background: var(--navy); }
.section--ink { color: var(--white); background: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--blue-light); }
.eyebrow--brass { color: var(--brass); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, .display {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(3rem, 6vw, 6.2rem); }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.7rem); }
h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }
h4 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.35; }
p { margin-bottom: 1.3em; }
.lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.75; }
.section--navy .lead, .section--ink .lead { color: rgba(255,255,255,.73); }
.text-muted { color: var(--ink-soft); }
.text-small { font-size: .9rem; }
.max-text { max-width: 740px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(36px, 7vw, 105px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
}
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin: 0; color: var(--ink-soft); }
.section--navy .section-heading p, .section--ink .section-heading p { color: rgba(255,255,255,.7); }

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: .015em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(78,127,164,.34); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, #1d4a69 100%);
  box-shadow: 0 14px 32px rgba(16,40,60,.22);
  border: 1px solid rgba(255,255,255,.14);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #1d4a69 0%, var(--blue) 100%);
  box-shadow: 0 18px 38px rgba(16,40,60,.28);
}
.btn--light { color: var(--navy); background: var(--white); }
.btn--light:hover { background: var(--stone); }
.btn--ghost { color: var(--navy); border-color: rgba(16,40,60,.3); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: rgba(16,40,60,.05); }
.btn--ghost-light { color: var(--white); border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.btn--arrow::after { content: "→"; font-size: 1.18em; transition: transform .25s var(--ease); }
.btn--arrow:hover::after { transform: translateX(4px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 750;
}
.text-link::after { content: "→"; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(5px); }

/* Header */
.topbar { height: var(--topbar-height); color: rgba(255,255,255,.76); background: var(--navy-2); font-size: .78rem; letter-spacing: .025em; }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar a { transition: color .2s ease; }
.topbar a:hover { color: var(--white); }
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  background: rgba(252,251,248,.92);
  border-bottom: 1px solid rgba(16,25,35,.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(252,251,248,.98); box-shadow: 0 10px 30px rgba(9,25,38,.08); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
}
.brand-svg {
  display: block;
  width: min(430px, 42vw);
  height: auto;
  color: var(--navy);
}
.brand-svg--footer {
  width: min(430px, 32vw);
  color: var(--white);
}
.brand-graphic {
  stroke: currentColor;
}
.brand-text {
  fill: currentColor;
}
.brand-text--footer { fill: var(--white); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.nav__link {
  position: relative;
  padding: 10px 0;
  color: #263540;
  font-size: .92rem;
  font-weight: 690;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--blue);
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: 4px; }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; }
.menu-toggle::before { transform: translateY(-6px); }
.menu-toggle::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(850px, calc(100svh - var(--topbar-height) - var(--header-height)));
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; z-index: -2; inset: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center center; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,20,31,.52) 0%, rgba(6,20,31,.2) 44%, rgba(6,20,31,.04) 78%);
}
.hero__inner { min-height: inherit; display: flex; align-items: center; padding-block: 64px; }
.hero__panel {
  width: min(670px, 58vw);
  padding: clamp(34px, 5vw, 62px);
  background: linear-gradient(135deg, rgba(252,251,248,.96) 0%, rgba(245,240,232,.92) 100%);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 2px var(--radius-lg) var(--radius-lg) 2px;
  box-shadow: 0 32px 65px rgba(7, 19, 30, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero h1 { max-width: 610px; margin-bottom: 24px; font-size: clamp(3.2rem, 6.1vw, 6.65rem); }
.hero__lead { max-width: 590px; margin-bottom: 30px; color: var(--ink-soft); font-size: clamp(1.04rem, 1.5vw, 1.22rem); line-height: 1.72; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .8rem; font-weight: 680; letter-spacing: .035em; }
.hero__badge::before { content: ""; width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(16,25,35,.08);
  color: var(--navy);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__meta strong {
  color: var(--gold-deep);
  letter-spacing: .08em;
}
.hero__credit { position: absolute; right: 24px; bottom: 18px; color: rgba(255,255,255,.75); font-size: .72rem; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* Trust band */
.trust-band { position: relative; z-index: 4; margin-top: -1px; color: var(--white); background: var(--navy); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 28px; border-right: 1px solid var(--line-light); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.42rem; font-weight: 500; }
.trust-item span { color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.45; }

.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.premium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(28px, 4vw, 38px);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,243,235,.9));
  border: 1px solid rgba(16, 40, 60, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16,40,60,.07);
}

.premium-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(182,140,77,.18), rgba(78,127,164,.12));
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.premium-card h3 {
  margin-bottom: 14px;
}

.premium-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  min-height: 315px;
  padding: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247,243,236,1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(78,127,164,.38); box-shadow: 0 24px 60px rgba(16,40,60,.1); }
.service-card__number { position: absolute; top: 22px; right: 28px; color: rgba(16,40,60,.12); font-family: Georgia,serif; font-size: 3.8rem; line-height: 1; }
.service-card__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 42px; color: var(--blue); background: #e9f0f5; border-radius: 50%; }
.service-card__icon svg { width: 26px; height: 26px; stroke: currentColor; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-auto-rows: minmax(310px, auto); gap: 20px; }
.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}
.project-card:first-child { grid-row: span 2; min-height: 880px; }
.project-card__media, .project-card__media picture, .project-card__media img { width: 100%; height: 100%; }
.project-card__media { position: absolute; inset: 0; }
.project-card__media img { object-fit: cover; transition: transform .8s var(--ease); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(4,15,24,.84) 100%); }
.project-card:hover .project-card__media img { transform: scale(1.045); }
.project-card__content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: clamp(28px,4vw,48px); }
.project-card__kicker { display: block; margin-bottom: 8px; color: var(--blue-light); font-size: .75rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.project-card h3 { max-width: 580px; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.7rem,3vw,3rem); font-weight: 500; letter-spacing: -.025em; }
.project-card__link { position: absolute; z-index: 3; inset: 0; }
.project-card__link:focus-visible { outline: 4px solid var(--blue-light); outline-offset: -5px; }

/* Editorial collage */
.editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px,8vw,110px); align-items: center; }
.editorial-copy h2 { font-size: clamp(2.5rem,5vw,5rem); }
.editorial-copy .lead { margin-bottom: 34px; }
.check-list { display: grid; gap: 12px; margin: 0 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); }
.check-list li::before { content: "✓"; flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; margin-top: 1px; color: var(--white); background: var(--blue); border-radius: 50%; font-size: .78rem; font-weight: 800; }
.collage { position: relative; min-height: 680px; }
.collage__main, .collage__secondary, .collage__detail { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__main { top: 0; right: 0; width: 77%; height: 72%; }
.collage__secondary { bottom: 0; left: 0; width: 54%; height: 44%; border: 10px solid var(--paper); }
.collage__detail { right: 3%; bottom: 5%; width: 33%; height: 28%; border: 8px solid var(--paper); }
.collage__label { position: absolute; z-index: 4; left: 7%; top: 13%; padding: 14px 18px; color: var(--white); background: var(--navy); border-radius: 999px; font-size: .77rem; font-weight: 740; letter-spacing: .06em; box-shadow: var(--shadow-sm); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: process; }
.process-step { position: relative; padding: 24px 25px 10px 0; counter-increment: process; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 19px; right: 18px; left: 55px; height: 1px; background: rgba(255,255,255,.24); }
.process-step__number { position: relative; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 28px; color: var(--navy); background: var(--white); border-radius: 50%; font-size: .8rem; font-weight: 800; }
.process-step__number::before { content: counter(process, decimal-leading-zero); }
.process-step h3 { font-size: 1.08rem; }
.process-step p { margin: 0; color: rgba(255,255,255,.64); font-size: .86rem; line-height: 1.65; }

/* Testimonial-style statement */
.statement { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(36px,8vw,120px); align-items: start; }
.statement__mark { color: var(--brass); font-family: Georgia,serif; font-size: 7rem; line-height: .65; }
.statement blockquote { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.9rem,3.7vw,3.65rem); font-weight: 500; line-height: 1.24; letter-spacing: -.025em; }
.statement cite { display: block; margin-top: 30px; color: rgba(255,255,255,.58); font-family: Inter,Aptos,"Helvetica Neue",Arial,sans-serif; font-size: .85rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: center;
  padding: clamp(42px,7vw,84px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cta-panel::before { content: ""; position: absolute; width: 500px; height: 500px; right: -180px; top: -260px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.03), 0 0 0 160px rgba(255,255,255,.02); }
.cta-panel h2 { position: relative; margin: 0; font-size: clamp(2.45rem,4.8vw,4.9rem); }
.cta-panel__actions { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.cta-panel__meta { margin: 8px 0 0; color: rgba(255,255,255,.63); font-size: .84rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 26px 4px; font-size: 1.08rem; font-weight: 720; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-size: 1.25rem; font-weight: 400; transition: transform .25s var(--ease), background .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--blue); }
.faq-item__body { max-width: 790px; padding: 0 60px 26px 4px; color: var(--ink-soft); }

/* Inner-page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(92px,12vw,170px) 0; color: var(--white); background: var(--navy); }
.page-hero::before { content: ""; position: absolute; top: -220px; right: -120px; width: 570px; height: 570px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.page-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px,8vw,110px); align-items: end; }
.page-hero h1 { max-width: 790px; margin: 0; font-size: clamp(3.4rem,7vw,7.3rem); }
.page-hero .lead { margin: 0; color: rgba(255,255,255,.68); }
.page-hero--image { min-height: 620px; display: flex; align-items: end; background: var(--navy); }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,18,28,.86),rgba(5,18,28,.48) 55%,rgba(5,18,28,.18)); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero__inner { z-index: 3; }

/* Project gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; }
.filter-btn { padding: 10px 16px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 720; cursor: pointer; transition: all .2s ease; }
.filter-btn:hover, .filter-btn[aria-pressed="true"] { color: var(--white); background: var(--navy); border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item { grid-column: span 4; margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .32s var(--ease), box-shadow .32s var(--ease); }
.gallery-item:nth-child(5n + 1), .gallery-item:nth-child(5n + 4) { grid-column: span 8; }
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-item[hidden] { display: none; }
.gallery-item button { display: block; width: 100%; padding: 0; text-align: left; background: transparent; border: 0; cursor: zoom-in; }
.gallery-item__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
.gallery-item:nth-child(5n + 1) .gallery-item__media, .gallery-item:nth-child(5n + 4) .gallery-item__media { aspect-ratio: 16 / 9; }
.gallery-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption { display: grid; gap: 4px; padding: 20px 22px 22px; }
.gallery-item__category { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gallery-item__title { font-weight: 730; line-height: 1.35; }

.lightbox { width: min(1120px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow: hidden; color: var(--white); background: #07121b; border: 0; border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.lightbox::backdrop { background: rgba(3,9,14,.85); backdrop-filter: blur(8px); }
.lightbox__frame { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; max-height: calc(100svh - 32px); }
.lightbox__image-wrap { min-height: 300px; display: grid; place-items: center; overflow: hidden; }
.lightbox__image { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; }
.lightbox__caption { margin: 0; padding: 18px 70px; color: rgba(255,255,255,.78); text-align: center; font-size: .9rem; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: rgba(8,23,34,.72); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: pointer; backdrop-filter: blur(8px); }
.lightbox__close { top: 16px; right: 16px; font-size: 1.35rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 1.4rem; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* Company */
.fact-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { min-height: 190px; padding: 30px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact strong { display: block; margin-bottom: 8px; color: var(--blue); font-family: Georgia,serif; font-size: 2.25rem; font-weight: 500; line-height: 1.1; }
.fact span { color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value-card { padding: 38px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.value-card__mark { width: 44px; height: 4px; margin-bottom: 30px; background: var(--brass); }
.value-card p { margin: 0; color: var(--ink-soft); }
.split-media { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 650px; background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; }
.split-media__image img { width: 100%; height: 100%; object-fit: cover; }
.split-media__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,6vw,80px); color: var(--white); }
.split-media__copy p { color: rgba(255,255,255,.7); }
.trade-list { columns: 2; gap: 30px; margin: 18px 0 0; padding: 0; list-style: none; }
.trade-list li { break-inside: avoid; position: relative; padding: 8px 0 8px 20px; color: rgba(255,255,255,.82); font-size: .9rem; }
.trade-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 1px; background: var(--blue-light); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px,7vw,96px); align-items: start; }
.contact-card { position: sticky; top: 125px; padding: 38px; color: var(--white); background: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 2.5rem; }
.contact-list { display: grid; gap: 22px; margin: 32px 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.contact-list__icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue-light); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.contact-list__icon svg { width: 19px; height: 19px; stroke: currentColor; }
.contact-list small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: rgba(255,255,255,.9); font-size: .95rem; }
.contact-list a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.contact-note { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.57); font-size: .78rem; }
.form-card { padding: clamp(32px,5vw,56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: clamp(2.2rem,4vw,3.8rem); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .78rem; font-weight: 760; letter-spacing: .035em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(16,25,35,.19);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field input, .form-field select { height: 54px; padding: 0 15px; }
.form-field textarea { min-height: 170px; padding: 14px 15px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(78,127,164,.13); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #87919a; }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; margin: 24px 0; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue); }
.checkbox-field label { color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.checkbox-field a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form-status { min-height: 1.4em; margin: 13px 0 0; color: var(--ink-soft); font-size: .82rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Legal */
.legal { max-width: 900px; }
.legal-panel {
  padding: clamp(28px, 4vw, 52px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(16,40,60,.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(10,20,30,.08);
}
.legal h1 { font-size: clamp(3rem,6vw,5.8rem); }
.legal h2 { margin-top: 55px; font-family: Inter,Aptos,"Helvetica Neue",Arial,sans-serif; font-size: 1.45rem; font-weight: 760; letter-spacing: -.01em; }
.legal h3 { margin-top: 34px; font-size: 1.08rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal code { padding: .1em .35em; color: var(--navy); background: var(--stone-2); border-radius: 4px; font-size: .88em; }
.legal ul { padding-left: 1.2em; }
.legal-note { margin: 30px 0; padding: 22px; color: #5b4527; background: #f4ead8; border-left: 4px solid var(--brass); border-radius: 0 10px 10px 0; }

/* Thank-you */
.success-panel { max-width: 820px; margin: 0 auto; padding: clamp(45px,8vw,90px); text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.success-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 28px; color: var(--white); background: var(--blue); border-radius: 50%; font-size: 2rem; }
.success-panel h1 { font-size: clamp(2.7rem,5vw,5rem); }

/* Footer */
.footer { color: rgba(255,255,255,.72); background: linear-gradient(180deg, var(--navy-2), #071722); }
.footer__main { display: grid; grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: clamp(30px,5vw,70px); padding: 78px 0 58px; }
.footer__brand img { width: 225px; margin-bottom: 24px; }
.footer__brand p { max-width: 390px; color: rgba(255,255,255,.58); font-size: .88rem; }
.footer h3 { margin-bottom: 20px; color: var(--white); font-family: Inter,Aptos,"Helvetica Neue",Arial,sans-serif; font-size: .78rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.footer__links { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer__links a { font-size: .87rem; transition: color .2s ease; }
.footer__links a:hover { color: var(--white); }
.footer__contact { font-size: .87rem; }
.footer__contact p { margin-bottom: 12px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.46); font-size: .75rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a:hover { color: var(--white); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (max-width: 1050px) {
  :root { --header-height: 74px; }
  .topbar__inner > span { display: none; }
  .brand img { width: 205px; }
  .menu-toggle { position: relative; display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    width: min(420px, 100vw);
    height: calc(100svh - var(--mobile-nav-top, calc(var(--header-height) + var(--topbar-height))));
    max-height: calc(100svh - var(--mobile-nav-top, calc(var(--header-height) + var(--topbar-height))));
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 32px;
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    pointer-events: none;
    color: var(--ink);
    background: var(--paper);
    box-shadow: -20px 30px 60px rgba(6,20,31,.16);
    visibility: hidden;
    transition: clip-path .35s var(--ease), opacity .24s ease, visibility .35s;
  }
  .nav.is-open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav__link { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 24px 0 0; }
  .hero__panel { width: min(700px, 70vw); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(3,1fr); row-gap: 35px; }
  .process-step:nth-child(3)::after { display: none; }
  .fact-grid { grid-template-columns: repeat(2,1fr); }
  .footer__main { grid-template-columns: 1.3fr .7fr .8fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .section-heading, .editorial-grid, .statement, .cta-panel, .page-hero__inner, .contact-layout, .split-media { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .hero { min-height: 760px; }
  .hero::before { background: linear-gradient(90deg, rgba(6,20,31,.55), rgba(6,20,31,.08)); }
  .hero__inner { align-items: end; padding-bottom: 48px; }
  .hero__panel { width: min(680px, 93%); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:first-child { min-height: 520px; grid-row: auto; }
  .collage { min-height: 590px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(3)::after { display: block; }
  .process-step:nth-child(even)::after { display: none; }
  .statement__mark { display: none; }
  .gallery-item, .gallery-item:nth-child(5n + 1), .gallery-item:nth-child(5n + 4) { grid-column: span 6; }
  .gallery-item:nth-child(5n + 1) .gallery-item__media, .gallery-item:nth-child(5n + 4) .gallery-item__media { aspect-ratio: 4/3; }
  .value-grid { grid-template-columns: 1fr; }
  .split-media__image { min-height: 480px; }
  .contact-card { position: static; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 590px) {
  :root { --topbar-height: 32px; --header-height: 68px; }
  body { font-size: 16px; }
  .container, .container--narrow { width: min(calc(100% - 28px), var(--container)); }
  .topbar__links { width: 100%; justify-content: space-between; gap: 10px; }
  .topbar__links span { display: none; }
  .topbar__links { font-size: .72rem; }
  .brand img { width: 178px; }
  .menu-toggle { width: 44px; height: 44px; }
  .nav { padding: 26px 22px; }
  .hero { min-height: 765px; }
  .hero__media img { object-position: 55% center; }
  .hero::before { background: linear-gradient(180deg, rgba(6,20,31,.12), rgba(6,20,31,.55)); }
  .hero__inner { align-items: end; padding-block: 30px; }
  .hero__panel { width: 100%; padding: 30px 24px; border-radius: var(--radius); }
  .hero h1 { font-size: clamp(2.75rem,14vw,4.1rem); }
  .hero__lead { font-size: .98rem; }
  .hero__badges { gap: 8px 14px; }
  .hero__credit { display: none; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .btn { width: 100%; }
  .trust-item { padding: 24px 18px; }
  .trust-item strong { font-size: 1.18rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .project-card, .project-card:first-child { min-height: 450px; }
  .collage { min-height: 500px; }
  .collage__main { width: 87%; height: 70%; }
  .collage__secondary { width: 64%; height: 43%; }
  .collage__detail { width: 37%; height: 25%; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding-right: 0; }
  .process-step::after { display: none !important; }
  .cta-panel { padding: 36px 25px; }
  .page-hero { padding: 80px 0; }
  .page-hero--image { min-height: 570px; }
  .gallery { gap: 14px; }
  .gallery-item, .gallery-item:nth-child(5n + 1), .gallery-item:nth-child(5n + 4) { grid-column: 1 / -1; }
  .lightbox__caption { padding-inline: 55px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { min-height: 150px; }
  .trade-list { columns: 1; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .footer__main { grid-template-columns: 1fr; padding-top: 60px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .footer, .button-row, .filter-bar { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .section, .page-hero { padding: 20px 0; color: #000; background: #fff; }
  a { text-decoration: underline; }
}
.form-status[data-state="error"] { color: #9b2d20; font-weight: 700; }


/* Footer logo refinement */
.footer__brand img { width: 198px; margin-bottom: 0; }
.footer__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.footer__logo-badge:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

/* Comprehensive reference list */
.reference-section { background: linear-gradient(180deg, rgba(16,40,60,.03), rgba(16,40,60,.08)); }
.reference-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 34px; }
.reference-overview > div { display: grid; gap: 6px; padding: 24px 22px; background: var(--white); border: 1px solid rgba(16,40,60,.09); border-radius: 22px; box-shadow: 0 16px 40px rgba(16,40,60,.06); }
.reference-overview strong { font-family: Fraunces, Georgia, serif; font-size: clamp(1.4rem, 1rem + 1vw, 2.1rem); color: var(--navy-2); line-height: 1; }
.reference-overview span { color: var(--ink-soft); font-size: .92rem; }
.reference-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.reference-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--white); border: 1px solid rgba(16,40,60,.09); border-radius: 22px; box-shadow: 0 16px 40px rgba(16,40,60,.06); }
.reference-card__header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.reference-card__id { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background: rgba(16,40,60,.07); color: var(--navy-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.reference-card__type { color: var(--steel); font-size: .84rem; font-weight: 700; }
.reference-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.reference-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.reference-card ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--ink); font-size: .92rem; }
.reference-card li::marker { color: var(--accent); }

@media (max-width: 980px) {
  .reference-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer__brand img { width: 176px; }
  .footer__logo-badge { padding: 12px 16px; border-radius: 16px; }
  .reference-overview, .reference-list { grid-template-columns: 1fr; }
  .reference-card { padding: 20px; }
}


/* New M&K PROJEKTBAU logo – header/footer integration */
.brand img {
  display: block;
  width: clamp(268px, 24vw, 340px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.footer__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer__logo-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}
.footer__brand .footer__logo-badge img,
.footer__brand > img {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1050px) {
  .brand img { width: 250px; max-height: 52px; }
}
@media (max-width: 590px) {
  .brand img { width: min(218px, 68vw); max-height: 46px; }
  .footer__logo-badge { padding: 12px 14px; border-radius: 14px; }
  .footer__brand .footer__logo-badge img,
  .footer__brand > img { width: min(275px, 100%); }
}


/* v5 — premium construction positioning */
.service-card { display:flex; flex-direction:column; }
.service-card__link { margin-top:auto; padding-top:18px; }
.audience-section { background: var(--paper); }
.audience-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.audience-card { min-height:360px; display:flex; flex-direction:column; padding:34px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow-sm); }
.audience-card--dark { color:var(--white); background:linear-gradient(145deg,var(--navy),#173b56); border-color:transparent; }
.audience-card__label { margin-bottom:auto; padding-bottom:55px; color:var(--blue); font-size:.75rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.audience-card--dark .audience-card__label { color:var(--blue-light); }
.audience-card h3 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.65rem,2.5vw,2.4rem); font-weight:500; letter-spacing:-.02em; }
.audience-card p { color:var(--ink-soft); }
.audience-card--dark p { color:rgba(255,255,255,.7); }
.text-link--light { color:var(--white); }
.phase-compare { display:grid; grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr); gap:24px; align-items:center; }
.phase-compare figure { margin:0; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.phase-compare__image { aspect-ratio:4/3; overflow:hidden; }
.phase-compare__image img { width:100%; height:100%; object-fit:cover; }
.phase-compare figcaption { padding:24px; }
.phase-compare figcaption span { display:block; margin-bottom:8px; color:var(--blue); font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.phase-compare figcaption strong { display:block; margin-bottom:10px; font-family:Georgia,"Times New Roman",serif; font-size:1.4rem; font-weight:500; line-height:1.3; }
.phase-compare figcaption p { margin:0; color:var(--ink-soft); font-size:.92rem; }
.phase-compare__arrow { display:grid; place-items:center; width:54px; height:54px; margin:auto; color:var(--white); background:var(--navy); border-radius:50%; font-size:1.5rem; }
.service-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.service-detail-card { display:grid; grid-template-columns:70px 1fr; gap:22px; padding:30px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow-sm); transition:transform .25s var(--ease), box-shadow .25s var(--ease); }
.service-detail-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.service-detail-card>span { width:52px; height:52px; display:grid; place-items:center; color:var(--white); background:var(--navy); border-radius:50%; font-size:.78rem; font-weight:800; }
.service-detail-card h3 { font-family:Georgia,"Times New Roman",serif; font-size:1.7rem; font-weight:500; }
.service-detail-card p { color:var(--ink-soft); }
.service-detail-card strong { color:var(--navy); font-size:.88rem; }
.project-type-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.project-type-grid article { padding:32px; border-top:3px solid var(--blue); background:var(--white); box-shadow:var(--shadow-sm); }
.project-type-grid span { color:var(--blue); font-size:.73rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.project-type-grid h3 { margin-top:18px; }
.project-type-grid p { margin:0; color:var(--ink-soft); }
.service-editorial { display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(40px,8vw,100px); align-items:center; }
.service-editorial__media { min-height:620px; overflow:hidden; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.service-editorial__media img { width:100%; height:100%; min-height:620px; object-fit:cover; }
.work-principles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.work-principles article { padding:28px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); }
.work-principles span { display:inline-grid; place-items:center; width:42px; height:42px; margin-bottom:26px; color:var(--white); background:var(--navy); border-radius:50%; font-size:.76rem; font-weight:800; }
.work-principles p { margin:0; color:var(--ink-soft); font-size:.92rem; }
.case-study-section { background:linear-gradient(180deg,var(--paper),#f5f1ea); }
.case-grid { display:grid; gap:26px; }
.case-card { display:grid; grid-template-columns:.9fr 1.1fr; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }
.case-card:nth-child(even) .case-card__media { order:2; }
.case-card__media { min-height:440px; }
.case-card__media img { width:100%; height:100%; min-height:440px; object-fit:cover; }
.case-card__copy { padding:clamp(30px,5vw,58px); align-self:center; }
.case-card__tag { display:inline-block; margin-bottom:18px; color:var(--blue); font-size:.74rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.case-card h3 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,3.3vw,3.4rem); font-weight:500; letter-spacing:-.025em; }
.case-card dl { display:grid; gap:16px; margin:28px 0 0; }
.case-card dl div { display:grid; grid-template-columns:110px 1fr; gap:18px; padding-top:16px; border-top:1px solid var(--line); }
.case-card dt { color:var(--navy); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.case-card dd { margin:0; color:var(--ink-soft); }
.form-hint { margin:18px 0 0; padding:15px 17px; color:var(--ink-soft); background:rgba(78,127,164,.07); border-left:3px solid var(--blue); border-radius:0 10px 10px 0; font-size:.84rem; }

@media (max-width: 980px) {
  .audience-grid, .project-type-grid { grid-template-columns:1fr; }
  .audience-card { min-height:0; }
  .audience-card__label { padding-bottom:26px; }
  .phase-compare { grid-template-columns:1fr; }
  .phase-compare__arrow { transform:rotate(90deg); }
  .service-detail-grid { grid-template-columns:1fr; }
  .service-editorial { grid-template-columns:1fr; }
  .service-editorial__media, .service-editorial__media img { min-height:420px; }
  .work-principles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .case-card { grid-template-columns:1fr; }
  .case-card:nth-child(even) .case-card__media { order:0; }
  .case-card__media, .case-card__media img { min-height:360px; }
}
@media (max-width: 620px) {
  .service-detail-card { grid-template-columns:1fr; }
  .work-principles { grid-template-columns:1fr; }
  .case-card dl div { grid-template-columns:1fr; gap:5px; }
  .phase-compare__image { aspect-ratio:1/1; }
}


/* v5.1 — project alliance + shared reference framework */
.alliance-section { background: linear-gradient(180deg,#fff,#f5f2ec); }
.alliance-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr); gap:clamp(38px,7vw,90px); align-items:center; }
.alliance-copy .lead { max-width:780px; }
.alliance-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.alliance-stats>div { min-height:155px; display:flex; flex-direction:column; justify-content:flex-end; padding:24px; border:1px solid var(--line); border-radius:22px; background:var(--white); box-shadow:var(--shadow-sm); }
.alliance-stats strong { display:block; margin-bottom:8px; color:var(--navy); font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.35rem,2.1vw,2rem); font-weight:500; line-height:1.08; }
.alliance-stats span { color:var(--ink-soft); font-size:.88rem; }
.major-projects { background:var(--paper); }
.major-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:36px; }
.major-project-card { position:relative; min-height:320px; padding:32px; border:1px solid var(--line); border-radius:24px; background:var(--white); box-shadow:var(--shadow-sm); overflow:hidden; }
.major-project-card::after { content:""; position:absolute; right:-45px; bottom:-45px; width:145px; height:145px; border:1px solid rgba(78,127,164,.15); border-radius:50%; box-shadow:0 0 0 24px rgba(78,127,164,.04),0 0 0 48px rgba(78,127,164,.03); }
.major-project-card__value { display:block; margin-bottom:12px; color:var(--navy); font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.7rem,3vw,2.5rem); }
.major-project-card__type { color:var(--blue); font-size:.75rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.major-project-card h3 { max-width:520px; margin-top:22px; font-size:1.35rem; }
.major-project-card p { max-width:560px; color:var(--ink-soft); }
.reference-disclaimer { margin:24px 0 18px; padding:15px 18px; color:var(--ink-soft); background:rgba(16,40,60,.045); border-left:3px solid var(--blue); border-radius:0 12px 12px 0; font-size:.84rem; }
.verbund-services { display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(30px,6vw,76px); margin-top:54px; padding:40px; background:linear-gradient(145deg,#f5f1ea,#fff); border:1px solid var(--line); border-radius:30px; }
.verbund-service-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.verbund-service-list article { padding:20px; background:var(--white); border:1px solid var(--line); border-radius:18px; }
.verbund-service-list strong,.verbund-service-list span { display:block; }
.verbund-service-list strong { margin-bottom:8px; color:var(--navy); }
.verbund-service-list span { color:var(--ink-soft); font-size:.88rem; }
.major-reference-section { background:#fff; }
.reference-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:34px 0; }
.reference-metrics>div { padding:24px 20px; border:1px solid var(--line); border-radius:20px; background:var(--paper); }
.reference-metrics strong,.reference-metrics span { display:block; }
.reference-metrics strong { margin-bottom:8px; color:var(--navy); font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.35rem,2vw,2rem); font-weight:500; }
.reference-metrics span { color:var(--ink-soft); font-size:.86rem; }
.major-reference-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.major-reference-card { padding:30px; border:1px solid var(--line); border-radius:24px; background:var(--white); box-shadow:var(--shadow-sm); }
.major-reference-card__top { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.major-reference-card__top span { color:var(--blue); font-size:.75rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.major-reference-card__top strong { color:var(--navy); font-size:1.08rem; white-space:nowrap; }
.major-reference-card h3 { margin-top:22px; font-family:Georgia,"Times New Roman",serif; font-size:1.65rem; font-weight:500; }
.major-reference-card p { color:var(--ink-soft); }
.major-reference-card ul { margin:18px 0 0; padding-left:18px; color:var(--ink); font-size:.9rem; }
.major-reference-card li { margin-bottom:7px; }
.experience-environments { background:linear-gradient(180deg,#f7f4ef,#fff); }
.environment-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.environment-grid div { min-height:120px; display:flex; align-items:flex-end; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--white); color:var(--navy); font-weight:700; box-shadow:var(--shadow-sm); }

@media (max-width:980px){
  .alliance-grid,.verbund-services{grid-template-columns:1fr;}
  .reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
  .environment-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:680px){
  .alliance-stats,.major-project-grid,.verbund-service-list,.major-reference-list,.reference-metrics,.environment-grid{grid-template-columns:1fr;}
  .major-reference-card__top{flex-direction:column;}
  .verbund-services{padding:26px;}
}


/* Bildschutz: Wasserzeichen sind dauerhaft in den Projektbildern eingebettet. */
.gallery-item__media img, .page-hero__media img, .project-card img, .case-study img, .hero img {
  -webkit-user-drag: none;
  user-select: none;
}

/* v8 — Hero-Typografie: ruhiger, architektonischer und responsiv ausgewogen */
.hero__panel {
  width: min(760px, 62vw);
  padding: clamp(36px, 4.4vw, 58px);
}
.hero h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-family: Inter, Aptos, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.9rem, 3.45vw, 3.65rem);
  font-weight: 650;
  line-height: 1.025;
  letter-spacing: -.045em;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.hero__lead {
  max-width: 610px;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.68;
}

@media (max-width: 1100px) {
  .hero__panel { width: min(720px, 72vw); }
  .hero h1 {
    max-width: 630px;
    font-size: clamp(2.75rem, 4.6vw, 3.4rem);
    line-height: 1.03;
  }
}

@media (max-width: 820px) {
  .hero__panel { width: min(680px, 94%); }
  .hero h1 {
    max-width: 600px;
    font-size: clamp(2.65rem, 7vw, 3.25rem);
    line-height: 1.035;
    letter-spacing: -.04em;
  }
}

@media (max-width: 590px) {
  .hero__panel { padding: 28px 22px; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.7vw, 2.85rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: pretty;
  }
  .hero__lead {
    font-size: .96rem;
    line-height: 1.62;
  }
}


/* v9 — stronger rounded tiles */
.trust-band{background:transparent;padding-bottom:20px;}
.trust-grid{gap:16px;margin-top:-1px;padding-top:0;}
.trust-item{background:var(--navy);border:1px solid rgba(255,255,255,.08);border-right:1px solid rgba(255,255,255,.08);border-radius:24px;box-shadow:0 18px 38px rgba(8,22,34,.12);}
.trust-item:last-child{border-right:1px solid rgba(255,255,255,.08);}
.fact-grid{gap:18px;border-top:0;border-left:0;}
.fact{border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-sm);border-right:1px solid var(--line);border-bottom:1px solid var(--line);}
.project-type-grid article{border-radius:24px;border:1px solid var(--line);}
@media (max-width: 980px){.trust-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width: 620px){.trust-grid,.fact-grid{grid-template-columns:1fr;}.trust-item,.fact{padding:24px 22px;}}


/* v10 Production & SEO */
.expertise-section{background:#fff;}
.expertise-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.expertise-card{min-height:210px;padding:28px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(180deg,#fff,#faf8f4);box-shadow:var(--shadow-sm);}
.expertise-card h3{margin-bottom:12px;font-size:1.2rem;}
.expertise-card p{margin:0;color:var(--ink-soft);font-size:.92rem;}
.compliance-note{margin-top:28px;padding:24px 26px;border:1px solid rgba(78,127,164,.2);border-left:4px solid var(--blue);border-radius:18px;background:rgba(78,127,164,.055);}
.compliance-note strong{display:block;margin-bottom:8px;color:var(--navy);}
.compliance-note p{margin:0;color:var(--ink-soft);font-size:.9rem;}
.mobile-contact-bar{display:none;}
@media(max-width:980px){.expertise-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){
  body{padding-bottom:68px;}
  .expertise-grid{grid-template-columns:1fr;}
  .mobile-contact-bar{position:fixed;z-index:80;right:12px;bottom:12px;left:12px;display:grid;grid-template-columns:.8fr 1.2fr;gap:8px;padding:8px;background:rgba(255,255,255,.96);border:1px solid rgba(16,40,60,.12);border-radius:18px;box-shadow:0 18px 50px rgba(6,20,31,.2);backdrop-filter:blur(12px);}
  .mobile-contact-bar a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;border-radius:13px;font-size:.86rem;font-weight:800;text-decoration:none;}
  .mobile-contact-bar__call{color:var(--navy);background:#edf2f5;}
  .mobile-contact-bar__request{color:#fff;background:var(--navy);}
}
