:root {
  --main-color: hsl(228, 100%, 94%);
  --second-color: rgb(255, 255, 255);
  --max-width: 1350px;
  --font-family: "Arial";
  --text-color: rgb(0, 0, 0);
  --box-shadow: 0 5px 10px rgba(0, 0, 0, 0.07);
  --third-color: rgb(233, 231, 231);
  --fs-base: clamp(0.95rem, 1.1vw, 1.05rem);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: auto;
}

/* CLAMPS */

h1 {
  font-size: clamp( 1.3rem, 2.3vw, 2rem);
}

h2 {
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-weight: 500;
}

/* HEADER UND NAVIGATION */

header {
  background-color: rgb(255, 255, 255);
  width: 100%;
}

.header-max {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  background-color: var(--second-color);
  width: 100%;
  height: 87px;
  z-index: 1;
  opacity: 0.97;
}

.head {
  max-width: 1165px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: .8rem;
  font-family: var(--font-family);
  right: 0;
  left: 0;
  top: 0;
  position: fixed;
  background-color: var(--second-color);
}

#logo img {
  width: 16.8%;
  height: auto;
}
/* gilt für beide logos oben unten */
.logohover:hover {
  transform: scale(1.05);
  transition: ease 0.5s;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  position: relative;
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: .92rem;
}

nav .underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.head span {
  background-color: white;
  border: 2.5px solid var(--main-color);
  padding: .55rem 1.3rem;
  border-radius: 1rem;
}

nav span:hover {
  background-color: var(--main-color);
  color: rgb(255, 255, 255);
  transition: linear .3s;
}

/* 1 PART */

.article1 {
  background-color: var(--second-color);
  box-shadow:var(--box-shadow);
}

#section1 {
  max-width: 1300px;
  display: flex;
  align-items: center;
  margin: auto;
  font-family: var(--font-family);
  padding: 0.5rem;
}

.heading {
  display: flex;
  align-items: center;
  padding-top: 8rem; padding-bottom: 3.5rem;
  gap: 1.5rem;
}

.heading img {
  width: 20%;
  border-radius: .5rem;
  box-shadow: var(--box-shadow);
}

/* 2 PART */

.uebersicht {
  background-color: var(--main-color);
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: center;
  padding-top: 3rem; padding-bottom: 3rem;
}

.uebersicht-div {
  max-width: var(--max-width);
  margin: auto 0;
  display: grid;
  justify-content: center;
  text-align: center;
  font-family: var(--font-family);
  color: var(--text-color);
}

.uebersicht-div-div h3 {
  font-weight: 600;
}

.uebersicht-div-div {
  display: flex;
  justify-content: center;
  align-content: center;
  text-align: center;
  gap: 10rem;
  padding: 1rem;
}

.uebersicht-div-div img {
  width: 60%;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.uebersicht-div-div img:hover {
  transition: ease .3s;
  transform: perspective(800px) rotateY(8deg) rotateX(3deg) scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

/* 3 PART */

main {
  background-color: var(--scond-color);
  box-shadow:var(--box-shadow);
  display: flex;
  justify-content: center;
}

#section2 {
  max-width: var(--max-width);
  width: 1300px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  padding-top: 3rem; padding-bottom: 3rem;
}

#section2 img {
  width: 22%;
  padding: 1rem;
}

#dienstleistungen img {
  transition:
    transform 0.45s cubic-bezier(0.77, 0, 0.175, 1),
    filter 0.45s ease,
    opacity 0.45s ease;
  transform-origin: center;
  opacity: 0.92;
}

#dienstleistungen img:hover {
  transform: scale(1.030) translateY(-2px);
  filter: contrast(1.12) brightness(1.04);
  opacity: 1;
}

.section2-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem;
}

.section2-div-2 {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 1rem;
}

#section2 h2 {
  margin-left: 2rem;
}

#section2 li {
  padding: .5rem;
}

#Projekte {
  scroll-margin-top: 250px;
}

#Prozesse {
  scroll-margin-top: 250px;
}

#Menschen {
  scroll-margin-top: 250px;
}

/* 4 PART */

.Branchen {
  font-family: var(--font-family);
  box-shadow:var(--box-shadow);
  padding: 3rem 1rem 3rem 1rem;
}

#Branchen {
  scroll-margin-top: 200px;
}

.Branchen-1 {
  max-width: var(--max-width);
  margin: 0 auto;
}

.Branchen-2 {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.branchen-accordion {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
}

.accordion-header::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 20px;
  transition: 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  content: "−";
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content p {
  padding: 0 0 18px 0;
  margin: 0;
  line-height: 1.6;
}

/* 5 PART */



/* 6 PART */

.section4 {
  color: var(--text-color);
  box-shadow: var(--box-shadow);
}

.section4 div {
  font-family: var(--font-family);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  justify-content: center;
  text-align: center;
  justify-items: center;
  padding-top: 3rem; padding-bottom: 3rem;
}

.section4-werte {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
}

.section4-werte div {
  padding: 1rem;
}

.section4-werte img {
  width: 55% ;
  transition: transform 0.4s ease;
}

.section4-werte img:hover {
  transform: translateY(-10px) scale(1.05);
}

/* 7 PART */

#erfahrung {
  display: flex;
  justify-content: center;
  font-family: var(--font-family);
  box-shadow:var(--box-shadow);
}

.section3 {
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0.5rem;
  padding-bottom: 4rem; padding-top: 4rem;
}

.section3 img {
  width: 250px;
  border-radius: 2rem;
  /* width: 400px;
  height: 400px;
  border-radius: 50%; */
  box-shadow:var(--box-shadow);
}

/* 8 PART */

.Wegbegleiter {
  font-family: var(--font-family);
  background-color: var(--main-color);
  box-shadow:var(--box-shadow);
  margin: 0 auto;
  padding: 4rem 1rem 4rem 1rem;
}

.Wegbegleiter-0 {
  max-width: 1000px;
  margin: 0 auto;
}

.Wegbegleiter-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.Wegbegleiter-2 img {
  width: 100%;
}

.Wegbegleiter-2 a {
  width: 270px;
}

.Wegbegleiter-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  padding-top: 1rem; padding-bottom: 1rem;
}

/* FOOTER */

footer {
  font-family: var(--font-family);
    box-shadow:var(--box-shadow);
  margin: auto;
  padding-top: 4rem; padding-bottom: 5rem;
}

.foot {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.foot div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.foot a {
  background-color: white;
  border: 2.5px solid var(--main-color);
  padding: .55rem 1.3rem;
  border-radius: 1rem;
}

.foot a:hover {
  background-color: var(--main-color);
  color: rgb(255, 255, 255);
  transition: linear .3s;
}

.foot a {
  text-decoration: none;
  color: black;
}

.foot img {
  width: 14%;
}

/* IMPRESSUM UND DATENSCHUTZ */

.section5 {
  background-color: var(--third-color);
  font-family: var(--font-family);
}

.protect {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-bottom: 1.2rem;
}

.protect a {
  text-decoration: none;
  color: var(--text-color);
}

.protect a:hover {
  color: rgb(75, 75, 75);
}

/* Scroll-Animationen */

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

/* Richtungen */
.animate-on-scroll.from-bottom {
  transform: translateY(50px);
}

.animate-on-scroll.from-top {
  transform: translateY(-50px);
}

.animate-on-scroll.from-left {
  transform: translateX(-60px);
}

.animate-on-scroll.from-right {
  transform: translateX(60px);
}

/* Sobald im Viewport */
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

@media (max-width: 1027px) {
  .section3 img {
    /* width: 300px ;
    height: 300px; */
    width: 200px;
    border-radius: 2rem;
  }

  .Kundenerfahrung {
  background-color: var(--main-color);
  font-family: var(--font-family);
  box-shadow:var(--box-shadow);
  margin: 0 auto;
  padding: 0rem 1rem 3rem 1rem;
}

  .Kundenerfahrung > div {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: var(--max-width);
  }

  .Bewertung img {
    width: 200px;
    height: 200px;
    border-radius: 20%;
    box-shadow:var(--box-shadow);
  }
}

@media (max-width:768px) {
  .mobile {
    display: none;
  }

  .heading p {
    display: none;
  }

  .heading img {
    width: 25%;
  }

  #logo img {
  width: 25%;
  height: auto;
  }

  #section2 > div {
    display: flex;
    flex-direction: column;
  }

  .Kundenerfahrung > div {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: var(--max-width);
  }

  .Bewertung img {
    display: none;
  }

  .uebersicht-div-div {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .uebersicht-div-div img {
    width: 30%;
  }

  .uebersicht-div-div h3 {
    margin: 0;
  }

  .uebersicht-div-div div {
    display: flex;
    flex-direction: column-reverse;
  }

  .section4-werte {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }

  .section4-werte img {
    width: 40%;
  }

  .section3 img {
    /* width: 250px ;
    height: 250px; */
    width: 150px;
    border-radius: 2rem;
  }

  .section3 {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .section3 p {
    padding: 1rem;
  }

  footer {
    padding-top: 4rem; padding-bottom: 4rem;
  }

  .foot {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .foot h4 {
    display: none;
  }
}

@media (max-width: 576px) {
 .header-max {
  width: 100%;
  height: 80px;
}
}

@media (max-width: 500px) {
 .header-max {
  width: 100%;
  height: 70px;
}
}