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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--mineral);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(28px, 4.2vh, 48px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section > .container {
  width: 100%;
}

.section--mineral {
  background-color: var(--mineral);
}

.section--paper {
  background-color: var(--paper);
}

.section--graphite {
  background-color: var(--graphite);
  color: var(--ink-light);
}

.section-head {
  display: block;
  margin-bottom: clamp(18px, 2.8vh, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section--graphite .section-head {
  border-bottom-color: var(--graphite-line);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

.section--graphite .section-head__title {
  color: var(--paper);
}

.section-head__lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 520px;
}

.section--graphite .section-head__lead {
  color: var(--ink-light-muted);
}

.btn,
.btn--apfel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn--apfel,
.btn--brand,
.btn--primary {
  background-color: var(--brand);
  color: var(--btn-on-brand);
  border-color: var(--brand);
  font-weight: 600;
}

.btn--apfel:hover,
.btn--brand:hover,
.btn--primary:hover {
  background-color: var(--graphite);
  border-color: var(--graphite);
  color: var(--paper);
}

.section--graphite .btn--apfel:hover,
.hero .btn--apfel:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--btn-on-brand);
}

.btn--graphite {
  background-color: var(--graphite);
  color: var(--paper);
  border-color: var(--graphite);
}

.btn--graphite:hover {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline-dark:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.btn--outline,
.btn--outline-light {
  background-color: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover,
.btn--outline-light:hover {
  background-color: var(--paper);
  color: var(--graphite);
  border-color: var(--paper);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 15px;
}

@media (max-width: 960px) {
  .section {
    min-height: auto;
    display: block;
    padding: 44px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .section-head__lead {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 26px 0;
  }

  .section-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .section-head__title {
    font-size: 23px;
    line-height: 1.16;
  }

  .btn,
  .btn--apfel {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 13.5px;
  }

  .btn--lg {
    padding: 11px 20px;
    font-size: 14px;
  }
}

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }

.checkbox__input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid var(--graphite-line);
  border-radius: 0;
  background-color: #121618;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), background-color var(--transition);
}

.checkbox__input:hover,
.checkbox__input:focus-visible { outline: none; border-color: var(--brand); }
.checkbox__input:checked { background-color: var(--brand); border-color: var(--brand); }
.checkbox__input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__label { font-size: 12px; line-height: 1.45; color: var(--ink-light-muted); }
