:root {
  --bg: #F5F4F1;
  --ink: #292D30;
  --body: #404649;
  --muted: #717572;
  --accent: #304B5A;
  --accent-hover: #243A46;

  --font-heading: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --gutter: 24px;
  --content: 1040px;
  --measure: 680px;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

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

.page,
.footer {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hero */

.hero {
  padding-top: 32px;
}

.portrait {
  display: block;
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

.hero-text {
  margin-top: 30px;
}

h1 {
  font-size: 36px;
  line-height: 46px;
}

.role {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.intro {
  margin-top: 22px;
  color: var(--ink);
  font-size: 19px;
  line-height: 30px;
}

.button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 202px;
  height: 52px;
  padding: 0 28px;
  margin-top: 26px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
}

/* Sections */

section {
  margin-top: 80px;
}

h2 {
  font-size: 28px;
  line-height: 38px;
}

.prose {
  max-width: var(--measure);
  margin-top: 22px;
}

.prose p + p {
  margin-top: 20px;
}

.services {
  margin-top: 24px;
}

.service + .service {
  margin-top: 32px;
}

h3 {
  font-size: 20px;
  line-height: 29px;
}

.service p {
  margin-top: 10px;
}

/* Contact */

.contact-title {
  max-width: 780px;
  font-size: 29px;
  line-height: 39px;
}

.contact .button {
  margin-top: 28px;
}

/* Kontakt-Dialog */

.contact-dialog {
  width: min(100% - 2 * var(--gutter), 460px);
  margin: auto;
  padding: 36px 32px 32px;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--body);
  box-shadow: 0 24px 64px rgba(41, 45, 48, 0.28);
}

.contact-dialog::backdrop {
  background: rgba(41, 45, 48, 0.55);
}

.contact-dialog h2 {
  padding-right: 32px;
  font-size: 26px;
  line-height: 34px;
}

.dialog-text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 26px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(41, 45, 48, 0.08);
  color: var(--ink);
}

.dialog-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  color: var(--accent);
}

.dialog-mail .icon-mail {
  flex: none;
  margin-right: 4px;
}

.dialog-mail .js-mail-link {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 17px;
  line-height: 26px;
  text-decoration: none;
}

.dialog-mail .js-mail-link:hover {
  text-decoration: underline;
}

.copy-button {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(41, 45, 48, 0.08);
  color: var(--ink);
}

.copy-button .icon-check { display: none; }
.copy-button.is-copied .icon-copy { display: none; }
.copy-button.is-copied .icon-check { display: block; }
.copy-button.is-copied { color: #2E7D4F; }

.copy-feedback {
  flex: none;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.copy-feedback:empty {
  display: none;
}

.dialog-linkedin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 17px;
  line-height: 26px;
  text-decoration: none;
}

.dialog-linkedin:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  padding-top: 76px;
  padding-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Legal pages */

.legal {
  padding-top: 64px;
}

.legal .back {
  font-size: 15px;
  text-decoration: none;
}

.legal h1 {
  margin-top: 24px;
}

.legal h2 {
  margin-top: 48px;
  font-size: 22px;
  line-height: 32px;
}

.legal .prose {
  margin-top: 16px;
}

.legal .prose p + p {
  margin-top: 14px;
}

/* Desktop */

@media (min-width: 900px) {
  body {
    font-size: 20px;
    line-height: 32px;
  }

  .hero {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-top: 104px;
  }

  .portrait {
    flex: none;
    width: 320px;
    height: 400px;
  }

  .hero-text {
    margin-top: 0;
    max-width: 656px;
  }

  h1 {
    font-size: 54px;
    line-height: 68px;
  }

  .role {
    margin-top: 6px;
    font-size: 17px;
    line-height: 26px;
  }

  .intro {
    margin-top: 24px;
    font-size: 22px;
    line-height: 34px;
  }

  .button {
    margin-top: 28px;
  }

  section {
    margin-top: 100px;
  }

  .hero + section {
    margin-top: 112px;
  }

  h2 {
    font-size: 32px;
    line-height: 44px;
  }

  .prose {
    margin-top: 28px;
  }

  .prose p + p {
    margin-top: 20px;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 28px;
  }

  .service + .service {
    margin-top: 0;
  }

  h3 {
    font-size: 21px;
    line-height: 30px;
  }

  .service p {
    margin-top: 12px;
    font-size: 18px;
    line-height: 29px;
  }

  .contact {
    margin-top: 104px;
  }

  .contact-title {
    font-size: 36px;
    line-height: 46px;
  }

  .contact .button {
    margin-top: 30px;
  }

  .footer {
    padding-top: 100px;
    padding-bottom: 64px;
    font-size: 14px;
    line-height: 22px;
  }
}
