/* =========================================================================
   Surigana Engineering — Gestaltungssystem
   Farben aus der Marke: Navy #253551 / #2C4563, Hellgrau #E7EAEE, Weiss.
   Aufbau: 1 Grundlagen · 2 Typografie · 3 Elemente · 4 Kopf · 5 Startseite
           6 Abschnitte · 7 Unterseiten · 8 Formular · 9 Fuss · 10 Bewegung
           11 Responsive
   ========================================================================= */

/* --- 1 Grundlagen ------------------------------------------------------- */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Markenskala */
  --navy-900: #0d1524;
  --navy-800: #141f33;
  --navy-700: #1b2942;
  --navy-600: #253551;   /* Markenkern (Logo) */
  --navy-500: #2c4563;   /* Marke, interaktiv */
  --navy-400: #3d5a7d;
  --navy-300: #5e7ca3;
  --navy-200: #93a8c2;
  --navy-100: #c6d2e0;
  --navy-050: #e7eaee;   /* Markenhellgrau */
  --mist:     #f8fafb;
  --paper:    #ffffff;
  --ink:      #131922;
  --muted:    #5c6673;
  --line:     #dde3ea;
  --glow:     #6fa0d8;   /* Akzent, sehr sparsam */

  /* Schrift */
  --heading: 'Space Grotesk', 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  --body: 'Avenir Next', 'Segoe UI', Arial, sans-serif;

  /* Tiefe – navyfarben statt schwarz, damit nichts grau wirkt */
  --sh-1: 0 1px 2px rgba(19, 30, 51, .05), 0 2px 8px rgba(19, 30, 51, .04);
  --sh-2: 0 4px 14px rgba(19, 30, 51, .07), 0 18px 40px rgba(19, 30, 51, .07);
  --sh-3: 0 10px 30px rgba(19, 30, 51, .10), 0 40px 80px rgba(19, 30, 51, .13);

  /* Bewegung */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --ease-both: cubic-bezier(.65, 0, .35, 1);

  /* Raster */
  --gutter: 56px;
  --maxw: 1280px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
/* height:auto sorgt dafuer, dass die width/height-Attribute im HTML das
   Seitenverhaeltnis nur reservieren und CSS-aspect-ratio greifen kann. */
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--navy-600); color: #fff; }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip {
  position: fixed;
  top: -90px;
  left: 20px;
  padding: 14px 18px;
  background: var(--navy-600);
  color: #fff;
  z-index: 200;
  transition: top .25s var(--ease);
}
.skip:focus { top: 14px; }

.wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* --- 2 Typografie ------------------------------------------------------- */

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.5rem, 4.3vw, 4.4rem); color: var(--navy-600); }
h2 { font-size: clamp(1.95rem, 3.2vw, 3.25rem); color: var(--navy-600); }
h3 { font-size: 1.45rem; color: var(--navy-600); }

p + p { margin-top: 20px; }

.eyebrow {
  display: block;
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--navy-500);
}
.eyebrow-icon svg { width: 18px; vertical-align: -4px; margin-right: 9px; }

.lead {
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--navy-600);
  letter-spacing: -.015em;
  font-family: var(--heading);
  font-weight: 400;
}

/* Titel mit zeilenweiser Einblendung */
.display .ln { display: block; overflow: hidden; }
.display .ln > span { display: block; will-change: transform; }
.display em { font-style: normal; color: var(--navy-300); }

/* --- 3 Elemente --------------------------------------------------------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 22px;
  border: 1px solid var(--navy-600);
  background: var(--navy-600);
  color: #fff;
  font-size: 14px;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.button > span, .button > svg { position: relative; z-index: 1; }
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, var(--navy-500), var(--navy-400));
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.button:hover::before { transform: translateY(0); }
.button svg { width: 20px; transition: transform .4s var(--ease); }
.button:hover svg { transform: translateX(4px); }

.button.secondary {
  background: transparent;
  color: var(--navy-600);
  border-color: var(--navy-100);
}
.button.secondary::before { background: var(--navy-050); }
.button.secondary:hover { border-color: var(--navy-200); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--navy-600);
  padding: 12px 0;
  font-size: 14px;
  margin-top: 22px;
  position: relative;
}
.text-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy-100);
}
.text-link::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--navy-600);
  transition: width .5s var(--ease);
  z-index: 1;
}
.text-link:hover::before { width: 100%; }
.text-link svg { transition: transform .4s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

/* Bildrahmen mit Verlaufsschleier */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--navy-700);
}
.photo-frame img {
  width: 100%;
  transition: transform .9s var(--ease-soft), filter .9s var(--ease-soft);
}
.photo-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 21, 36, .30) 0%, rgba(13, 21, 36, 0) 34%, rgba(13, 21, 36, .04) 62%, rgba(13, 21, 36, .42) 100%),
    linear-gradient(103deg, rgba(37, 53, 81, .26) 0%, rgba(37, 53, 81, 0) 55%);
  transition: opacity .7s var(--ease);
}
.photo-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  color: var(--navy-600);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 4px 10px;
}
/* Bilder, die noch laden, zeigen den unscharfen Platzhalter (media.css).
   Kein JavaScript noetig: der Platzhalter liegt als Hintergrund hinter dem Bild. */
.ph { animation: phFade .8s var(--ease) both; }
@keyframes phFade { from { opacity: .001; } to { opacity: 1; } }

/* --- 4 Kopfbereich ------------------------------------------------------ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--navy-600), var(--glow));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 104px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 38px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), border-color .35s, box-shadow .35s, background .35s;
}
.header.scrolled {
  height: 82px;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(37, 53, 81, .03), 0 10px 30px -18px rgba(19, 30, 51, .25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--navy-600);
  flex-shrink: 0;
}
.brandmark { display: block; }
.brandmark .mark {
  width: 51px;
  height: 36px;
  transition: transform .6s var(--ease);
}
.brand:hover .mark { transform: translateX(2px); }
.wordmark {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.2;
}
.wordmark span {
  display: block;
  font-size: 9.5px;
  letter-spacing: .34em;
  margin-top: 4px;
  color: var(--navy-400);
}

.header nav {
  margin-left: auto;
  display: flex;
  gap: 34px;
  font-size: 14px;
}
.header nav a { position: relative; padding: 10px 0; color: var(--navy-700); }
.header nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  height: 1px;
  width: 0;
  background: var(--navy-600);
  transition: width .45s var(--ease);
}
.header nav a:hover::after,
.header nav a[aria-current]::after { width: 100%; }
.header nav a[aria-current] { color: var(--navy-600); }

.header-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--navy-600);
  color: #fff;
  padding: 13px 18px;
  font-size: 14px;
  overflow: hidden;
  isolation: isolate;
}
.header-cta > span, .header-cta > svg { position: relative; z-index: 1; }
.header-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--navy-500), var(--navy-400));
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.header-cta:hover::before { transform: translateY(0); }
.header-cta svg { width: 18px; transition: transform .4s var(--ease); }
.header-cta:hover svg { transform: translateX(3px); }

.menu-toggle { display: none; }

/* --- 5 Startseite: Hero ------------------------------------------------- */

.home-hero {
  display: grid;
  grid-template-columns: 53% 47%;
  min-height: min(84vh, 720px);
}

.hero-copy {
  position: relative;
  padding: 76px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(44, 69, 99, .09) 0%, rgba(44, 69, 99, 0) 60%),
    linear-gradient(170deg, var(--mist) 0%, #eef1f5 100%);
  overflow: hidden;
}
/* Feines technisches Raster als Hintergrundtextur */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(37, 53, 81, .055) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(37, 53, 81, .045) 0 1px, transparent 1px 88px);
  mask-image: radial-gradient(130% 95% at 8% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 88%);
}
.hero-copy-inner { position: relative; max-width: 620px; }

.hero-title {
  color: var(--navy-600);
  font-size: clamp(2.5rem, 4.15vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.042em;
}
.hero-lead {
  position: relative;
  max-width: 470px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 28px 0 34px;
}
.hero-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-foot {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 48px 0 26px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
  gap: 20px;
}
.scroll-cue {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy-100);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy-600);
  transition: border-color .35s, background .35s;
}
.scroll-cue i {
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  animation: cue 2.4s var(--ease-both) infinite;
}
.scroll-cue:hover { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
@keyframes cue {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); opacity: .5; }
  50%      { transform: rotate(45deg) translate(2px, 2px);   opacity: 1; }
}

.hero-image { position: relative; overflow: hidden; background: var(--navy-700); }
.hero-image-inner { position: absolute; inset: -6% 0; will-change: transform; }
.hero-photo {
  width: 100%;
  height: 100%;
  object-position: 55% center;
  animation: heroIn 1.5s var(--ease-soft) both;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 21, 36, .34) 0%, rgba(13, 21, 36, 0) 40%, rgba(13, 21, 36, .55) 100%),
    linear-gradient(95deg, rgba(37, 53, 81, .34) 0%, rgba(37, 53, 81, 0) 45%);
}
@keyframes heroIn {
  from { transform: scale(1.07); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.image-caption {
  position: absolute;
  left: 30px; right: 30px; bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  font-family: var(--heading);
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .92;
}

/* Laufband der Fachgebiete */
.expertise-bar {
  background: linear-gradient(100deg, var(--navy-700) 0%, var(--navy-600) 48%, var(--navy-500) 100%);
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px;
  font-size: 13px;
  letter-spacing: .09em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .88);
}
.marquee-track svg { width: 15px; height: 15px; color: var(--glow); opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- 6 Abschnitte ------------------------------------------------------- */

.section { padding: clamp(68px, 7vw, 104px) 0; }
.section-tight { padding-top: 8px; }
.section-bottom { padding-bottom: clamp(60px, 7vw, 96px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 92px); }
.split-head { position: relative; }
.intro-text { max-width: 540px; color: var(--muted); }
.split > .intro-text { padding-top: 38px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 48px;
}
.section-heading p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.section-heading .text-link { flex-shrink: 0; margin-top: 0; }

/* Kennzahlen */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: clamp(60px, 6vw, 92px);
}
.stat { border-left: 1px solid var(--line); padding: 0 26px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: flex;
  align-items: baseline;
  gap: .08em;
  font-family: var(--heading);
  font-size: clamp(2.2rem, 3.6vw, 3.7rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy-600);
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { font-size: .5em; color: var(--navy-300); letter-spacing: -.02em; }
.stat p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 14px; }

/* Leistungszeilen */
.services-section { background: linear-gradient(180deg, var(--mist) 0%, #f2f4f7 100%); }

.service-rows { position: relative; }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 46px 1fr 34px;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  transition: padding .5s var(--ease), color .35s;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row::before {
  content: '';
  position: absolute;
  inset: 0 -22px;
  background: linear-gradient(95deg, rgba(255, 255, 255, .95), rgba(231, 234, 238, .75));
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: 0;
}
.service-row::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px;
  width: 0;
  background: var(--navy-600);
  transition: width .6s var(--ease);
  z-index: 1;
}
.service-row:hover::before { opacity: 1; }
.service-row:hover::after { width: 100%; }
.service-row:hover { padding-left: 22px; }
.service-row > * { position: relative; z-index: 1; }
.row-number {
  font-family: var(--heading);
  font-size: 13px;
  color: var(--navy-300);
  letter-spacing: .06em;
}
.row-icon { display: block; color: var(--navy-500); }
.row-icon svg { width: 29px; height: 29px; }
.row-body { min-width: 0; display: block; }
.service-row p { font-size: 15px; color: var(--muted); margin-top: 8px; }
.row-arrow { display: block; color: var(--navy-500); }
.row-arrow svg { width: 26px; transition: transform .45s var(--ease); }
.service-row:hover .row-arrow svg { transform: translateX(6px); }

/* Bildvorschau, die dem Zeiger folgt (nur Desktop) */
.row-preview {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  aspect-ratio: 1.42;
  pointer-events: none;
  opacity: 0;
  z-index: 45;
  box-shadow: var(--sh-3);
  overflow: hidden;
  background: var(--navy-700);
  transform: translate3d(-50%, -50%, 0) scale(.92);
  transition: opacity .35s var(--ease), transform .55s var(--ease);
}
.row-preview img { width: 100%; height: 100%; }
.row-preview.on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }

/* Einsatzbereiche */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field .photo-frame img { aspect-ratio: 1.45; }
.field:hover .photo-frame img { transform: scale(1.045); }
.field:hover .photo-scrim { opacity: .72; }
.field-title {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: border-color .4s;
}
.field:hover .field-title { border-color: var(--navy-400); }
.field-title .eyebrow { margin-bottom: 10px; }
.field-title h3 { font-size: 1.4rem; }
.field-title svg { color: var(--navy-500); transition: transform .45s var(--ease); }
.field:hover .field-title svg { transform: translateX(6px); }

/* Planungsprozess */
.process-section {
  position: relative;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-600) 55%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}
.process-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 8%, rgba(111, 160, 216, .20) 0%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 96px);
  pointer-events: none;
}
.process-section .wrap { position: relative; }
.process-section h2,
.process-section h3,
.process-section .eyebrow { color: #fff; }
.process-section .eyebrow { color: var(--navy-100); }
.process-section p { color: #c3cddc; }
.process-section .text-link { color: #fff; }
.process-section .text-link::after { background: rgba(255, 255, 255, .25); }
.process-section .text-link::before { background: #fff; }
.process-description { max-width: 640px; margin-top: 22px; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 64px 0 24px;
}
.timeline-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}
.timeline-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--glow), #fff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.6s var(--ease-soft);
}
.timeline.is-drawn .timeline-track i { transform: scaleX(1); }
.phase { position: relative; padding: 28px 16px 20px 0; }
.phase::before {
  content: '';
  position: absolute;
  left: 0; top: -4px;
  width: 7px; height: 7px;
  background: var(--navy-200);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.timeline.is-drawn .phase::before { background: #fff; }
.phase-no {
  display: block;
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 400;
  color: var(--navy-200);
  letter-spacing: -.04em;
  line-height: 1;
}
.phase h3 {
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: 0;
  margin-top: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Abschluss-Aufruf */
.cta { background: linear-gradient(120deg, var(--navy-050) 0%, #dfe4ec 100%); }
.cta-inner {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(56px, 6vw, 86px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta .eyebrow { margin-bottom: 18px; }
.cta .button { min-width: 232px; }

/* --- 7 Unterseiten ------------------------------------------------------ */

.page-intro { padding-top: clamp(48px, 5vw, 76px); padding-bottom: clamp(40px, 4.5vw, 64px); }
.page-intro h1 { max-width: 980px; }
.page-intro > p { max-width: 660px; color: var(--muted); font-size: 18.5px; margin-top: 26px; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.breadcrumbs a { color: var(--navy-500); }
.breadcrumbs a:hover { text-decoration: underline; }

.page-photo { margin-bottom: 8px; }
.wide-image { width: 100%; height: clamp(260px, 38vw, 460px); }
.page-photo:hover .photo-frame img { transform: scale(1.02); }

.content-copy { max-width: 760px; }
.content-copy p { color: var(--muted); margin: 22px 0; }
.content-copy h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 48px; }
.content-copy a { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }

.detail-grid { display: grid; grid-template-columns: .72fr 1fr; gap: clamp(40px, 6vw, 82px); }
.detail-points li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  color: var(--navy-600);
  transition: border-color .4s, padding-left .4s var(--ease);
}
.detail-points li:hover { padding-left: 8px; border-color: var(--navy-300); }
.detail-points svg { width: 20px; margin-top: 3px; color: var(--navy-400); }
.detail-contact { border-top: 1px solid var(--line); padding-top: 52px; }
.detail-contact .button { margin-top: 26px; }

.values { margin-top: 44px; }
.value {
  display: grid;
  grid-template-columns: 54px .7fr 1fr;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  transition: border-color .4s;
}
.value:hover { border-color: var(--navy-300); }
.value p { color: var(--muted); }

.brand-panel {
  background: linear-gradient(145deg, var(--navy-600) 0%, var(--navy-800) 100%);
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-panel img {
  width: 128%;
  max-width: none;
  height: 340px;
  object-fit: cover;
  opacity: .96;
}

.empty-reference {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 66px);
  align-items: center;
}
.empty-reference img { aspect-ratio: 1.32; }
.empty-reference h2 { margin-bottom: 20px; }
.empty-reference .intro-text .button { margin-top: 26px; }

.legal-note {
  font-size: 14px;
  background: var(--mist);
  border-left: 2px solid var(--navy-500);
  padding: 20px 24px;
  margin-top: 32px;
  color: var(--muted);
}
.legal-note strong { color: var(--navy-600); }

.error-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- 8 Formular --------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(40px, 6vw, 96px); }
.contact-info > div { border-top: 1px solid var(--line); padding: 26px 0; }
.contact-info h2 { font-size: 17px; margin-bottom: 12px; letter-spacing: -.01em; }
.contact-info h2 svg { width: 20px; vertical-align: -5px; margin-right: 12px; color: var(--navy-400); }
.contact-info p { font-size: 16px; color: var(--muted); }
.big-email {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
  color: var(--navy-600);
  letter-spacing: -.03em;
  position: relative;
}
.big-email:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-info .photo-frame { border: 0; margin-top: 22px; }
.contact-info .photo-frame img { aspect-ratio: 1.3; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 14px; color: var(--navy-600); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--navy-100);
  background: var(--mist);
  padding: 14px 15px;
  border-radius: 0;
  color: var(--ink);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover { border-color: var(--navy-200); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--navy-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 69, 99, .1);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #a5392f; background: #fdf6f5; }
.field-error { font-size: 13px; color: #a5392f; }

.full { grid-column: 1 / -1; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 5px; accent-color: var(--navy-600); width: 17px; height: 17px; }
.consent a { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 24px;
  background: linear-gradient(120deg, var(--navy-050), #dfe4ec);
  color: var(--navy-600);
  font-size: 15px;
  border-left: 2px solid var(--navy-500);
}
.form-status[hidden] { display: none; }
.form-status strong { font-family: var(--heading); font-size: 17px; }
.form-status p { margin: 12px 0; color: var(--muted); }
.form-status .button { margin: 6px 0 14px; }
.form-status textarea {
  width: 100%;
  height: 180px;
  margin-top: 12px;
  border: 1px solid var(--navy-100);
  background: #fff;
  padding: 13px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

/* --- 9 Fussbereich ------------------------------------------------------ */

footer {
  position: relative;
  padding: 66px var(--gutter) 38px;
  background: linear-gradient(170deg, var(--navy-900) 0%, #0a1120 100%);
  color: #a9b3c2;
  font-size: 14px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 80% at 88% 0%, rgba(111, 160, 216, .16) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 96px);
  pointer-events: none;
}
.footer-top,
.footer-bottom { position: relative; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-top .brand { color: #fff; }
.footer-top p {
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: #fff;
  letter-spacing: -.03em;
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-top: 36px;
}
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer-legal { align-items: flex-end; }
.footer-legal span { font-size: 12px; margin-top: 14px; color: #74808f; }
footer a { transition: color .3s; }
footer a:hover { color: #fff; }
.footer-address a { color: #cdd6e2; }

/* --- 10 Bewegung -------------------------------------------------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .85s var(--ease-soft) var(--delay, 0ms),
    transform .85s var(--ease-soft) var(--delay, 0ms);
}
.will-reveal.visible { opacity: 1; transform: none; }

/* Zeilenweise Titel-Einblendung – reines CSS, damit der Text auch ohne
   JavaScript garantiert sichtbar wird. */
.display .ln > span { animation: lineUp .95s var(--ease-soft) both; }
.display .ln:nth-child(2) > span { animation-delay: .09s; }
.display .ln:nth-child(3) > span { animation-delay: .18s; }
.display .ln:nth-child(n+4) > span { animation-delay: .27s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: translateY(0); } }

/* --- 11 Responsive ------------------------------------------------------ */

@media (min-width: 1600px) {
  :root { --gutter: max(56px, calc((100vw - 1400px) / 2)); }
  .home-hero { min-height: min(86vh, 780px); }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .header { gap: 22px; height: 90px; }
  .header nav { gap: 24px; }
  .header-cta { display: none; }
  .home-hero { grid-template-columns: 55% 45%; min-height: 580px; }
  .hero-copy { padding-top: 56px; }
  .hero-title { font-size: clamp(2.3rem, 4.4vw, 3rem); }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { gap: 16px; padding: 14px 16px; }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .timeline-track { display: none; }
  .section-heading { align-items: flex-start; }
  .wordmark { font-size: 18px; }
  .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 44px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; --maxw: 100%; }

  .header, .header.scrolled { height: 78px; }
  .brandmark .mark { width: 42px; height: 30px; }
  .wordmark { font-size: 17px; }
  .wordmark span { font-size: 8.5px; }
  .brand { gap: 12px; }

  .header nav {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    margin: 0;
    padding: 26px var(--gutter) 38px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    flex-direction: column;
    gap: 14px;
    font-size: 22px;
  }
  .menu-open .header nav { display: flex; }
  .menu-open .header nav a { animation: navIn .5s var(--ease-soft) both; }
  .menu-open .header nav a:nth-child(2) { animation-delay: .05s; }
  .menu-open .header nav a:nth-child(3) { animation-delay: .1s; }
  .menu-open .header nav a:nth-child(4) { animation-delay: .15s; }
  @keyframes navIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .menu-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: var(--navy-600);
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: .04em;
  }
  .menu-toggle i {
    display: block;
    width: 22px; height: 9px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    transition: transform .35s var(--ease), height .35s var(--ease);
  }
  .menu-open .menu-toggle i { height: 1px; transform: rotate(-45deg); }

  .home-hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 46px var(--gutter) 0; }
  .hero-title { font-size: clamp(2.1rem, 8.4vw, 3.2rem); }
  .eyebrow { font-size: 10.5px; letter-spacing: .13em; margin-bottom: 20px; }
  .hero-lead { margin: 22px 0 26px; font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 13px; padding: 14px 15px; gap: 16px; }
  .hero-foot { padding: 32px 0 20px; font-size: 11px; }
  .hero-image { height: 340px; }
  .hero-image-inner { inset: 0; }
  .hero-photo { object-position: center; }
  .image-caption { left: var(--gutter); right: var(--gutter); font-size: 9px; }
  .image-caption span:last-child { display: none; }

  .marquee-track span { padding: 0 22px; font-size: 12px; }

  .split, .field-grid, .empty-reference, .contact-form { grid-template-columns: 1fr; }
  .split > .intro-text { padding-top: 0; }
  .split, .empty-reference { gap: 30px; }
  .field-grid { gap: 28px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 34px 12px; }
  .stat { padding: 0 12px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat strong { font-size: 2.6rem; }
  .stat p { font-size: 13px; margin-top: 8px; }

  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading p { margin-top: 20px; }
  .section-heading .text-link { margin-top: 14px; }

  .service-row { grid-template-columns: 26px 28px minmax(0, 1fr) 22px; gap: 14px; padding: 26px 0; }
  .service-row:hover { padding-left: 0; }
  .service-row h3 { font-size: 1.12rem; letter-spacing: -.028em; overflow-wrap: anywhere; }
  .service-row p { font-size: 14px; }
  .row-icon svg { width: 25px; height: 25px; }
  .row-number { font-size: 11px; }
  .row-arrow svg { width: 20px; }

  .field .photo-frame img { aspect-ratio: 1.38; }
  .field-title { padding: 20px 0; }

  .timeline { grid-template-columns: 1fr; margin: 36px 0 16px; gap: 0; }
  .phase {
    border-left: 1px solid rgba(255, 255, 255, .22);
    padding: 0 0 30px 28px;
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .phase::before { top: 14px; left: -4px; }
  .phase h3 { margin: 0; font-size: 15.5px; }
  .phase-no { font-size: 27px; min-width: 42px; }

  .cta-inner { display: block; padding: 52px 0; }
  .cta .button { margin-top: 30px; width: 100%; }

  footer { padding: 50px var(--gutter) 30px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer-bottom { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-legal { align-items: flex-start; grid-column: 1 / -1; }

  .page-intro h1 { font-size: clamp(2.1rem, 8.2vw, 2.7rem); }
  .page-intro > p { font-size: 17px; }
  .wide-image { height: 260px; }
  .value { grid-template-columns: 32px 1fr; gap: 16px; }
  .value p { grid-column: 2; }
  .detail-points li { font-size: 15.5px; }
  .brand-panel { min-height: 240px; }
  .brand-panel img { height: 240px; }
  .contact-form .button { width: 100%; }
  .error-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-title { font-size: 2rem; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .will-reveal { opacity: 1; transform: none; }
  .display .ln > span { transform: none; }
  .marquee-track { animation: none; transform: none; }
  .row-preview { display: none; }
}

@media print {
  .header, footer, .row-preview, .scroll-progress, .expertise-bar { display: none; }
  body { color: #000; }
}

/* Horizontal wordmark in the locally hosted brand typeface. */
.wordmark{font-family:"Space Grotesk",sans-serif;font-size:20px;font-weight:500;letter-spacing:.015em;line-height:1.2;white-space:nowrap}
@media(max-width:1100px){.wordmark{font-size:16px}.header{gap:16px}.header nav{gap:20px}}
@media(max-width:760px){.wordmark{font-size:clamp(12px,3.6vw,18px)}.brand{gap:9px}.brandmark .mark{width:34px;height:26px}.header{gap:12px}}
@media(max-width:380px){.header .menu-toggle>span{display:none}.header .menu-toggle{gap:0}}

/* Requested refinements: compact signet, crisp hero and borderless contact photo. */
.brandmark .mark{width:36px;height:26px}.brand{gap:12px}
.hero-photo{object-fit:cover;object-position:52% 50%}
.contact-info>.photo-frame{padding:0;border:0}.contact-info .photo-frame img{display:block}
.stat .phase-range{font-size:1em;white-space:nowrap}
@media(max-width:760px){.brandmark .mark{width:28px;height:21px}.brand{gap:9px}.hero-image{height:auto;aspect-ratio:4/3}.hero-photo{object-position:50% 50%}}

/* Wohnbauten: dezente Markenblau-Tönung, passend zu den übrigen Motiven. */
.field:first-child .photo-frame{isolation:isolate}
.field:first-child .photo-frame::after{content:'';position:absolute;inset:0;background:#253551;mix-blend-mode:color;opacity:.42;pointer-events:none}
.field:first-child .photo-tag{z-index:1}
