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

body {
  font-family: 'Montserrat', sans-serif;
  color: #2E332E;
}

h1, h2, p {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2E332E;
  padding: 20px;
}

header .logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
}

/* About Section */
.about {
  background-color: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
}

.about p {
  font-size: 1.2rem;
}

/* Services Section */
.services {
  padding: 0px 0px;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
}

.service-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.service {
  text-align: center;

}

.service img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

/* Contact Section */
.contact {
  padding: 40px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact input, .contact textarea {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 1rem;
  width: 100%;
}

.contact button {
  padding: 10px;
  font-size: 1rem;
  background-color: #2E332E;
  color: white;
  border: none;
  cursor: pointer;
}

.contact button:hover {
  background-color: #555;
}

/* Footer Section */
footer {
  background-color: #2E332E;
  color: white;
  text-align: center;
  padding: 10px;
}

footer {
  background-color: #2E332E;
  color: white;
  padding: 10px 0;
  font-size: 16px;
}

footer a {
  color: #ffffff;
}

/* About Section Split */
.about-split {
  margin-top: -5px;
  display: flex;
  flex-direction: row;
  height: auto;
}

.about-left {
  flex: 1.15;
  background-color: #2E332E; /* Dark background */
  color: white;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-expertise {
  flex: 1.15;
  background-color: #c8c7c7; /* Slightly darker gray */
  color: black;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-left h2 {
  font-size: 2.5rem;
  line-height: 1.5;
  margin: 0;
}

.about-right-expertise {
  flex: 2;
  background-color: white; /* Brown background */
  color: white;
  padding: 40px 160px 40px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  line-height: 1.8;
}


.about-right {
  flex: 2;
  background-color: #a46b41; /* Brown background */
  color: white;
  padding: 40px 160px 40px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  line-height: 1.8;
}

.about-right p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.about-right b {
  color: white;
  font-weight: bold;
}

/* Services Section Grid Layout */
.services-grid {
  display: flex;
  flex-direction: row;
  padding: 40px;
  background-color: #f4f4f4; /* Light gray background */
}

.services-left {
  flex: 1;
  background-color: #c8c7c7; /* Slightly darker gray */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.services-left h2 {
  font-size: 2.5rem;
  line-height: 1.0;
  text-align: center;
}

.services-right {
  flex: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
}

.service {
  text-align: center;
  max-width: 150px;
}

.service .icon {
  background-color: #2E332E;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.service .icon img {
  width: 50px;
  height: auto;
}

.service p {
  margin: 0;
  font-size: 1rem;
  color: #a46b41; /* Brown color for text */
  font-weight: bold;
  line-height: 1.2;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
  }

  .services-left, .services-right {
    flex: unset;
    text-align: center;
  }

  .services-right {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* Leistungen Section */
.leistungen {
  padding: 40px 20px;
  background-color: #2E332E;
  text-align: center;
  background-image: url("../img/background-mauer.jpg");
}

.leistungen h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f4f4f4;
}

.leistungen p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f4f4f4;
}

/* Container for Left Text and Right Circle Image */
.leistungen-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

/* Left Text Column */
.leistungen-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 40px;
  max-width: 25%;
  line-height: 1.8;
}

.leistungen-text-principle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 40px;
  max-width: 50%;
}

.leistungen-container img {
  width: 500px;
}

/* Right Circle Image Container */
.leistungen-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.leistungen-image-container-principle {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
  padding: 0px 150px;
  line-height: 2;
}

/* Principle Section */
#principle {
  color: white;
  text-align: center;
  background-image: url("../img/background-sand.png");
}

.principle-text {
  margin-bottom: 5px;
}

.principle-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.principle-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.principle-circle {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  background-color: #2E332E;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
}

.principle-item {
  position: absolute;
  color: #f4f4f4;
  font-size: 1.2rem;
  font-weight: bold;
}

.principle-item:nth-child(1) {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.principle-item:nth-child(2) {
  top: 30%;
  left: 80%;
  transform: translateX(-50%);
}

.principle-item:nth-child(3) {
  top: 50%;
  left: 90%;
  transform: translateY(-50%);
}

.principle-item:nth-child(4) {
  top: 70%;
  left: 80%;
  transform: translateX(-50%);
}

.principle-center {
  position: absolute;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-contact p {
  font-size: 16px;
  line-height: 1.6;
}

.footer p {
  font-size: 16px;
}

.circle-image {
  width: 60%;
  height: auto;
}

/* Media Queries -------------------------------------------*/
@media (max-width: 430px) {
  body {
    background-color: white;
    padding: 0px 0px;
    margin: 0px;
  }

  .about-right-expertise {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service {
    margin-bottom: 25px;
  }

  .service .icon img {
    width: 100%;
  }

  .hero img {
    width: 100%;
    height: auto;
  }

  .about-split {
    flex-direction: column;
    align-items: center;
  }

  .about-left, .about-right-expertise {
    width: 100%;
    margin: 1px 0;
  }

  .about-expertise {
    width: 100%;
    margin: 1px 0;
    padding: 20px;
    align-content: center;
    text-align: center;
  }

  .about-right {
    width: 100%;
    margin: 1px 0;
    padding: 20px;
    text-align: center;
  }

  .about-right p {
    font-size: 16px;

  }

  .leistungen-container {
    flex-direction: column;
    align-items: center;
    padding: 0px;
    margin: 0px;
    max-width: 100%;
  }

  .leistungen {
    padding: 0px;
    margin: 0px;
  }

  .leistungen-text {
    margin: 0px;
    padding: 0px;
    max-width: 100%;
    font-size: 18px;
  }

  .circle-image {
    width: 100%;
    height: auto;
    padding: 10px;
    max-width: 95%
  }


  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    height: 100px;
  }

  .leistungen-text-principle {
    margin: 0px;
    padding: 0px;
    max-width: 100%;
    font-size: 18px;
  }

  .leistungen-image-container-principle {
    padding: 15px;
    max-width: 100%;
    font-size: 18px;
  }

  .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-contact p {
    margin: 10px;
    font-size: 14px;
    text-align: center;
  }
}
