:root {
  --ink: #17242b;
  --slate: #354852;
  --mist: #edf3f4;
  --paper: #ffffff;
  --teal: #007f82;
  --coral: #d7644e;
  --line: #c6d2d5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
}

.wordmark {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.wordmark span {
  color: var(--teal);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal);
}

.hero {
  position: relative;
  display: flex;
  isolation: isolate;
  min-height: 78svh;
  align-items: center;
  padding: 132px 5vw 72px;
  background-color: var(--mist);
  background-image: url("assets/mobile-rechnung-hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: 64px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero__lead {
  max-width: 530px;
  margin-bottom: 32px;
  color: #27353b;
  font-size: 19px;
}

.button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 5px;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #00686a;
}

.intro,
.contact,
.legal-main {
  padding: 88px 5vw;
}

.intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  gap: 56px;
  border-bottom: 1px solid var(--line);
}

.intro__content {
  max-width: 730px;
}

.intro h2,
.contact h2,
.legal-main h1 {
  margin-bottom: 20px;
  font-size: 38px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.16;
}

.intro p {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: 18px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: end;
  background: var(--ink);
  color: var(--paper);
}

.contact .eyebrow {
  color: #79d3cf;
}

.contact h2 {
  max-width: 630px;
  margin-bottom: 0;
}

.contact__action {
  max-width: 380px;
}

.contact__action p {
  margin-bottom: 22px;
  color: #dce7e8;
}

.button--light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover,
.button--light:focus-visible {
  background: #dce7e8;
}

.site-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 5vw;
  background: var(--ink);
  color: #dce7e8;
  font-size: 14px;
}

.site-footer a {
  color: var(--paper);
}

.site-header--light {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.legal-page {
  background: var(--mist);
}

.legal-main {
  min-height: calc(100svh - 154px);
  background: var(--paper);
}

.legal-main > h1 {
  margin-bottom: 52px;
}

.legal-grid {
  display: grid;
  max-width: 960px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 72px;
}

.legal-grid h2 {
  margin-bottom: 12px;
  font-size: 19px;
  letter-spacing: 0;
}

.legal-grid p {
  margin-bottom: 0;
}

.legal-grid a {
  color: var(--teal);
}

.site-footer--light {
  background: var(--mist);
  color: var(--slate);
}

.site-footer--light a {
  color: var(--ink);
}

@media (max-width: 780px) {
  .site-header {
    min-height: 68px;
    padding: 16px 24px;
    background: var(--mist);
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 14px;
  }

  .hero {
    min-height: 720px;
    align-items: flex-start;
    padding: 132px 24px 52px;
    background-position: 60% center;
  }

  .hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgb(237 243 244 / 82%);
    content: "";
  }

  .hero h1 {
    max-width: 410px;
    font-size: 44px;
  }

  .hero__lead {
    max-width: 390px;
    font-size: 17px;
  }

  .intro,
  .contact,
  .legal-main {
    padding: 64px 24px;
  }

  .intro,
  .contact,
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro h2,
  .contact h2,
  .legal-main h1 {
    font-size: 31px;
  }

  .intro p {
    font-size: 17px;
  }

  .site-footer {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
  }
}
