:root {
  --ink: #050505;
  --hover: #777;
  --max: 1280px;
  --side: clamp(28px, 5.55vw, 80px);
  --nav: 24px;
  --body: 20px;
  --meta: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: var(--body);
  line-height: 1.42;
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover, a:focus-visible { color: var(--hover); }
a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}
.site { min-height: 100vh; display: flex; flex-direction: column; }
.shell {
  width: min(calc(100% - (2 * var(--side))), var(--max));
  margin-inline: auto;
}

/* Header */
.header { padding-top: 64px; }
.header-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: start;
  gap: 30px;
}
.primary-nav {
  position: relative;
  display: block;
  padding-top: 44px;
  font-size: var(--nav);
  line-height: 1;
  text-transform: uppercase;
}
.primary-nav a {
  position: absolute;
  top: 44px;
  white-space: nowrap;
}
.primary-nav a:nth-child(1) { left: 0; }
.primary-nav a:nth-child(2) { left: calc(50% - 20px); transform: translateX(-50%); }
.primary-nav a:nth-child(3) { right: 40px; }
.logo-link {
  justify-self: end;
  display: block;
  width: 100%;
  max-width: 520px;
}
.logo { display: block; width: 100%; height: auto; }
.logo-link:hover, .logo-link:focus-visible { opacity: .78; }

/* Home */
main { flex: 1; }
.home-content {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  gap: 30px;
  padding-top: 96px;
  padding-bottom: 88px;
}
.home-content section:first-child { grid-column: 1; }
.home-content section:last-child { grid-column: 3; }
.section-label, .legal h2, .contact-block h2 {
  margin: 0 0 20px;
  font-size: var(--body);
  line-height: 1.25;
  font-weight: 400;
  font-style: italic;
}
.home-content p { margin: 0 0 14px; }

/* Arrow links */
.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
}
.arrow-link .arrow {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  transition: transform .2s ease;
}
.arrow-link:hover .arrow,
.arrow-link:focus-visible .arrow {
  transform: translateX(5px);
}

/* Legal and contact pages */
.legal, .contact-page {
  padding-top: 92px;
  padding-bottom: 92px;
}
.legal-title, .contact-title {
  margin: 0 0 22px;
  font-size: var(--body);
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
}
.imprint-copy, .contact-copy { width: min(100%, 520px); }
.imprint-copy p, .contact-copy p { margin: 0 0 16px; }
.imprint-copy h2 { margin-top: 16px; margin-bottom: 0; }

.contact-address { margin-bottom: 18px !important; }
.contact-block { margin-top: 14px; }
.contact-block h2 { margin-bottom: 0; }
.contact-block p { margin: 0; }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
  align-items: start;
}
.privacy-grid .column { min-width: 0; }
.privacy-grid p { margin: 0 0 14px; }
.privacy-grid h2 { margin-top: 14px; margin-bottom: 0; }
.privacy-grid .column:first-child h2:first-of-type { margin-top: 0; }

/* Footer */
.footer { padding-bottom: 54px; }
.gradient-rule {
  height: 10px;
  margin-bottom: 38px;
  background: linear-gradient(90deg, #fff 0%, #d9d9d9 15%, #7a7a7a 48%, #000 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 2.5fr 2.5fr;
  gap: 30px;
  align-items: start;
}
.company-meta, .copyright {
  font-size: var(--meta);
  line-height: 1.22;
}
.company-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 18px;
}
.company-meta .full { grid-column: 1 / -1; }
.footer-link {
  font-size: var(--body);
  line-height: 1;
  text-transform: uppercase;
}
.footer-link.imprint { justify-self: end; }

/* Responsive */
@media (max-width: 900px) {
  :root { --nav: 20px; --body: 18px; }
  .header { padding-top: 34px; }
  .header-inner { grid-template-columns: 1fr; }
  .logo-link {
    grid-row: 1;
    justify-self: end;
    width: min(72vw, 500px);
  }
  .primary-nav {
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 18px;
  }
  .primary-nav a {
    position: static;
    transform: none;
    white-space: normal;
  }
  .primary-nav a:nth-child(1) { justify-self: start; }
  .primary-nav a:nth-child(2) { justify-self: center; }
  .primary-nav a:nth-child(3) { justify-self: end; }
  .home-content {
    grid-template-columns: 1fr;
    padding-top: 68px;
    gap: 56px;
  }
  .home-content section:first-child,
  .home-content section:last-child { grid-column: 1; }
  .privacy-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
  .company-meta, .copyright { grid-column: 1 / -1; }
  .footer-link.imprint { justify-self: end; }
}
@media (max-width: 560px) {
  :root { --side: 22px; --nav: 15px; --body: 17px; --meta: 11px; }
  .logo-link { width: 58vw; }
  .primary-nav {
    grid-template-columns: max-content 1fr max-content;
    gap: 0;
  }
  .primary-nav a:nth-child(1) { justify-self: start; }
  .primary-nav a:nth-child(2) { justify-self: center; }
  .primary-nav a:nth-child(3) { justify-self: end; }
  .legal, .contact-page, .home-content {
    padding-top: 54px;
    padding-bottom: 64px;
  }
  .gradient-rule { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .arrow-link .arrow { transition: none; }
}


/* Standalone home alignment refinement */
.standalone-home {
  display: block;
}
.standalone-home section:first-child {
  width: min(100%, 520px);
  margin-left: 0;
}

.hosting-credit a {
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.hosting-credit a:hover,
.hosting-credit a:focus-visible {
  color: #777;
}
