
:root {
  --color-black: #0b0b0b;
  --color-text: #232323;
  --color-muted: #666666;
  --color-light: #f7f7f5;
  --color-border: #d7d3ca;
  --color-accent: #dec568;
  --max-content: 1160px;
  --gutter: clamp(22px, 6vw, 64px);
  --header-height: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: #fff;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-black);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover, a:focus-visible { color: #7a6415; }

.site-header {
  background: #fff;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 10px rgba(0,0,0,.03);
}

.header-inner {
  width: min(var(--max-content), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo { width: clamp(235px, 23vw, 312px); height: auto; }

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  color: #000;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--color-black);
  margin: 7px 0;
}

.hero {
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.hero img {
  width: 100%;
  height: clamp(360px, 30vw, 430px);
  object-fit: cover;
}
.hero-start img { object-position: 50% 47%; }
.hero-leistungen img { object-position: 50% 53%; }
.hero-referenzen img { object-position: 43% 52%; }
.hero-flowgraphy img { object-position: 50% 48%; }
.hero-kontakt img { object-position: 50% 50%; }

.container {
  width: min(var(--max-content), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.page-section {
  scroll-margin-top: calc(var(--header-height) + 18px);
}
.onepager .page-section + .page-section {
  border-top: 1px solid #ece8df;
}
.onepager .page-section-profile {
  background: #fff;
}


.main-content {
  padding: clamp(54px, 7vw, 78px) 0 clamp(80px, 10vw, 120px);
}

.home-content { padding-top: clamp(54px, 6vw, 70px); }

.text-narrow { max-width: 680px; }
.text-medium { max-width: 920px; }
.text-wide { max-width: 1080px; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(28px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

h3 {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 8px;
}

.eyebrow {
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-black);
}

.lead {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.28;
  margin-bottom: 22px;
  color: var(--color-text);
}

p { margin-bottom: 1.25em; }

.button-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 2px solid var(--color-black);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  color: var(--color-black);
  background: #fff;
}
.btn-primary { background: var(--color-black); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #333; color: #fff; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--color-light); color: var(--color-black); }

.service-list { max-width: 1000px; }
.service-item { margin-bottom: 28px; }
.service-item p { margin-bottom: 0; }
.service-link { display: inline-block; margin-top: 4px; font-weight: 600; }

.profile-header {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 290px) 1fr;
  align-items: center;
  gap: 42px;
  margin-bottom: 62px;
}
.profile-name, .profile-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.profile-title { justify-self: start; }
.profile-portrait {
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  border: 6px solid #fff;
  width: 100%;
}
.profile-text { max-width: 1120px; }

.reference-list {
  margin-top: 58px;
  max-width: 1060px;
  font-size: 20px;
  line-height: 1.45;
}

.flow-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: clamp(62px, 8vw, 110px);
  align-items: start;
}
.flow-grid .lead { max-width: 600px; }
.flow-side h2 { margin-top: 40px; }
.big-link {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
}

.contact-grid {
  grid-template-columns: minmax(240px, .75fr) minmax(360px, 1fr);
}
.contact-card {
  font-size: 20px;
  line-height: 1.6;
}
.contact-card a { color: var(--color-text); }

.legal-content {
  max-width: 860px;
}
.legal-content h1 { font-weight: 500; }
.legal-content h2 { font-size: 26px; margin-top: 42px; }

.site-footer {
  border-top: 1px solid #ece8df;
  padding: 28px 0;
  color: var(--color-muted);
  font-size: 15px;
}
.footer-inner {
  width: min(var(--max-content), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--color-muted); }

@media (max-width: 1023px) {
  :root { --header-height: 88px; }
  .main-nav ul { gap: 22px; }
  .main-nav a { font-size: 16px; }
  .logo { width: 245px; }
}

@media (max-width: 767px) {
  body { font-size: 17px; line-height: 1.5; }
  :root { --gutter: 22px; --header-height: 104px; }
  .site-header { min-height: var(--header-height); }
  .header-inner {
    width: min(100%, 390px);
    padding: 0 22px;
    justify-content: center;
    position: relative;
  }
  .logo { width: min(230px, 60vw); }
  .menu-toggle {
    display: block;
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
  }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 14px 22px 18px;
    display: grid;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
  }
  .main-nav a[aria-current="page"] {
    border-bottom: 0;
    color: #7a6415;
  }

  .hero {
    width: min(100%, 390px);
    padding: 0 22px;
    margin: 22px auto 0;
    overflow: visible;
  }
  .hero img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }
  .hero-start img, .hero-leistungen img, .hero-referenzen img, .hero-flowgraphy img, .hero-kontakt img { object-position: center; }

  .container {
    width: min(100%, 390px);
    padding: 0 22px;
  }
  .main-content { padding: 36px 0 70px; }
  .home-content { padding-top: 34px; }
  h1 { font-size: 32px; line-height: 1.14; margin-bottom: 20px; }
  h2 { font-size: 26px; line-height: 1.2; margin-bottom: 24px; }
  h3 { font-size: 21px; }
  .lead { font-size: 20px; line-height: 1.32; }
  .button-row { gap: 16px; margin-top: 28px; }
  .btn { min-height: 36px; font-size: 15px; padding: 8px 12px; }

  .profile-header {
    display: block;
    margin-bottom: 36px;
  }
  .profile-portrait {
    width: min(100%, 310px);
    margin: 18px 0 20px;
  }
  .profile-name, .profile-title { font-size: 22px; }
  .reference-list { font-size: 18px; margin-top: 40px; }
  .flow-grid, .contact-grid { display: block; }
  .flow-side { margin-top: 42px; }
  .flow-side h2 { margin-top: 0; }
  .contact-card { font-size: 18px; margin-top: 34px; }
  .footer-inner { display: block; width: min(100%, 390px); padding: 0 22px; }
  .footer-links { margin-top: 12px; }
}
