:root {
  --bg: #f2f0eb;
  --ink: #1d1d1b;
  --footer: #000000;
  --cream: #f2f0eb;
  --muted: #878787;
  --font-text: "Helvetica Neue Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue Condensed Bold", "Helvetica Neue Condensed", "Helvetica Neue", "Arial Nova Cond", "Arial Narrow", sans-serif;
  --pad: 24px;
  --measure: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.icon {
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon use {
  fill: currentColor;
}

header {
  padding-top: 24px;
}

.bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  margin: 0;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 54px;
}

.location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.location-sep {
  display: none;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 28px;
  padding-bottom: 56px;
}

.portrait {
  position: relative;
  order: -1;
  margin: 0;
  container-type: inline-size;
  container-name: portrait;
  /* Platz für den Mail-Button, der unter dem Bild hängt (39.2 / 341.7 der Bildbreite) */
  padding-bottom: 11.473%;
}

.portrait picture {
  display: block;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 342 / 520;
  object-fit: cover;
  object-position: center 18%;
}

.photo-actions {
  position: absolute;
  /* Rechte Kante 9.3 pt über dem Bildrand, untere Kante am Ende des Überstands */
  right: -2.732%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3.512cqi;
}

.photo-actions a {
  display: grid;
  place-items: center;
  width: 20.587cqi;
  height: 20.587cqi;
  border-radius: 50%;
  background: var(--footer);
  color: #fff;
  text-decoration: none;
}

.photo-actions .icon {
  width: 86%;
  height: 86%;
}

.copy {
  min-width: 0;
  container-type: inline-size;
  container-name: copy;
}

.lead {
  margin: 0;
  max-width: 38em;
  font-size: 14px;
  line-height: 1.5;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 36px;
}

.service {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 12px;
  align-items: center;
}

.service-label {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 1 / -1;
  width: fit-content;
  max-width: calc(100% + var(--pad));
  margin-left: calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.service-label .icon {
  width: 40px;
  height: 40px;
}

.service-label h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-copy {
  grid-column: 2;
}

.service-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.service-copy p + p {
  margin-top: 0.95em;
}

footer {
  background: var(--footer);
  color: var(--cream);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding-top: 28px;
  padding-bottom: 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: start;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
}

.contact .icon {
  width: 22px;
  height: 22px;
}

address {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-stretch: condensed;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: right;
}

.legal {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

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

.contact a,
.photo-actions a,
.legal a,
.logo a,
.prose a {
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact a:hover,
.photo-actions a:hover,
.legal a:hover,
.logo a:hover {
  opacity: 0.72;
}

.photo-actions a:hover {
  transform: translateY(-3px);
}

@media (min-width: 860px) {
  :root {
    --pad: clamp(40px, 8.8vw, 127px);
  }

  body {
    font-size: 20px;
    line-height: 1.25;
  }

  header {
    padding-top: 62px;
  }

  .logo img {
    height: 112px;
  }

  .location {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7em;
    margin-top: 14px;
    font-size: 18.6px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .location-sep {
    display: inline;
  }

  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(180px, min(402px, 38%));
    column-gap: clamp(28px, 4vw, 88px);
    align-items: start;
    padding-top: 92px;
    padding-bottom: 108px;
  }

  .portrait,
  .portrait picture,
  .portrait img {
    min-width: 0;
    max-width: 100%;
  }

  .portrait {
    order: 0;
    padding-bottom: 0;
  }

  .portrait img {
    width: 100%;
    aspect-ratio: 402 / 703;
    object-position: center center;
  }

  .photo-actions {
    display: none;
  }

  .lead {
    font-size: 20px;
    line-height: 1.25;
  }

  .services {
    display: grid;
    grid-template-columns: max-content minmax(10.5rem, 1fr);
    column-gap: clamp(28px, 5cqi, 80px);
    row-gap: 58px;
    margin-top: 88px;
  }

  .service {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: start;
  }

  .service-label {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.4cqi, 22px);
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--ink);
  }

  .service-label .icon {
    width: clamp(36px, 8cqi, 56px);
    height: clamp(36px, 8cqi, 56px);
  }

  .service-label h2 {
    font-size: clamp(20px, 5.4cqi, 35px);
    letter-spacing: 0.12em;
  }

  .service-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-top: clamp(8px, 2cqi, 18px);
    padding-left: clamp(18px, 3cqi, 40px);
  }

  .service-copy p {
    font-size: clamp(16px, 2.8cqi, 20px);
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  @container copy (max-width: 540px) {
    .services {
      grid-template-columns: minmax(0, 1fr);
    }

    .service {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 12px;
    }

    .service-copy {
      grid-column: 1;
      grid-row: 2;
      padding-top: 2px;
      padding-left: 0;
    }
  }

  .service-copy p + p {
    margin-top: 1.15em;
  }

  .footer-inner {
    min-height: 262px;
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .contact {
    gap: 18px;
  }

  .contact a,
  address {
    font-size: 20px;
    letter-spacing: 0.04em;
  }

  .contact a {
    gap: 22px;
  }

  .contact .icon {
    width: 30px;
    height: 30px;
  }

  address {
    line-height: 1.3;
  }

  .legal {
    margin-top: auto;
    padding-top: 36px;
    font-size: 16px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 380px) {
  .contact a,
  address,
  .legal {
    font-size: 11px;
  }

  .service-label h2 {
    font-size: 22px;
    letter-spacing: 0.1em;
  }
}

.legal a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.subpage main {
  flex: 1 0 auto;
}

.prose {
  max-width: 40rem;
  padding-top: 40px;
  padding-bottom: 72px;
  font-size: 16px;
  line-height: 1.6;
}

.prose h1 {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose h2 {
  margin: 2rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose p,
.prose li {
  margin: 0;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 0.8em;
}

.prose ul {
  margin: 0.45em 0 0;
  padding-left: 1.15em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes portrait-in {
  from { transform: scale(1.045); }
  to { transform: none; }
}

.logo,
.location,
.lead,
.service,
.portrait,
.footer-inner,
.prose {
  animation: rise 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.location { animation-delay: 0.1s; }
.portrait { animation-delay: 0.16s; }
.lead { animation-delay: 0.22s; }
.service:nth-child(1) { animation-delay: 0.34s; }
.service:nth-child(2) { animation-delay: 0.48s; }
.service:nth-child(3) { animation-delay: 0.62s; }
.footer-inner { animation-delay: 0.28s; }
.prose { animation-delay: 0.12s; }

.portrait picture {
  overflow: hidden;
}

.portrait img {
  animation: portrait-in 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-label {
  border-bottom: 0;
}

.service-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: draw 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-label {
  position: relative;
}

.service:nth-child(1) .service-label::after { animation-delay: 0.5s; }
.service:nth-child(2) .service-label::after { animation-delay: 0.64s; }
.service:nth-child(3) .service-label::after { animation-delay: 0.78s; }

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

  .logo,
  .location,
  .lead,
  .service,
  .portrait,
  .portrait img,
  .footer-inner,
  .prose,
  .service-label::after {
    animation: none;
  }

  .contact a,
  .photo-actions a,
  .legal a,
  .logo a,
  .prose a {
    transition: none;
  }
}

@media (min-width: 860px) {
  .prose {
    padding-top: 72px;
    padding-bottom: 120px;
    font-size: 18px;
  }

  .prose h1 {
    font-size: 42px;
  }

  .prose h2 {
    font-size: 18px;
  }
}
