:root {
  --clr-primary-text: #cecece;
  --clr-bg: #1a1c1c;
  --clr-red: #e71d36;
  --clr-yellow: #faa916;
  --ff-primary: sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--ff-primary);
  color: var(--clr-primary-text);
  font-weight: 400;
  font-size: clamp(12px, 12px + 0.5vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1;
}

p {
  text-align: justify;
}

a {
  font-size: clamp(12px, 12px + 0.5vw, 24px);
  font-weight: 600;
  color: inherit;
  text-decoration: inherit;
}

a:hover {
  color: var(--clr-yellow);
}

header,
section {
  padding: clamp(16px, 16px + 0.5vw, 32px) 0 clamp(12px, 12px + 0.5vw, 24px) 0;
}

.spacer {
  padding-top: clamp(24px, 24px + 0.75vw, 48px);
}

section img {
  width: 100%;
}

@media (min-width: 45em) {
  header {
    padding: 1rem 0;
  }
}

img {
  display: block;
  max-width: 100%;
  max-height: 35vh;
  object-fit: cover;
}

@media (min-width: 45em) {
  img {
    max-height: 100%;
  }
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--clr-bg);
}

.container {
  margin-inline: auto;
  width: min(94%, 90rem);
  max-width: 925px;
}

.content-container {
  margin: 1rem;
}

@media (min-width: 46em) {
  .text-content p {
    padding: 0;
  }
}

/* HEADER */

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: black;
}

.header-container {
  width: min(94%, 90rem);
  max-width: 925px;
}

.header-container,
.footer-container {
  background-color: black;
}

.header-container-company-name a {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 15vh;
}

.company-name-text {
  font-size: clamp(32px, 32px + 2.5vw, 64px);
  color: var(--clr-red);
}

.company-name-logo {
  width: clamp(32px, 32px + 2.5vw, 64px);
  margin: 0 -1.5rem;
}

.header-container-contacts {
  border-top: 1px solid var(--clr-primary-text);
  padding: 0.5rem 0.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: clamp(0.75rem, 0.5rem + 1.5vw, 1.5rem);
}

@media (min-width: 46em) {
  .header-container-contacts {
    flex-direction: row;
    justify-content: space-between;
  }
}

.header {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: clamp(16px, 16px + 0.5vw, 32px);
  text-align: center;
  word-wrap: normal;
}

@media (min-width: 45em) {
  .header {
    text-align: left;
  }
}

/* CUSTOM UL */

.custom-ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  row-gap: 1.5rem;
  align-items: start;
}

.custom-li {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-li .inline-li-marker {
  position: absolute;
  width: 2.5rem;
  margin-top: -0.55rem;
  margin-left: -0.25rem;
}

.custom-li b {
  margin-left: 2rem;
}

.custom-li .li-marker {
  display: none;
  max-width: clamp(48px, 48px + 1vw, 96px);
}

.custom-li p {
  text-align: justify;
}

@media (min-width: 840px) {
  .custom-ul {
    grid-template-columns: 1fr 1fr;
  }
  .custom-li {
    flex-direction: row;
    margin-left: -2rem;
  }
  .custom-li .li-marker {
    display: block;
  }
  .custom-li .inline-li-marker {
    display: none;
  }
  .custom-li b {
    margin-left: 0;
  }
}

/* CUSTOM GRIDS */

img {
  grid-area: img;
}

.text-content {
  grid-area: text;
}

.grid-text-img {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "text" "img";
  justify-items: center;
  gap: 2em;
}

@media (min-width: 45em) {
  .grid-text-img {
    display: grid;
    grid-template-columns: auto 40%;
    grid-template-areas: "text img";
  }
  .grid-text-img img {
    object-fit: cover;
    height: 100%;
    max-height: 300px;
  }
}

.grid-img-text {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "text" "img";
  justify-items: center;
  gap: 2em;
}

@media (min-width: 45em) {
  .grid-img-text {
    grid-template-columns: 40% auto;
    grid-template-areas: "img text";
  }
  .grid-img-text img {
    object-fit: cover;
    height: 100%;
    max-height: 300px;
  }
}

/* FOOTER */

section.footer-container {
  background-color: black;
  padding: clamp(1.5rem, 0.5rem + 2vw, 4rem) 0;
  text-align: center;
}

/* Security */

.item1 {
  grid-area: item1;
}
.item2 {
  grid-area: item2;
}
.item3 {
  grid-area: item3;
}
.item4 {
  grid-area: item4;
}
.item5 {
  grid-area: item5;
}

.security-grid {
  display: flex;
  flex-direction: column;
  justify-items: center;
  gap: 3rem;
}

@media (min-width: 840px) {
  .security-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: auto 40%;
    grid-template-rows: auto;
    grid-template-areas:
      "text  img"
      "item1  img"
      "item2  img"
      "item3  img"
      "item4  item4"
      "item5  item5";
  }
  .security-grid > img {
    object-fit: cover;
    height: 100%;
  }
}

/* IMPRINT */

section.imprint {
  flex: 1;
}

.imprint .header {
  text-align: center;
}

.imprint p {
  text-align: center;
}

.imprint-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  padding: 0 0.5rem;
}
