:root {
  --text: #4f5860;
  --heading: #4b535c;
  --muted: #6d747b;
  --line: #80a86b;
  --accent: #68a55a;
  --paper: #ffffff;
  --soft: #f7f8f7;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 38px 64px;
}

.brand {
  width: 150px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #0f1114;
  font-size: 20px;
  line-height: 1.2;
}

.nav a {
  border-bottom: 2px solid transparent;
  padding: 0 0 18px;
}

.nav a.active,
.nav a:hover,
.nav a:focus-visible {
  border-bottom-color: var(--line);
}

.nav span {
  display: none;
}

.hero {
  min-height: 82vh;
  background: url("../img/hero-mountains.jpg") center center / cover no-repeat;
}

.section {
  width: min(var(--max), calc(100% - 112px));
  margin: 0 auto;
}

.intro {
  padding: 100px 0 46px;
}

.intro h1 {
  max-width: 980px;
  margin: 0 auto 30px;
  color: var(--heading);
  font-size: 38px;
  line-height: 1.08;
  text-align: center;
}

.rule {
  width: 78px;
  height: 2px;
  margin: 0 0 30px;
  background: var(--line);
}

.intro p {
  margin: 0 0 26px;
  text-align: justify;
}

.holdings {
  padding: 0 0 104px;
}

.holdings h2 {
  margin: 0 0 52px;
  color: var(--heading);
  font-size: 28px;
  line-height: 1.25;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 56px;
  align-items: center;
  min-height: 340px;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.logo-link img {
  object-fit: contain;
}

.logo-ndf {
  width: 230px;
}

.logo-securitel {
  width: 260px;
}

.logo-redaktion {
  width: 260px;
}

.logo-spin {
  width: 250px;
}

.site-footer {
  padding: 28px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: end;
}

.contact {
  font-size: 18px;
}

.contact p {
  margin: 0 0 6px;
}

.legal-links {
  display: flex;
  gap: 38px;
  justify-content: center;
  font-size: 16px;
}

.copyright {
  justify-self: end;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
}

.simple-page {
  min-height: 100vh;
  background: var(--soft);
}

.simple-header {
  position: static;
  background: var(--paper);
  border-bottom: 1px solid #e7e9e7;
}

.simple-main {
  width: min(920px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.simple-main h1 {
  margin: 0 0 32px;
  color: var(--heading);
  font-size: 42px;
  line-height: 1.12;
}

.legal-body {
  padding: 42px 48px;
  background: var(--paper);
}

.legal-body h2,
.legal-body h3,
.legal-body h4 {
  color: var(--heading);
  line-height: 1.25;
}

.legal-body a {
  color: #2f7d91;
  text-decoration: underline;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 24px;
  }

  .brand {
    width: 112px;
  }

  .nav {
    gap: 18px;
    font-size: 16px;
  }

  .hero {
    min-height: 60vh;
    background-position: center top;
  }

  .section {
    width: min(100% - 40px, var(--max));
  }

  .intro h1 {
    font-size: 28px;
  }

  .logo-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    min-height: 0;
  }

  .logo-ndf,
  .logo-securitel,
  .logo-redaktion,
  .logo-spin {
    width: min(280px, 80vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .legal-links {
    justify-content: flex-start;
  }

  .copyright {
    justify-self: start;
    text-align: left;
  }

  .simple-main {
    width: min(100% - 32px, 920px);
    padding: 42px 0 64px;
  }

  .legal-body {
    padding: 28px 22px;
  }
}
