/* Add some basic styling for the container and rows */
body {
  margin: 30px;
  align-content: center;
}

/* General styling settings for the page */
* {
  box-sizing: border-box;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

main {
  padding-left: 10%;
  padding-right: 10%;
  align-items: center;
}

h2 {
  text-align: center;
}

h3 {
  text-align: center;
}


/* These are my header styles */

.header-container-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.singlebox img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .header-container-centered {
    flex-direction: column;
  }
}

/* These are my navbar styles */

nav {
  display: grid;
  padding: 20px 30px 50px 100px;
  font-weight: 700;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  align-items: center;
  list-style-type: none;
  overflow: hidden;
}

nav ul li a {
  text-decoration: none;
  color: hsl(0, 5%, 15%);
  font-size: 20px;
}

nav ul li a:hover {
  color: hsl(215, 100%, 50%);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all;
  background: hsl(0, 3%, 90%);
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* These are my herotag styles */

.herotag-image-container {
  background-image: url("images/2023/pexels-photo-6044810.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 20% 40%;
  flex-wrap: wrap;
  opacity: 1.75;
  width: auto;
  height: 70vh;
  display: flex;
  border-radius: 8px;
  object-fit: cover;
}

.sorry-404-container {
  background-image: url("/images/2023/pexels-cottonbro-studio-4480541.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 20% 40%;
  flex-wrap: wrap;
  opacity: 1.75;
  width: auto;
  height: 70vh;
  display: flex;
  border-radius: 8px;
  object-fit: cover;
}

.herotag-text h2 {
  font-size: 3vw;
  text-align: left;
  text-shadow: 3px 3px 10px black;
  text-overflow: clip;
  width: 90%;
  color: white;
  font-weight: 900;
  position: relative;
  top: 5vh;
  left: 5vw;
  right: 2vw;
  flex-wrap: wrap;
}

.herotag-text p {
  position: relative;
  top: 5vh;
  left: 5vw;
  font-size: 2vw;
  text-align: left;
  color: white;
  font-weight: 900;
}

.herotag-text a {
  color: white;
  font-weight: 300;
}

.sorry-404-text h2 {
  font-size: 3vw;
  text-align: left;
  text-shadow: 3px 3px 10px black;
  text-overflow: clip;
  width: 90%;
  color: white;
  font-weight: 900;
  position: relative;
  top: 5vh;
  left: 5vw;
  right: 2vw;
  flex-wrap: wrap;
}

.sorry-404-text p {
  position: relative;
  top: 5vh;
  left: 5vw;
  font-size: 2vw;
  text-align: left;
  color: white;
  font-weight: 900;
}

.sorry-404-text a {
  color: white;
  font-weight: 300;
}

/* This is the section for the services with eight cards */
.unsere-leistungen {
  display: flexbox;
  padding: 50px 0px 50px 0px;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 30px;
}

.unsere-leistungen .box {
  width: 200px;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  padding-bottom: 30px;
}

#unsere-leistungen .box img {
  display: block;
  height: 160px;
  width: 300px;
  max-width: 200px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#unsere-leistungen .box li {
  list-style-type: none;
}

@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }
}

/*here ends the section for the services with the eight cards */

/* Here starts the references section */

.container-referenzen {
  background-color: rgba(211, 211, 211, 0.25);
  display: flexbox;
  text-align: center;
  padding: 50px;

}

.container-referenzen .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 30px;
}

section .box {
  height: auto;
  width: auto;
  align-items: center;
  padding: 20px;
  background: white;
  overflow: hidden;
  justify-content: stretch;
  margin: 10px;
}

section .box img {
  width: auto;
  height: 60px;
  overflow: hidden;
  border-radius: 0px;
}

@media (max-width: 600px) {
  section .row {
    flex-direction: column;
  }
}

section .box {
  margin-bottom: 10 px;
}

section .box img {
  height: 40px;
}

/* here starts the ueber-uns section */

.container-ueberuns {
  display: flex;
  padding-top: 50px;
  flex-wrap: wrap;
  justify-content: space-around;
}

.container-ueberuns .box {
  flex: 1;
  align-items: flex-end;
  justify-content: space-evenly;
}

.container-ueberuns .box img {
  width: 250px;
  height: auto;
  padding: 20px;
}

.container-ueberuns .row .box {
  flex: 1;
  display: inline-flex;
  max-width: fit-content;
  align-items: center;
  justify-content: space-between;
}

/* Here starts the Firmenchronik Section */

.chronik-container {
  display: flexbox;
  justify-content: space-around;
}

.chronik-box,
.chronik-box h2 {
  flex: 1;
  flex-direction: column;
  text-align: center;
}

.chronik-box img {
  flex: 1;
  width: 150px;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  align-self: flex-end;
}

.chronik-text {
  flex: 1;
  text-align: center;
  flex: 30%;
  padding: 0px 20px 0px 20px;
  /* margin-left: 10px; */
}

#sensen.chronik-text>* {
  text-align: left;
}

.chronik-container .row {
  flex-direction: row;
  padding: 50px;
}

/* here starts the contact section */

.contact-section {
  background-color: rgba(211, 211, 211, 0.25);
  padding: 50px;
  overflow: hidden;
  height: fit-content;
}

.contact-container {
  display: flex;
}

.contact-map {
  flex: 1;
  flex: 100%;
  max-height: fit-content;
  height: 30vh;
  margin-right: 30px;
  margin-bottom: 30px;
}

.contact-info {
  flex: 0;
  flex: 40%;
  justify-items: center;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.phone-container,
.email-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-number,
.email-address {
  flex: 1;
  flex: 80%;
  padding: 20px;
}

.phone-icon,
.email-icon {
  flex: 1;
  flex: 20%;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .contact-container {
    flex-direction: column;
  }
}

/* Here starts the links section */

.container-links {
  display: flex;
  flex: 100%;
  align-items: center;
  flex-wrap: wrap;
  padding: 50px;
  justify-content: space-around;
  text-align: center;
  /*Todo: @media query, wrap if screen-size is low */
}

.container-links .box {
  flex-direction: row;
}

/* here ends the links section */

/* here starts the footer section*/

footer {
  background-color: #333;
  color: #fff;
  padding: 1em;
}

#box1 {
  flex: 40%;
  flex: 1;
  align-items: start;
}

#box1 img {
  height: auto;
  width: 250px;
  padding-right: 20px;
  padding-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
}

#left {
  flex: 1;
  flex: 40%;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 600;
  margin-left: auto;
}

#right {
  flex: 1;
  flex: 40%;
  border: white 3px;
  font-size: 15px;
  text-align: end;
}

.footer-section * {
  flex: 1;
  color: white;
  text-decoration: none;
}

@media (max-width: 600px) {
  footer-container {
    flex-direction: column;
    justify-self: center;
    align-self: center;
  }
}