@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/host-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5ead6;
  --paper-bright: #faf2e0;
  --ink: #111517;
  --red: #d42414;
  --indigo: #08388f;
  --gold: #f8b818;
  /* one unit = one pixel of the 1536 x 1024 design frame */
  --u: min(calc(100vw / 1536), calc(100svh / 1024));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 5.2vw, 5rem);
  --block: clamp(4.5rem, 10vw, 9.5rem);
  --body: clamp(1.125rem, 0.72rem + 0.75vw, 1.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Host Grotesk", sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

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

/* the focus ring takes the colour that reads on the ground it sits on */
:focus-visible { outline: 3px solid var(--ring, var(--ink)); outline-offset: 4px; }
.portrait, .band, .q-kunden, .q-ablaeufe, .q-zahlen, .stance, .process, .footer { --ring: var(--gold); }

.skip {
  position: absolute; left: 0; top: 0; z-index: 10;
  padding: 0.6em 1em; background: var(--ink); color: var(--paper-bright);
  transform: translateY(-110%);
}
.skip:focus { transform: none; }

/* ---------- first viewport ---------- */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(89 * var(--u));
  padding: 0 calc(42 * var(--u)) 0 calc(57 * var(--u));
  background: var(--paper);
}
.wordmark {
  font-size: calc(61 * var(--u)); font-weight: 800; letter-spacing: -0.028em; line-height: 1;
  padding-bottom: calc(13 * var(--u));
}
.nav nav { display: flex; gap: calc(39 * var(--u)); padding-bottom: calc(10 * var(--u)); }
.nav nav a { font-size: max(calc(24 * var(--u)), 13px); font-weight: 600; line-height: 1; letter-spacing: -0.012em; }
.nav nav a:hover, .footer nav a:hover { text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.22em; }

.hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) calc(184 * var(--u));
  height: calc(935 * var(--u));
}

.portrait {
  position: relative; overflow: hidden;
  container-type: size;
  background: var(--paper);
  /* the face plate sets the figure; every plane is placed from its box */
  --face-x: 50.13cqw;
  --face-y: 0cqh;
  --face-h: 100cqh;
  /* how far the black plane has widened, 0 to 1, driven by scroll */
  --p: 0;
  --split: calc(var(--face-x) + 0.194 * var(--face-h));
  --push: calc(var(--p) * (100cqw - var(--split)));
}
.plane { position: absolute; }
.plane-indigo { left: var(--split); right: 0; top: var(--face-y); bottom: 0; background: var(--indigo); }
.plane-black { left: 0; top: 0; bottom: 0; width: calc(var(--split) + var(--push)); background: var(--ink); }
.plane-red {
  left: 0; top: calc(var(--face-y) + 0.572 * var(--face-h)); bottom: 0; width: calc(var(--face-x) + 0.313 * var(--face-h));
  background: var(--red);
  clip-path: polygon(0 0, 100% 39.6%, 100% 100%, 0 100%);
}
.face {
  position: absolute; left: var(--face-x); top: var(--face-y);
  height: var(--face-h); width: calc(var(--face-h) * 540 / 751);
  object-fit: cover;
}
.plane-gold {
  left: calc(var(--face-x) + 0.286 * var(--face-h)); top: calc(var(--face-y) + 0.483 * var(--face-h));
  width: calc(1.348 * var(--face-h)); height: calc(1.348 * var(--face-h)); border-radius: 50%;
  background: var(--gold);
}

.caps { list-style: none; margin: 0; padding: 0; }
.cap {
  position: absolute;
  font-size: max(calc(19 * var(--u)), 10px); font-weight: 700; line-height: 1;
  letter-spacing: 0.29em; text-transform: uppercase;
  color: var(--paper-bright);
}
.cap-kunden { left: 3.71cqw; top: 4.97cqh; }
.cap-zahlen { left: 3.71cqw; top: 92.6cqh; font-size: max(calc(18 * var(--u)), 10px); letter-spacing: 0.245em; }
.cap-ablaeufe { left: calc(var(--face-x) + 0.6005 * var(--face-h)); top: calc(var(--face-y) + 0.0515 * var(--face-h)); font-size: max(calc(20 * var(--u)), 10px); letter-spacing: 0.283em; }
.cap-angebot { left: calc(var(--face-x) + 0.361 * var(--face-h)); top: calc(var(--face-y) + 0.4035 * var(--face-h)); font-size: max(calc(22 * var(--u)), 10px); letter-spacing: 0.224em; color: var(--ink); }
.cap-team { left: calc(var(--face-x) + 0.5975 * var(--face-h)); top: calc(var(--face-y) + 0.699 * var(--face-h)); font-size: max(calc(23 * var(--u)), 10px); letter-spacing: 0.293em; color: var(--ink); }

.headline {
  position: absolute; left: 5.08cqw; top: 11.92cqh; margin: 0;
  font-size: calc(137 * var(--u)); font-weight: 800; line-height: 0.81; letter-spacing: -0.025em; word-spacing: -0.08em;
  color: var(--paper-bright);
}
.sentence {
  position: absolute; left: 5.34cqw; top: 65.9cqh; margin: 0;
  font-size: max(calc(33 * var(--u)), 14px); font-weight: 500; line-height: 1.2;
  color: var(--paper-bright);
}
.cta {
  position: absolute; left: 5.34cqw; top: 79.63cqh;
  display: flex; align-items: center; gap: calc(26 * var(--u));
  width: max(calc(454 * var(--u)), 236px); height: max(calc(73 * var(--u)), 40px);
  padding-left: calc(42 * var(--u));
  background: var(--paper-bright); color: var(--ink);
  font-size: max(calc(32 * var(--u)), 15px); font-weight: 700; line-height: 1; letter-spacing: -0.015em;
}
.cta span { padding-bottom: 0.09em; }
.cta::after {
  content: ""; position: absolute; right: -1px; top: 0; bottom: -1px; width: calc(66 * var(--u) + 1px);
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: width 0.4s var(--ease);
}
.cta:hover::after, .cta:focus-visible::after { width: calc(104 * var(--u)); }
.arrow { width: calc(30 * var(--u)); height: calc(21 * var(--u)); flex: none; transition: transform 0.4s var(--ease); }
a:hover > .arrow, a:hover .svc-title .arrow, a:focus-visible > .arrow { transform: translateX(22%); }

.band {
  display: grid; grid-template-columns: minmax(0, 379fr) minmax(0, 378fr) minmax(0, 389fr) minmax(0, 390fr);
  background: var(--indigo); color: var(--paper-bright);
}
.svc {
  position: relative;
  display: flex; align-items: flex-start; gap: calc(31 * var(--u));
  padding: calc(54 * var(--u)) 0 0 calc(44 * var(--u));
}
.svc:nth-child(1) { padding-left: calc(58 * var(--u)); }
.svc:nth-child(3) { padding-left: calc(36 * var(--u)); gap: calc(24 * var(--u)); }
.svc:nth-child(4) { padding-left: calc(32 * var(--u)); }
.svc + .svc::before {
  content: ""; position: absolute; left: 0; top: calc(42 * var(--u));
  width: max(1px, calc(2 * var(--u))); height: calc(96 * var(--u));
  background: var(--paper-bright);
}
.icon { width: calc(64 * var(--u)); height: calc(64 * var(--u)); flex: none; }
.svc-title { margin-top: calc(4 * var(--u)); font-size: max(calc(29 * var(--u)), 13px); font-weight: 700; line-height: 1.03; letter-spacing: -0.022em; white-space: nowrap; }
.svc-title .arrow { display: inline-block; width: calc(22 * var(--u)); height: calc(17 * var(--u)); margin-left: calc(18 * var(--u)); vertical-align: -0.02em; }
.svc:nth-child(1) .svc-title .arrow { margin-left: calc(31 * var(--u)); }
.svc:nth-child(3) .svc-title { font-size: max(calc(27.5 * var(--u)), 13px); }
.svc:focus-visible { outline-offset: -6px; }

/* ---------- shared section type ---------- */

.display {
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 6rem); font-weight: 800; line-height: 0.96; letter-spacing: -0.026em;
  text-wrap: balance;
}
.lead {
  margin: 0; max-width: 34em;
  font-size: clamp(1.2rem, 0.8rem + 0.85vw, 1.65rem); line-height: 1.38;
}

/* ---------- Haltung ---------- */

.stance {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: clamp(2rem, 4vw, 3.5rem);
  padding: var(--block) var(--gutter);
  background: var(--ink); color: var(--paper-bright);
}
.stance .display { grid-column: 1 / span 9; }
.stance .lead { grid-column: 7 / span 6; }

.q {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: clamp(1rem, 2vw, 2rem); row-gap: clamp(1.25rem, 2.4vw, 2.25rem);
  min-height: 100svh;
  padding: clamp(2rem, 4.6vw, 4.5rem) var(--gutter) clamp(2.5rem, 5.2vw, 5rem);
  --v: 1;
}
@media (min-height: 620px) { .q { position: sticky; top: 0; } }
.q-name {
  grid-column: 1 / -1; margin: 0;
  font-size: clamp(0.8rem, 0.6rem + 0.5vw, 1.2rem); font-weight: 700; line-height: 1; letter-spacing: 0.29em; text-transform: uppercase;
}
.q-ask {
  grid-column: 1 / span 9; grid-row: 3; align-self: end; margin: 0;
  font-size: clamp(2.5rem, 7vw, 7rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.026em;
  text-wrap: balance;
}
.q-text {
  grid-column: 10 / span 3; grid-row: 3; align-self: end; margin: 0 0 0.35em;
  font-size: var(--body); line-height: 1.4;
}
.q-shape { position: absolute; transform: translate(calc((1 - var(--v)) * var(--sx, 0%)), calc((1 - var(--v)) * var(--sy, 0%))); }

.q-shape2 { transform: translate(calc((1 - var(--v)) * var(--tx, 0%)), calc((1 - var(--v)) * var(--ty, 0%))); }

.q-kunden { background: var(--ink); color: var(--paper-bright); }
.q-kunden .q-shape.q-shape2 { right: 46vmin; top: 0; width: 26vmin; height: 13vmin; background: var(--paper-bright); border-radius: 0 0 13vmin 13vmin; --tx: 0%; --ty: -100%; }
.q-kunden .q-shape { right: 0; top: 0; width: 46vmin; height: 46vmin; background: var(--red); border-radius: 0 0 0 100%; --sx: 100%; }
.q-ablaeufe { background: var(--indigo); color: var(--paper-bright); }
.q-ablaeufe .q-shape { right: -22vmin; top: -34vmin; width: 84vmin; height: 84vmin; background: var(--gold); border-radius: 50%; --sy: -70%; }
.q-ablaeufe .q-shape.q-shape2 { right: 62vmin; top: 0; width: 18vmin; height: 34vmin; border-radius: 0; background: var(--red); --tx: 0%; --ty: -100%; }
.q-angebot { background: var(--paper); color: var(--ink); }
.q-angebot .q-shape.q-shape2 { right: calc(var(--gutter) + 44vmin); top: 0; width: 22vmin; height: 22vmin; border-radius: 0; background: var(--indigo); --tx: 0%; --ty: -100%; }
.q-angebot .q-shape { right: var(--gutter); top: 0; width: 44vmin; height: 22vmin; background: var(--red); border-radius: 0 0 22vmin 22vmin; --sy: -100%; }
.q-team { background: var(--gold); color: var(--ink); }
.q-team .q-shape { right: 0; top: 0; width: 30vmin; height: 52vmin; background: var(--indigo); --sx: 100%; }
.q-team .q-shape.q-shape2 { right: 18vmin; top: 30vmin; width: 24vmin; height: 24vmin; border-radius: 50%; background: var(--paper-bright); --tx: 220%; --ty: 0%; }
.q-zahlen { background: var(--red); color: var(--paper-bright); }
.q-zahlen .q-shape.q-shape2 { right: 34vmin; top: 6vmin; width: 15vmin; height: 15vmin; border-radius: 50%; clip-path: none; background: var(--gold); --tx: 0%; --ty: -160%; }
.q-zahlen .q-shape { right: 0; top: 0; width: 50vmin; height: 50vmin; background: var(--ink); clip-path: polygon(100% 0, 100% 100%, 0 0); --sx: 100%; }

/* ---------- Leistungen ---------- */

.services { padding: var(--block) var(--gutter); background: var(--paper); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(3.5rem, 8vw, 7.5rem);
}
.section-head .display { grid-column: 1 / span 7; }
.section-head .lead { grid-column: 8 / span 5; align-self: end; }

.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); align-items: start;
  scroll-margin-top: 2rem;
}
.service + .service { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.mark { grid-column: 1 / span 2; width: clamp(4rem, 8.6vw, 8.25rem); transition: transform 0.9s var(--ease); }
.mark-quarter { aspect-ratio: 1; background: var(--ink); border-radius: 100% 0 0 0; }
.mark-square { aspect-ratio: 1; background: var(--indigo); }
.mark-half { aspect-ratio: 2 / 1; background: var(--red); border-radius: 0 0 999px 999px; }
.mark-arch { aspect-ratio: 1 / 1.08; background: var(--gold); border-radius: 999px 999px 0 0; }
.service h3 {
  grid-column: 3 / span 5; margin: -0.08em 0 0;
  font-size: clamp(1.9rem, 3.6vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.024em;
  text-wrap: balance;
}
.service-body { grid-column: 8 / span 5; font-size: var(--body); line-height: 1.42; }
.service-body p { margin: 0; }
.service-body .typical { margin-top: 1em; }
.typical strong { font-weight: 800; }

/* ---------- Ablauf ---------- */

.process {
  position: relative; overflow: hidden;
  padding: var(--block) var(--gutter) calc(var(--block) + clamp(4rem, 13vw, 12rem));
  background: var(--ink); color: var(--paper-bright);
  --v: 1;
}
.process-plane {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(4rem, 13vw, 12rem);
  background: var(--red);
  clip-path: polygon(0 100%, 100% calc(100% - var(--v) * 100%), 100% 100%);
}
.steps {
  list-style: none; margin: clamp(3.5rem, 8vw, 7.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
}
.step-no { display: block; font-size: clamp(4.5rem, 9.5vw, 9.5rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.02em; color: var(--gold); }
.steps h3 { margin: 0.55em 0 0.35em; font-size: clamp(1.5rem, 2.3vw, 2.3rem); font-weight: 800; line-height: 1; letter-spacing: -0.022em; }
.steps p { margin: 0; max-width: 22em; font-size: var(--body); line-height: 1.4; }

/* ---------- Kontakt ---------- */

.contact {
  position: relative; overflow: hidden;
  display: grid; align-items: center;
  min-height: min(100svh, 62rem);
  padding: var(--block) var(--gutter);
  background: var(--gold); color: var(--ink);
}
.contact-copy { position: relative; max-width: 56%; }
.contact .lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.contact-figure {
  position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
  container-type: size;
  --face-x: 8cqw; --face-h: 100cqh;
}
.contact-hair { position: absolute; left: calc(var(--face-x) + 0.194 * var(--face-h)); right: 0; top: 0; height: calc(0.7 * var(--face-h)); background: var(--indigo); }
.contact-face { position: absolute; left: var(--face-x); top: 0; height: var(--face-h); width: calc(var(--face-h) * 540 / 751); }
.contact-figure::after {
  content: ""; position: absolute;
  left: calc(var(--face-x) + 0.286 * var(--face-h)); top: calc(0.483 * var(--face-h));
  width: calc(1.348 * var(--face-h)); height: calc(1.348 * var(--face-h)); border-radius: 50%;
  background: var(--gold);
}
.slab {
  position: relative; display: inline-flex; align-items: center; gap: 1.1em;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: 0.62em 3.4em 0.7em 1.1em;
  background: var(--ink); color: var(--paper-bright);
  font-size: clamp(1.25rem, 2.5vw, 2.3rem); font-weight: 700; line-height: 1;
}
.slab::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1.9em;
  background: var(--red);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: width 0.4s var(--ease);
}
.slab:hover::after, .slab:focus-visible::after { width: 2.9em; }
.slab .arrow { width: 1em; height: 0.72em; }

/* ---------- Fusszeile ---------- */

.footer {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2.5rem;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  background: var(--ink); color: var(--paper-bright);
  font-size: clamp(1rem, 0.85rem + 0.4vw, 1.2rem);
}
.footer .wordmark { font-size: clamp(1.6rem, 2.6vw, 2.4rem); padding: 0; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.75rem; font-weight: 600; }

/* ---------- motion ----------
   The .motion class is set by site.js and only when the visitor has not asked
   for reduced motion. Without it the page is the composed still. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The portrait holds still while its black plane, the one named Kunden, widens
   to the full width and pushes the figure out. That black field is the ground
   of the first question, which follows it. */
.motion .hero-pin { background: var(--ink); }
.motion .hero { position: sticky; top: 0; }
.motion .plane-indigo, .motion .face, .motion .plane-gold,
.motion .cap-ablaeufe, .motion .cap-angebot, .motion .cap-team {
  transform: translateX(var(--push));
}
.motion .plane-red, .motion .sentence, .motion .cta, .motion .cap-zahlen {
  transform: translate(var(--push), calc(var(--p) * 46cqh));
}

/* the marks of the four services slide in from the page edge, once */
.motion .service:not(.seen) .mark { transform: translateX(calc(-100% - var(--gutter))); }

/* ---------- narrow and upright screens ----------
   The figure moves below the headline and is shown whole. One unit (--m) is
   one pixel of a 390 x 844 screen. */

@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  :root { --m: min(calc(100vw / 390), calc(100svh / 844)); }

  .nav { height: calc(60 * var(--m)); padding: 0 calc(20 * var(--m)); }
  .nav .wordmark { font-size: calc(32 * var(--m)); padding-bottom: calc(3 * var(--m)); }
  .nav nav { gap: calc(18 * var(--m)); padding-bottom: calc(2 * var(--m)); }
  .nav nav a { font-size: max(calc(17 * var(--m)), 15px); }


  .hero { display: block; height: auto; }
  .portrait {
    height: max(calc(100svh - 60 * var(--m)), calc(700 * var(--m)));
    --face-y: calc(330 * var(--m));
    --face-h: calc(100cqh - 330 * var(--m));
    --face-x: 9cqw;
  }
  .plane-black {
    width: 100cqw;
    clip-path: polygon(0 0, 100% 0, 100% var(--face-y), calc(var(--split) + var(--push)) var(--face-y), calc(var(--split) + var(--push)) 100%, 0 100%);
  }
  .headline { left: calc(20 * var(--m)); top: calc(20 * var(--m)); font-size: calc(62 * var(--m)); line-height: 0.82; }
  .sentence { left: calc(20 * var(--m)); top: calc(184 * var(--m)); font-size: max(calc(17.5 * var(--m)), 14px); line-height: 1.3; }
  .cta {
    left: calc(20 * var(--m)); top: calc(252 * var(--m));
    width: max(calc(270 * var(--m)), 226px); height: max(calc(52 * var(--m)), 44px);
    padding-left: calc(20 * var(--m)); gap: calc(16 * var(--m));
    font-size: max(calc(19 * var(--m)), 16px);
  }
  .cta::after { width: calc(46 * var(--m) + 1px); }
  .cta:hover::after, .cta:focus-visible::after { width: calc(66 * var(--m)); }
  .arrow { width: calc(24 * var(--m)); height: calc(17 * var(--m)); }

  .cap, .cap-zahlen, .cap-ablaeufe, .cap-angebot, .cap-team { font-size: max(calc(10.5 * var(--m)), 10px); letter-spacing: 0.26em; }
  .cap-kunden { left: calc(20 * var(--m)); top: calc(var(--face-y) + 14 * var(--m)); }
  .cap-zahlen { left: calc(20 * var(--m)); top: calc(100cqh - 30 * var(--m)); }

  .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: calc(8 * var(--m)) 0 calc(16 * var(--m)); }
  .svc, .svc:nth-child(1), .svc:nth-child(3), .svc:nth-child(4) {
    flex-direction: column; gap: calc(12 * var(--m));
    padding: calc(22 * var(--m)) calc(12 * var(--m)) calc(14 * var(--m)) calc(20 * var(--m));
  }
  .svc:nth-child(odd)::before { content: none; }
  .svc + .svc::before { top: calc(22 * var(--m)); height: calc(100% - 36 * var(--m)); width: 1px; }
  .icon { width: calc(40 * var(--m)); height: calc(40 * var(--m)); }
  .svc-title, .svc:nth-child(3) .svc-title { margin-top: 0; font-size: max(calc(17 * var(--m)), 15px); }
  .svc-title .arrow, .svc:nth-child(1) .svc-title .arrow { width: calc(16 * var(--m)); height: calc(12 * var(--m)); margin-left: calc(8 * var(--m)); }

  /* here the sentence and the button sit on the black plane and stay with it */
  .motion .sentence, .motion .cta { transform: none; }
}

/* very low landscape screens: the lowest caption would run into the button */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .cap-zahlen { display: none; }
}

/* below this width the wordmark and four links no longer fit on one line,
   so the header keeps the one link that leads to the action */
@media (max-width: 520px) {
  .nav nav a:not(:last-child) { display: none; }
}

@media (max-width: 760px) {
  .stance .display, .stance .lead, .section-head .display, .section-head .lead { grid-column: 1 / -1; }

  .q { grid-template-rows: auto 1fr auto auto; }
  .q-ablaeufe .q-shape.q-shape2 { right: 52vmin; width: 12vmin; height: 26vmin; }
  .q-angebot .q-shape.q-shape2 { width: 18vmin; height: 18vmin; }
  .q-ask { grid-column: 1 / -1; }
  .q-text { grid-column: 1 / -1; grid-row: 4; margin: 0; max-width: 30em; }

  .service { display: block; }
  .service h3 { margin-top: 1.1rem; }
  .service-body { margin-top: 0.8rem; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }

  .contact { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .contact-copy { max-width: none; }
  .contact-figure {
    position: relative; order: 2; overflow: hidden; width: auto; height: 92vw;
    margin: 3.5rem calc(-1 * var(--gutter)) 0;
    --face-x: 26cqw;
  }
  .contact-figure::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: calc(var(--face-x) + 0.313 * var(--face-h));
    background: var(--ink);
  }
  .contact-face { z-index: 1; }
  .contact-figure::after { z-index: 2; }

  .footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Impressum und Datenschutz ---------- */

/* short pages: the footer still closes the screen */
body:has(> .legal) { display: flex; flex-direction: column; min-height: 100svh; }
.legal { flex: 1 0 auto; width: 100%; max-width: 46rem; padding: clamp(3rem, 7vw, 6rem) var(--gutter) var(--block); font-size: var(--body); line-height: 1.5; }
.legal h1 { margin: 0 0 0.6em; font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.026em; }
.legal h2 { margin: 2.2em 0 0.4em; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal a { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
