@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("/assets/fonts/archivo-narrow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #4e85c5;
  --brand-deep: #2a5a93;
  --ink: #16283d;
  --muted: #5a6e85;
  --line: #d2dce7;
  --tint: #edf2f8;
  --wrap: 1120px;
  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Archivo Narrow", "Archivo", "Segoe UI", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Sanftes Scrollen bleibt auch bei reduzierter Bewegung aktiv. Es ist
   Navigation, keine Dekoration, und dauert rund eine halbe Sekunde. Wer
   das strikt nach Systemeinstellung abschalten will, setzt hier wieder
   @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
   ein. Die Auftritts- und Scrollanimationen bleiben unabhaengig davon
   bei reduzierter Bewegung aus. */

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  font-synthesis-weight: none;
}

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

a { color: var(--brand-deep); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfzeile ---------- */
.top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
@media (min-width: 700px) {
  .top { position: sticky; top: 0; z-index: 10; }
  .top::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    background: var(--brand);
    animation: dc-scrollfortschritt linear;
    animation-timeline: scroll(root block);
  }
  @keyframes dc-scrollfortschritt {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .top::after { display: none; }
}
.top__row {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  min-height: 76px;
  flex-wrap: wrap;
}
.top__logo { display: block; }
.top__logo img { display: block; width: 168px; }

.nav { width: 100%; overflow-x: auto; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: flex;
  gap: 20px;
  white-space: nowrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
}
.nav a:hover { color: var(--brand-deep); }

.top__aside { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top__phone {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.top__phone:hover { color: var(--brand-deep); }

@media (max-width: 560px) { .top__phone { display: none; } }

@media (min-width: 1080px) {
  .top__row { flex-wrap: nowrap; }
  .top__logo { order: 1; margin-right: 12px; }
  .nav { order: 2; width: auto; overflow: visible; }
  .nav ul { padding: 0; gap: 22px; }
  .top__aside { order: 3; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 20px;
  border-radius: 3px;
  border: 1px solid var(--brand-deep);
  background: var(--brand-deep);
  color: #fff;
  text-decoration: none;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: #fff; color: var(--brand-deep); }
.btn--ghost:hover { background: var(--tint); color: var(--ink); }
.btn--small { padding: 10px 15px; font-size: .95rem; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 {
  font-size: clamp(2.2rem, 4.7vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
p { margin: 1rem 0 0; }
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 68px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(78, 133, 197, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78, 133, 197, .16) 1px, transparent 1px),
    linear-gradient(to right, rgba(78, 133, 197, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78, 133, 197, .30) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__grid { position: relative; }
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.hero p { max-width: 56ch; }
@media (min-width: 900px) {
  .hero { padding: 92px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); gap: 64px; }
}

.direct {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  padding: 22px 24px 24px;
}
.direct h2 { font-size: 1.3rem; letter-spacing: 0; }
.direct__person {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.direct__person + .direct__person { margin-top: 0; }
.direct__who { font-weight: 600; }
.direct__who span { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }
.direct__num {
  font-family: var(--display);
  font-size: 1.35rem;
  white-space: nowrap;
  text-decoration: none;
}
.direct__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted);
}
.direct__note a { color: var(--brand-deep); }

/* ---------- Abschnitte ---------- */
.sec { padding: 66px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.sec:first-child { border-top: 0; }
.sec--tint { background: var(--tint); border-top: 0; }
.sec--plain { border-top: 0; }
.sec__grid { display: grid; gap: 32px; }
.sec__grid > .sec__head h2 + p { margin-top: 14px; }
@media (min-width: 700px) {
  .sec { scroll-margin-top: 96px; }
}
@media (min-width: 900px) {
  .sec { padding: 82px 0; }
  .sec__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 56px; }
  .sec__head { position: sticky; top: 26px; }
  .sec__head p { max-width: 34ch; }
}

.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 0 48px; }
.row { padding: 17px 0 19px; border-top: 1px solid var(--line); }
.row p { margin: .3rem 0 0; color: var(--muted); font-size: .98rem; }
.row ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.row li {
  position: relative;
  padding-left: 15px;
  margin: .22rem 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.45;
}
.row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }

.cases > article { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.cases > article:first-child { border-top: 0; padding-top: 0; }
.cases h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.cases dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; }
.cases dt { font-weight: 600; font-size: .93rem; color: var(--muted); }
.cases dd { margin: 0; font-size: .98rem; }

.people { display: grid; gap: 34px; }
@media (min-width: 1280px) { .people { grid-template-columns: 1fr 1fr; gap: 44px; } }
.people h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.people .role { color: var(--muted); font-size: .96rem; margin-top: .1rem; }

.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  padding: 18px 22px;
  background: #fff;
}
.note p:first-child { margin-top: 0; }

.plain-list { padding-left: 1.15em; }
.plain-list li { margin: .4rem 0; }

/* ---------- Dunkler Abschnitt ---------- */
.sec--dark {
  background: var(--ink);
  color: #dbe4f0;
  border-top: 0;
}
.sec--dark h2 { color: #fff; }
.sec--dark .sec__head p { color: #9fb2c9; }
.sec--dark .plain-list li { margin: .62rem 0; }
.sec--dark .plain-list li::marker { color: var(--brand); }
.sec--dark a { color: #fff; }

/* ---------- Fußzeile ---------- */
.foot {
  background: var(--ink);
  color: #cdd8e6;
  padding: 54px 0 40px;
  font-size: .97rem;
}
.foot__grid { display: grid; gap: 30px; }
@media (min-width: 780px) { .foot__grid { grid-template-columns: 1.3fr 1fr; gap: 52px; } }
.foot h2 { font-size: 1.15rem; color: #fff; }
.foot a { color: #fff; }
.foot a:hover { color: var(--brand); }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; }
.foot li { margin: .42rem 0; }
.foot address { font-style: normal; margin-top: 12px; }
.foot__bar {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #2c4462;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .92rem;
}

/* ---------- Bewegung ---------- */
/* Zwei Effekte. Der Hero baut sich beim Laden gestaffelt auf, die Inhalts-
   bloecke steigen beim Scrollen ein. Beides ohne JavaScript. Die Scroll-
   variante laeuft ueber animation-timeline: view() und ist in @supports
   gekapselt, damit Inhalte in aelteren Browsern schlicht sofort sichtbar
   sind statt unsichtbar zu bleiben. */

@keyframes dc-auftritt {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lead,
  .hero .btnrow,
  .hero .small,
  .hero .direct {
    animation: dc-auftritt .62s cubic-bezier(.22, .68, .32, 1) both;
  }
  .hero h1 { animation-delay: .04s; }
  .hero .lead { animation-delay: .13s; }
  .hero .btnrow { animation-delay: .22s; }
  .hero .small { animation-delay: .29s; }
  .hero .direct { animation-delay: .18s; }
  .hero::before { animation: dc-auftritt 1.1s ease-out both; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec__head,
    .row,
    .note,
    .cases article,
    .people > div,
    .sec--dark .plain-list li,
    .row ul {
      animation: dc-auftritt linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 46%;
    }
    /* leichte Staffelung, zweite Spalte und jede zweite Zeile folgen spaeter */
    .rows > .row:nth-child(2n) { animation-range: entry 12% entry 52%; }
    .sec--dark .plain-list li:nth-child(2n) { animation-range: entry 12% entry 54%; }
    .sec--dark .plain-list li:nth-child(3n) { animation-range: entry 15% entry 58%; }
  }
}

/* ---------- Textseiten ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.15em; }
.prose li { margin: .4rem 0; }
.prose dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 1.2rem 0 0; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }
@media (max-width: 520px) {
  .prose dl, .cases dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prose dd, .cases dd { margin-bottom: .7rem; }
}

.pagehead { padding: 52px 0 8px; }
.pagehead .lead { margin-top: 18px; }
@media (min-width: 900px) { .pagehead { padding: 72px 0 10px; } }

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