@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-bold.woff2") format("woff2");
}

:root {
  --color-text: #040404;
  --color-link: #0378cf;
  --color-border: #e4e4e4;
}

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

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: #fff;
}

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

figure,
p {
  margin: 0;
}

a {
  color: var(--color-link);
  text-underline-offset: 2px;
}

/* Home */

.home {
  display: grid;
  grid-template-columns: 22fr 78fr;
  gap: 24px 3rem;
  align-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.38rem;
  padding-right: 3rem;
  border-right: 2px solid var(--color-link);
}

.intro__footer {
  margin-top: auto;
}

.companies {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.company {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 3rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.company--wide {
  grid-column: span 3;
}

.company__logo {
  display: flex;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 781px) {
  .home,
  .companies {
    grid-template-columns: 1fr;
  }

  .company,
  .company--wide {
    grid-column: auto;
  }

  .intro {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 2px solid var(--color-link);
  }
}

/* Impressum */

.imprint {
  max-width: 60%;
  margin: 0 auto;
  padding: 5rem 0;
}

.imprint > * + * {
  margin-top: 24px;
}

.imprint h1,
.imprint h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.imprint__back {
  margin-top: 3rem;
}
