/* Import fonts */
@font-face {
  font-family: 'Lato';
  font-weight: 400;
  src: url(./fonts/lato-regular-webfont.woff2) format('woff2'),
       url(./fonts/lato-regular-webfont.woff) format('woff');
}

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

.main-container {
  max-width: 120rem;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: 'Lato', sans-serif;
  color: #252525;
}

header {
  display: flex;
  justify-content: space-between;
  background-color: #f9fafb;
  min-height: 5.5rem;
}

.logo {
  display: flex;
  align-items: center;
  padding-left: 6rem; /* Fallback, if clamp() is not supported by the browser */
  padding-left: clamp(1rem, -0.1538rem + 5.1282vw, 6rem);
  z-index: 9999;
}

.nav-mobile-toggle {
  display: none;
}

.primary-navigation {
 display: flex;
 align-items: center;
 gap: 9rem; /* Fallback, if clamp() is not supported by the browser */
 gap: clamp(4.5rem, -0.3913rem + 7.8261vw, 9rem);
 font-weight: bold;
 padding-right: 6rem; /* Fallback, if clamp() is not supported by the browser */
 padding-right: clamp(1rem, -0.1538rem + 5.1282vw, 6rem);
}

.primary-navigation a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: #252525;
}

.primary-navigation a:hover {
  color: #1a73e8;
}

main {
  background-color: #ffffff;
  overflow: scroll;
}

footer {
  background-color: #f9fafb;
  color: #252525;
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  padding-left: 6rem; /* Fallback, if clamp() is not supported by the browser */
  padding-left: clamp(1rem, -0.1538rem + 5.1282vw, 6rem);
  padding-bottom: 0.6rem;
  font-size: 1rem;
}

.top-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  padding-top: 1.25rem;
}

.top-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.top-footer a {
  text-decoration: none;
  color: #252525;
}

.top-footer a:hover {
  color: #1a73e8;;
}

.top-footer li:nth-child(1) {
  font-weight: bold;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}

.impressum,
.datenschutz,
.about-us,
.contact,
.services,
.products,
.faq,
.career,
.job-offer,
.product-description,
.ordering-system,
.service-description {
  max-width: 62.5rem;
  margin: 0 auto;
  padding-top: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-top:  clamp(0.5rem, -0.0769rem + 2.5641vw, 3rem);
  padding-bottom: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-bottom:  clamp(0.5rem, -0.0769rem + 2.5641vw, 3rem);
  line-height: 1.3;
}

.about-us h1,
.career h1,
.contact h1,
.datenschutz h1,
.faq h1,
.impressum h1,
.ordering-system h1,
.products h1,
.services h1,
.job-offer h1,
.product-description h1,
.service-description h1 {
  font-size: 2rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(1.75rem, 1.6429rem + 0.4762vw, 2rem);
  padding-bottom: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-bottom: clamp(1.5rem, 1.1538rem + 1.5385vw, 3rem);
}

.datenschutz h2 {
  font-size: 1.5rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(1.3rem, 1.2143rem + 0.3810vw, 1.5rem);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.datenschutz h2:first-of-type {
  padding-top: 0rem;
}

.datenschutz h3 {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.datenschutz h4 {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.datenschutz ul {
  list-style-position: inside;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.datenschutz a {
  text-decoration: none;
  color: #1a73e8;
}

.datenschutz a:hover {
  text-decoration: underline;
  color: #035fd8;
}

.impressum h2 {
  font-size: 1.5rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(1.3rem, 1.2143rem + 0.3810vw, 1.5rem);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.impressum a {
  text-decoration: none;
  color: #1a73e8;
}

.impressum a:hover {
  text-decoration: underline;
  color: #035fd8;
}

.about-us h2 {
  font-size: 1.17rem;
  padding-bottom: 0.6rem;
  color: #1a73e8;
}

.about-us h2:last-of-type {
  padding-top: 0.6rem;
}

.about-us p {
  padding-bottom: 0.3rem;
}

.about-us a {
  text-decoration: none;
  color: #1a73e8;
}

.about-us a:hover {
  text-decoration: underline;
  color: #035fd8;
}

.contact a {
  text-decoration: none;
  color: #252525;
}

.contact a:hover {
  color: #1a73e8;
}

.contact h2 {
  padding-top: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-top: clamp(1.5rem, 1.1538rem + 1.5385vw, 3rem);
  padding-bottom: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-bottom: clamp(1.5rem, 1.1538rem + 1.5385vw, 3rem);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}

.contact-info-details h3 {
  font-size: clamp(1.05rem, 0.9986rem + 0.2286vw, 1.17rem);
}

.contact-info-map img {
  max-width: 100%;
  height: auto;
}

.contact-person {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 6rem; /* Fallback, if clamp() is not supported by the browser */
  gap: clamp(3rem, 0.5455rem + 10.9091vw, 6rem);
}

.contact-person a {
  text-decoration: none;
  color: #252525
}

.contact-person a:hover {
  color: #1a73e8;;
}

.contact-person-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.contact-person-details p:first-of-type {
  color: grey;
}

.contact-person-details img {
  width: 200px;
  height: 175px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1.25rem;
  column-gap: 3rem;
  padding-bottom: 1rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
}

.subject,
.message {
  grid-column: 1 / 3;
}

input {
  padding: 0.3rem;
}

textarea {
  resize: none;
  padding: 0.6rem;
}

input, textarea {
  font-family: inherit;
  font-size: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

.form span {
  font-size: 0.875rem;
  color: red;
}

.form p {
  grid-column: 1 / 3;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: red;
}

.checkbox-accept {
  grid-column: 1 / 3;
  font-size: 0.875rem;
}

.checkbox-accept a {
  text-decoration: none;
  color: #1a73e8;
}

.checkbox-accept a:hover {
  text-decoration: underline;
  color: #035fd8;
}

.form button {
  background-color: #5491f5;
  color: #FFFFFF;
  width: 7.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

input:focus:invalid,
textarea:focus:invalid {
  border: 2px solid red;
}

input:focus:valid,
textarea:focus:valid {
  border: 2px solid green;
}

.form-submit-error,
.form-submit-success {
  max-width: 62.5rem;
  margin: 0 auto;
  line-height: 1.3;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  min-height: 100%;
  align-content: center;
  font-size: 1rem;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.form-submit-error a,
.form-submit-success a {
  background-color: #5491f5;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.6rem;
  text-decoration: none;
  border-radius: 8px;
}

.services-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20.5rem, 28rem));
  row-gap: 1rem;
  column-gap: 3rem;
  justify-content: center;
}

.products-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 18.5rem));
  row-gap: 1rem;
  column-gap: 3rem;
  justify-content: center;
}

.services h2,
.products h2 {
  font-size: 1.17rem;
}

.services a,
.products a {
  text-decoration: none;
  color: #252525;
}

.services .item {
  display: grid;
  grid-template-rows: 4fr 1fr;
  height: auto;
}

.products .item {
  display: grid;
  grid-template-rows: 4fr 1fr;
  height: 18.5rem;
}

.item-image img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.item-heading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-description {
  display: grid;
}

.product-description h2 {
  font-size: 1.17rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  color: #1a73e8;;
}

.product-description h3 {
  font-size: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.product-description h2:first-of-type {
  padding-bottom: 0rem;
}

.product-description ul {
  display: grid;
  gap: 0.6rem;
  list-style: inside;
  padding-bottom: 0.3rem;
}

.product-description-image img {
  max-width: 100%;
  height: auto;
}

.faq {
  display: grid;
  gap: 0rem;
}

.faq a {
  text-decoration: none;
  color: #1a73e8;
}

.faq a:hover {
  text-decoration: underline;
  color: #035fd8;
}

.faq-question {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  height: auto;
  background-color: #f9f9f9;
  font-weight: bold;
  padding: 1.25rem;
  border-left: 5px solid #1a73e8;
}

.faq-question span {
  font-size: 2rem;
  color: #1a73e8;;
}

.faq-answer {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  height: auto;
  padding: 1.25rem;
  color: #252525;
  border-left: 5px solid #c3c3c3;
  margin-bottom: 1.5rem;
}

.faq-answer span {
  font-size: 2rem;
  font-weight: bold;
  color: #c3c3c3;
}

.career p {
  padding-bottom: 0.3rem;
}

.career-jobs h2 {
  padding-top: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-top: clamp(1rem, 0.5385rem + 2.0513vw, 3rem);
  padding-bottom: 3rem; /* Fallback, if clamp() is not supported by the browser */
  padding-bottom: clamp(1rem, 0.5385rem + 2.0513vw, 3rem);
}

.career-jobs-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20.5rem, 28rem));
    row-gap: 2rem;
    column-gap: 3rem;
    justify-content: center;
}

.career .item {
  display: grid;
  grid-template-rows: 4fr 1fr;
  height: auto;
}

.career-jobs-items a {
  text-decoration: none;
  color: #252525;
}

.job-offer h1 {
  font-size: 2rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(1.5rem, 1.2857rem + 0.9524vw, 2rem);
}

.job-offer h2 {
  font-size: 1.17rem;
}

.job-offer p {
  padding-bottom: 0.3rem;
  font-weight: bold;
}

.job-offer p:first-of-type {
  padding-top: 1.25rem;
}

.job-offer a {
  text-decoration: none;
  color: #252525;
}

.job-offer a:hover {
  color: #1a73e8;
}

.job-offer img {
  max-width: 100%;
  height: auto;
}

.job-description {
  padding-bottom: 1.25rem;
}

.job-description h2 {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  color: #1a73e8;;
}

.job-description ul {
  display: grid;
  gap: 0.6rem;
  list-style: inside;
}

.breadcrumb-navigation {
  max-width: 62.5rem;
  margin: 0 auto;
  padding-top: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-navigation ul {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-navigation li:last-of-type {
  color: #1a73e8;
}

.breadcrumb-navigation a {
  text-decoration: none;
  color: #252525;
}

.breadcrumb-navigation a:hover {
  color: #1a73e8;
}

.service-description ul {
  display: grid;
  gap: 0.6rem;
  list-style: inside;
  padding-top: 0.6rem;
  padding-bottom: 1.25rem;
}

.service-description p {
  padding-bottom: 0.3rem;
}

.service-description a {
  text-decoration: none;
  color: #1a73e8;
}

.service-description a:hover {
  text-decoration: underline;
  color: #035fd8;
}

.service-description img {
  max-width: 100%;
  height: auto;
}

.ordering-system {
  padding-bottom: 3rem;
}

.homepage {
  background-color: #fcfcfc;
}

.homepage-hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(./stock-images/hero-image.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.homepage-hero h1 {
  font-size: 3rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(2rem, 1.5714rem + 1.9048vw, 3rem);
}

.homepage-hero h2 {
  font-size: 1.6rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(1.25rem, 1.1000rem + 0.6667vw, 1.6rem);
}

.homepage-hero a {
  background-color: #5491f5;
  color: #ffffff;
  font-size: 1.25rem; /* Fallback, if clamp() is not supported by the browser */
  font-size: clamp(1.1rem, 1.0357rem + 0.2857vw, 1.25rem);
  padding: 0.6rem;
  text-decoration: none;
  border-radius: 8px;
}

.homepage-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1rem;
  justify-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.homepage-benefits-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 22rem;
  border: 1px solid #dbd9d7;
  border-radius: 20px;
  background-color: #ffffff;
  padding: 1.25rem 2.5rem;
  line-height: 1.3;
}

.homepage-benefits-item p {
  text-align: center;
}

.homepage-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1rem;
  justify-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.review {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem;
  line-height: 1.3;
  max-width: 22rem;
}

.review-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.review-company {
  color: grey;
}

.review-rating {
  color: #ffa41c;
}

.review-content {
  padding-left: 1.8rem;
  padding-right: 1.8rem;
}

.review-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding-top: 1.25rem;
}

.review-footer img {
  width: 24px;
  height: 24px;
}

.review-footer p {
  color: grey;
  font-size: 0.875rem;
}

@media (max-width: 62.5rem) {

  .primary-navigation {
    flex-direction: column;
    gap: 3rem;
    position: fixed;
    inset: 0 0 0 0;
    padding-top: 8rem;
    background-color: #f9fafb;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }

  .nav-mobile-toggle {
    display: block;
    position: absolute;
    top: 2rem;
    right: 1rem;
    z-index: 9999;
    background-color: transparent;
    background-image: url("./icons/menu.svg");
    background-size: contain;
    border: 0;
    width: 2rem;
    aspect-ratio: 1;
  }

  .nav-mobile-toggle[data-expanded="true"] {
    background-image: url("./icons/close.svg");
  }

  .breadcrumb-navigation,
  .about-us,
  .career,
  .contact,
  .datenschutz,
  .faq,
  .form-submit-error,
  .form-submit-success,
  .impressum,
  .ordering-system,
  .products,
  .services,
  .job-offer,
  .product-description,
  .service-description {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .form {
    grid-template-columns: 1fr;
    column-gap: 0rem;
  }

  .subject,
  .message {
    grid-column: 1 / 2;
  }

  .form p {
    grid-column: 1 / 2;
  }
  
  .checkbox-accept {
    grid-column: 1 / 2;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem; /* Fallback, if clamp() is not supported by the browser */
    gap: clamp(1.5rem, 1.2188rem + 1.2500vw, 2rem);
  }
}