:root {
  color-scheme: dark;
  --background: #080e19;
  --text: #eef2f8;
  --silver: #aab8cd;
  --line: #273449;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.65 var(--sans);
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 1px solid #b9d1f7;
  outline-offset: 6px;
}

.wrap {
  width: min(100% - 8rem, 82rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--text);
  color: var(--background);
}

.skip-link:not(:focus) { transform: translateY(-200%); }

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  background: var(--background);
}

.header-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; flex: 0 0 auto; width: 6.4rem; }

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem clamp(.8rem, 3.3vw, 3.3rem);
}

nav a {
  padding-block: .6rem;
  color: var(--silver);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s ease;
}

nav a:hover { color: var(--text); }

.brand-intro { background: #eef0f3; }

.intro-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 5rem 1.25rem;
  background: #eef0f3;
}

.intro-brand {
  width: min(77vw, 42rem);
  text-align: center;
  mix-blend-mode: darken;
}

.intro-brand img { width: 100%; }
.intro-brand h1 { margin-top: 0; }

h1 {
  margin-top: clamp(.65rem, 2vw, 1.4rem);
  color: #102650;
  font-size: clamp(.9rem, 2.2vw, 1.65rem);
  font-weight: 300;
  letter-spacing: .23em;
  line-height: 1.45;
}

h2, h3 {
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.scroll-indicator {
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom));
  left: 50%;
  width: 1px;
  height: 2rem;
  background: #10265036;
}

.scroll-indicator::after {
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: #102650;
  content: "";
}

.scroll-intro .brand-intro { min-height: 158svh; }

.scroll-intro .intro-stage {
  position: sticky;
  top: 0;
}

.scroll-intro .intro-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #0b1321;
  opacity: var(--intro-shade, 0);
  pointer-events: none;
  content: "";
}

.scroll-intro .intro-brand {
  opacity: var(--brand-opacity, 1);
  transform: scale(var(--brand-scale, 1));
}

.scroll-intro .scroll-indicator {
  opacity: var(--indicator-opacity, 1);
}

.scroll-intro .scroll-indicator::after {
  animation: scroll-pulse 2.6s ease-in-out 3;
}

@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(105%); opacity: 1; }
}

.scroll-intro .site-header {
  opacity: var(--nav-opacity, 0);
  visibility: var(--nav-visibility, hidden);
  background: rgb(8 14 25 / var(--nav-background, 0));
}

.scroll-intro .site-header:focus-within {
  opacity: 1;
  visibility: visible;
}

.scroll-intro .about-inner {
  opacity: var(--about-opacity, 1);
  transform: translateY(var(--about-offset, 0px));
}

main section[id] { scroll-margin-top: 6rem; }

h2 { font-size: clamp(3rem, 6vw, 6rem); }

.about h2, .competencies h2, .contact h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}

.about, .contact { background: #0b1321; }

.about-inner, .contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.about p {
  max-width: 42ch;
  color: var(--silver);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 300;
}

.competencies { padding-block: clamp(4.5rem, 10vw, 9rem); }

.competency-grid {
  margin-top: clamp(2rem, 5vw, 4.25rem);
  border-bottom: 1px solid var(--line);
}

.competency-grid article {
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  align-items: baseline;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(1.6rem, 3vw, 2.65rem);
  border-top: 1px solid var(--line);
}

h3 {
  font-size: clamp(1.55rem, 2.9vw, 2.6rem);
  overflow-wrap: anywhere;
}

.competency-grid h3 {
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  letter-spacing: -.025em;
  line-height: 1.25;
}

.competency-grid p { max-width: 51ch; color: var(--silver); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2rem;
}

.contact-grid div {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

dt { margin-bottom: .35rem; color: var(--text); }
dd { color: var(--silver); overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.footer-inner .brand { width: 5rem; }

.legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem 1.5rem;
  padding-top: .35rem;
  font-size: .875rem;
}

summary { cursor: pointer; }
summary:hover { text-decoration: underline; }
details p { margin-top: .35rem; color: var(--silver); }
small { padding-top: .35rem; color: var(--silver); font-size: .8125rem; }

@media (max-width: 64rem) {
  .wrap { width: calc(100% - 4rem); }
}

@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.75rem; }
  .header-inner .brand { width: 4.7rem; }
  nav a { font-size: .875rem; }
  .intro-brand { width: min(90vw, 30.5rem); }
  main section[id] { scroll-margin-top: 4.75rem; }
  .about-inner, .contact-inner, .competency-grid article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-grid { margin-top: 1rem; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .legal { justify-content: flex-end; }
  small { grid-column: 1 / -1; }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .45rem; }
  .header-inner .brand { width: 4rem; }
  nav { column-gap: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Unternehmensprofil und Leistungsbereiche */
.about-inner { display: block; }
.about-copy p { max-width: 62ch; }
.about-copy p + p { margin-top: 1.1rem; }
.about h2, .competencies h2 {
  font-size: clamp(2.45rem, 4.25vw, 4.4rem);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -.045em;
}
.about h2 { margin-bottom: 1.75rem; }
.about .section-caption, .competencies .section-caption {
  margin-bottom: 1.1rem;
  color: #adbed4;
  font-size: .8rem;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: .16em;
}
.competencies-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
}
.competencies-intro p { color: var(--silver); max-width: 50ch; overflow-wrap: break-word; }
.competency-grid article { grid-template-columns: 1fr 1fr; align-items: center; }
.competency-heading .section-caption span { color: #e1e9f4; font-variant-numeric: tabular-nums; }
.competency-grid h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
@media (hover:hover) {
  .competency-grid article:hover { border-top-color: #74879f; }
}
@media (prefers-reduced-motion:no-preference) {
  html:has(#ueber-uns:target, #kompetenzen:target) { scroll-behavior: smooth; }
  .competency-grid article { transition: border-color .25s ease; }
  @supports (animation-timeline: view()) {
    .competency-grid article, .competencies-intro {
      animation: profile-entry linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }
    @keyframes profile-entry { from { opacity: .3; transform: translateY(.9rem); } }
  }
}
@media (max-width: 47rem) {
  .competencies-intro, .competency-grid article { grid-template-columns: 1fr; gap: 1.15rem; }
  .competency-heading .section-caption { margin-bottom: .5rem; }
}

/* Helle Wiedergabe der Wortbildmarke auf dunklen Navigationsflächen. */
.brand img {
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}
