@font-face {
  font-family: 'Avenir LT Pro';
  src: url('../fonts/AvenirLTProBook.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir LT Pro';
  src: url('../fonts/AvenirLTProMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir LT Pro';
  src: url('../fonts/AvenirLTProBlack.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-v40-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-v40-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-v40-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #f4f2ee;
  --surface: #ffffff;
  --text: #12161d;
  --muted: #515a68;
  --line: rgba(18, 22, 29, 0.08);
  --line-strong: rgba(18, 22, 29, 0.14);
  --blue: #14365b;
  --blue-deep: #102c49;
  --blue-soft: #254d77;
  --shadow-soft: 0 16px 34px rgba(16, 27, 43, 0.05);
  --radius-md: 8px;
  --shell: 1680px;
  --gutter: clamp(26px, 3.8vw, 52px);
  --space-xl: clamp(92px, 10vw, 152px);
  --space-lg: clamp(100px, 8vw, 144px);
  --space-md: clamp(32px, 5vw, 48px);
  --font-display: 'Avenir LT Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(18, 22, 29, 0.56);
}

.section-kicker--light {
  color: rgba(255, 255, 255, 0.7);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: #14365B;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}

h1 {
  max-width: 34rem;
  font-size: clamp(35px, 3.7vw, 56px);
  line-height: 1;
}

h2 {
  max-width: 34rem;
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.04;
}

h3 {
  font-size: clamp(21px, 1.35vw, 24px);
  line-height: 1.08;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 242, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 22, 29, 0.05);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: var(--shadow-soft);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 38px);
}

.site-nav a,
.site-footer a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(18, 22, 29, 0.76);
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.button,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.button-primary,
.header-cta {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover,
.header-cta:hover {
  background: var(--blue-deep);
}

.button-secondary {
  border-color: rgba(18, 22, 29, 0.12);
  color: var(--text);
  background: transparent;
}

.button-secondary:hover {
  border-color: rgba(18, 22, 29, 0.22);
}

.hero {
  position: relative;
  padding: calc(var(--space-xl) - 8px) 0 var(--space-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-copy {
  max-width: 1360px;
  width: min(100%, 780px);
}

.hero-text {
  max-width: 58ch;
  margin-top: 30px;
  font-size: clamp(18px, 1.34vw, 20px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual {
  display: none;
  position: relative;
  min-height: 520px;
  opacity: 0.46;
  filter: saturate(0.78);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(20, 54, 91, 0.1), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(20, 54, 91, 0.08), transparent 24%),
    radial-gradient(circle at 64% 28%, rgba(255,255,255,0.42), transparent 18%);
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 8% 0 8% 10%;
  background: linear-gradient(90deg, rgba(244,242,238,0.95) 0%, rgba(244,242,238,0.52) 22%, rgba(244,242,238,0.06) 58%, rgba(244,242,238,0) 100%);
  pointer-events: none;
}

.hero-visual__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.system-strip {
  padding-top: 40px;
  padding-bottom: 72px;
}

.system-strip-inner {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.system-strip-inner .section-kicker {
  display: block;
  text-align: center;
  margin-bottom: 34px;
  padding-top: 8px;
}

.system-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  width: 100%;
  opacity: 0.46;
}

.system-logos img {
  width: auto;
  justify-self: center;
  max-height: 24px;
  filter: grayscale(1);
}

.section {
  padding: var(--space-lg) 0;
}

.intro,
.services,
.credentials,
.profile,
.timeline-stage,
.contact {
  padding-top: calc(var(--space-lg) + 10px);
  padding-bottom: calc(var(--space-lg) + 10px);
}

.contact {
  padding-top: calc(var(--space-lg) + 250px);
  padding-bottom: calc(var(--space-lg) + 250px);
}

.intro {
  padding-top: calc(var(--space-lg) + 18px);
}

.editorial-split,
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(18px, 2.2vw, 32px);
  align-items: start;
}

.process-grid {
  gap: clamp(18px, 2vw, 28px);
}

.intro-copy,
.profile-copy,
.contact-copy {
  max-width: 760px;
}

.intro-copy,
.contact-copy,
.profile-copy {
  display: grid;
  gap: 18px;
}

.section-head {
  max-width: 980px;
  margin-bottom: 28px;
}

.section-stack {
  display: grid;
  gap: 24px;
}

.section-stack__header {
  max-width: 980px;
}

.section-head h2,
.editorial-split h2,
.section-stack__header h2,
.contact-copy h2,
.profile-copy h2 {
  max-width: 34rem;
}

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

.service-card {
  position: relative;
  min-height: 480px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

.service-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.06) 0%, rgba(10, 16, 24, 0.32) 74%, rgba(10, 16, 24, 0.46) 100%);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__content {
  position: relative;
  z-index: 1;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: auto;
  padding: 24px 26px 26px;
  background: var(--surface);
  transform: translateY(calc(100% - 132px));
  transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 240ms ease, color 240ms ease;
}

.service-number {
  display: inline-block;
  color: rgba(18, 22, 29, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--text);
}

.service-card__details {
  max-height: 320px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 320ms ease;
}

.service-card__details p {
  margin-top: 18px;
  margin-bottom: 18px;
}

.service-card__details ul {
  display: grid;
  gap: 10px;
}

.service-card__details li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  font-size: 15px;
}

.service-card__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.service-card:hover .service-card__content,
.service-card:focus-within .service-card__content {
  transform: translateY(10%);
}

.service-card:hover .service-card__details,
.service-card:focus-within .service-card__details {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .service-card__media,
.service-card:focus-within .service-card__media {
  transform: scale(1.015);
  filter: saturate(0.92);
}

.process-band {
  background: #102c49 url('../bilder/startseite-hero-dachterasse.webp') center center / cover no-repeat;
  background-blend-mode: multiply;
}

.process-copy h2,
.process-list h3,
.process-list p {
  color: #fff;
}

.process-copy h2 {
  max-width: 22rem;
  font-size: clamp(32px, 3.3vw, 48px);
  letter-spacing: -0.02em;
}

.process-list {
  max-width: 720px;
  justify-self: end;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.process-item:first-child {
  border-top: 0;
}

.process-item span {
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process-item p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.timeline-stage {
  position: relative;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 95, 146, 0.16), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(47, 95, 146, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1420 0%, #0f1a27 100%);
  color: #fff;
  overflow: hidden;
}

.timeline-stage .section-head {
  margin-bottom: 40px;
}

.timeline-stage .section-kicker,
.timeline-stage .section-head h2 {
  color: #fff;
}

.timeline-stage .section-kicker {
  color: rgba(255, 255, 255, 0.66);
}

.timeline-shell {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding: 12px 0 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.timeline-shell::-webkit-scrollbar {
  height: 8px;
}

.timeline-shell::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  gap: 38px;
  min-width: 1400px;
  padding: 26px 28px 18px;
}

.timeline-item {
  position: relative;
  min-width: 0;
  padding-top: 0;
  padding-bottom: 12px;
}

.timeline-item:nth-child(even) {
  padding-top: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 4px solid #112238;
  border-radius: 50%;
  background: #dce9f7;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.06),
    0 0 28px rgba(103, 156, 214, 0.42);
  z-index: 3;
  opacity: 0;
  transform: scale(0.7);
  will-change: transform, opacity;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  opacity: 0;
}

.timeline-year {
  display: inline-block;
  margin-top: 44px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.timeline-item h3,
.timeline-item p {
  color: #fff;
}

.timeline-item h3 {
  max-width: 14ch;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.timeline-item p {
  max-width: 30ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.72;
}

.timeline-shell.is-visible .timeline-item::before {
  animation: timelineDotIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.timeline-shell.is-visible .timeline-item::after {
  animation: timelineStemIn 0.45s ease-out both;
}

.timeline-shell.is-visible .timeline-item:nth-child(1)::before,
.timeline-shell.is-visible .timeline-item:nth-child(1)::after {
  animation-delay: 0.18s;
}

.timeline-shell.is-visible .timeline-item:nth-child(2)::before,
.timeline-shell.is-visible .timeline-item:nth-child(2)::after {
  animation-delay: 0.34s;
}

.timeline-shell.is-visible .timeline-item:nth-child(3)::before,
.timeline-shell.is-visible .timeline-item:nth-child(3)::after {
  animation-delay: 0.5s;
}

.timeline-shell.is-visible .timeline-item:nth-child(4)::before,
.timeline-shell.is-visible .timeline-item:nth-child(4)::after {
  animation-delay: 0.66s;
}

.credentials {
  position: relative;
  margin-top: 0;
}

.credentials-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: credential;
}

.credential {
  counter-increment: credential;
  position: relative;
  min-height: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(18, 22, 29, 0.08);
  background: transparent;
  backdrop-filter: none;
}

.credential::before {
  content: counter(credential, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 0;
  color: rgba(18, 22, 29, 0.08);
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.credential p {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  max-width: 19ch;
  color: var(--text);
  font-size: 19px;
  line-height: 1.52;
}

.credential .service-number {
  position: relative;
  z-index: 1;
}

.profile-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.editorial-list {
  min-width: 0;
  align-self: start;
}

.section-label {
  margin-bottom: 12px;
  color: rgba(18, 22, 29, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.editorial-list ul {
  display: grid;
}

.editorial-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

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

.contact {
  padding-top: calc(var(--space-lg) + 14px);
}

.contact-inline {
  align-self: start;
  padding-top: 0;
}

.contact-mail {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.85vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.contact-inline p {
  max-width: 34rem;
}

.contact-inline__action {
  margin-top: 24px;
}

@keyframes timelineDotIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes timelineStemIn {
  from {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top center;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top center;
  }
}

.site-footer {
  padding: 20px 0 36px;
}

.footer-note {
  padding-bottom: 18px;
  text-align: center;
}

.footer-note p {
   margin: auto;
 max-width: 62rem;
  font-size: 15px;
  color: var(--muted);
}

.footer-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bar p {
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding: calc(var(--space-xl) - 12px) 0 calc(var(--space-lg) + 12px);
}

.legal-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.legal-intro {
  margin-bottom: calc(var(--space-md) + 10px);
}

.legal-intro h1 {
  max-width: 18rem;
}

.legal-intro p {
  max-width: 56rem;
  margin-top: 22px;
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  max-width: none;
  font-size: clamp(22px, 1.7vw, 28px);
  margin-bottom: 12px;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .editorial-split,
  .process-grid,
  .profile-layout,
  .contact-layout,
  .services-grid,
  .credentials-list {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    min-width: 1160px;
    gap: 24px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .timeline-stage {
    padding-bottom: calc(var(--space-lg) - 4px);
  }

  h1,
  h2 {
    max-width: none;
  }

  .header-bar {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .process-list {
    max-width: none;
    justify-self: auto;
  }

  .system-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
    gap: clamp(36px, 5vw, 86px);
    align-items: center;
  }

  .hero-visual {
    display: block;
  }
}

@media (max-width: 720px) {
  .header-bar {
    min-height: 78px;
    gap: 14px;
  }

  .brand-copy span {
    display: none;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .hero-actions,
  .footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    justify-content: space-between;
  }

  .service-card {
    padding: 22px;
  }

  .system-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-mail {
    overflow-wrap: anywhere;
  }

  .timeline-track {
    min-width: 980px;
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .timeline-item {
    padding-top: 0;
  }

  .timeline-item:nth-child(even) {
    padding-top: 18px;
    padding-bottom: 0;
  }

  .timeline-stage {
    padding-bottom: calc(var(--space-lg) - 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .header-cta {
    transition: none;
  }
}
