@import url("reset.css");

/*-----------AUFBAU-----------*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --orange: #F69800;
  --white: #ffffff;
  --grey: #F7F7F7;
  --darkgrey: #989898;
  --black: #1A1817;
  --darkorange: #E58D00;
}

section, footer {
  padding: 120px 0;
  background-color: var(--white);
}

section:nth-of-type(even) {
  background-color: var(--grey);
}

.content {
  display: flex;
  width: 75%;
  margin-left: 12.5%;
  gap: 6%;
}

.col {
  flex-basis: 47%;
}

.zentriert {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*-----------FONTGESTALTUNG-----------*/
body {
  font-family: 'urbane';
  font-weight: 200;
}

h1 {
  font-size: 1rem;
  padding: 10px 25px;
  border-radius: 50px;
  background-color: var(--white);
  display: inline-block;
  margin-bottom: 30px;
}

h1::before {
  content: url('../images/before.svg');
  margin-right: 10px;
}

h2 {
  font-size: 1rem;
  padding: 10px 25px;
  border-radius: 50px;
  background-color: var(--grey);
  width: fit-content;
  margin-bottom: 50px;
}

section:nth-of-type(even) h2 {
  background-color: var(--white);
}

h2::before {
  content: url('../images/before.svg');
  margin-right: 10px;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 30px;
}

h3 span {
  color: var(--orange);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 50px;
}

p span {
  color: var(--white);
  width: 26px;
  line-height: 26px;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  display: inline-block;
  background-color: var(--orange);
}

a {
  text-decoration: none;
  color: var(--white);
  transition: 0.3s ease;
}

a:hover {
  color: var(--orange);
}

button {
  border: none;
}

.button {
  font-size: 1rem;
  color: white;
  padding: 10px 25px;
  background-color: var(--orange);
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 50px;
  transition: 0.3s ease;
  cursor: pointer;
}

.button:hover {
  background-color: var(--darkorange);
}

/*-----------NAVI-----------*/
.logo {
  position: fixed;
  width: 100px;
  height: auto;
  top: 20px;
  left: 7%;
  z-index: 997;
  transition: 0.5s ease;
}

.logo.scrolled {
  width: 90px;
  top: 10px;
}

nav {
  position: fixed;
  width: 100%;
  padding: 50px 0;
  top: 0;
  text-align: right;
  z-index: 100;
  transition: 0.5s ease;
}

nav ul {
  margin-right: 7%;
}

nav ul li {
  display: inline-block;
  margin: 0 1.5%;
}

nav ul li a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--black);
  transition: 0.3s ease;
}

nav ul li a:hover {
  color: var(--orange);
}

nav.scrolled {
  background-color: #b7b7b747;
  backdrop-filter: blur(10px);
  padding: 30px 0;
}

.navi {
  display: none;
}

.burger-nav {
  position: fixed;
  right: 7%;
  top: 10px;
  color: #fff;
  z-index: 998;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg) translateY(-50%);
  font-size: 35px;
  cursor: pointer;
  transition: all .4s ease-in-out;
  background-color: var(--orange);
  padding: 25px 10px 30px 10px;
  border-radius: 50px;
}

.burger-nav b {
  transition: all .4s ease-in-out;
  float: left;
  margin-left: 0;
  font-family: 'Roboto';
  font-style: normal;
}

.burger-nav-anim {
  top: -5px;
  color: #fff;
}

.burger-nav-anim b:first-of-type {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.burger-nav-anim b:nth-of-type(2) {
  opacity: 0;
}

.burger-nav-anim b:last-of-type {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  margin-left: -80%;
}

.full-screen-nav {
  position: fixed;
  z-index: 997;
  width: 100%;
  height: 100vh;
  background: var(--orange);
  display: table;
  visibility: hidden;
  transition: all .4s ease-in-out;
  opacity: 0;
}

.full-screen-nav ul {
  text-align: center;
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}

.full-screen-nav ul li a {
  padding: 20px;
  display: block;
  font-size: 30px;
  color: #fff;
  transition: all .4s ease-in-out;
  text-decoration: none;
}

.fadeIn {
  opacity: 1 !important;
  visibility: visible !important;
}

.fadeUp {
  opacity: 1 !important;
  margin-top: 0 !important;
}

/*-----------HEADER-----------*/
header {
  background: url("../images/header.webp") no-repeat;
  height: 100vh;
  width: 100%;
  position: relative;
  background-position-x: left;
  background-position-y: 92%;
  background-size: 115%;
}

.headline {
  position: absolute;
  left: 12.5%;
  top: 40%;
  transform: translate(0, -50%);
  width: 75%;
}

.headline p {
  font-size: 3rem;
  color: var(--orange);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0;
}

.headline p span {
  background: none;
  color: var(--black);
  font-size: 2.1rem;
  width: 50%;
  text-align: left;
  line-height: 1.3;
  font-weight: 300;
  display: block;
}

/*-----------BEREICH1-----------*/
#angebote {
  background-image: url(../images/sonne.svg);
  background-position-x: 110%;
  background-repeat: no-repeat;
  background-size: contain;
}

#angebote .content {
  flex-direction: column;
}

#angebote p {
  width: 50%;
}

.slide {
  display: flex;
  width: 100%;
}

.bildbox {
  position: relative;
  flex-basis: 69%;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.bildbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.7s ease-in-out;
}

.bildbox img:hover {
  transform: scale(1.1);
}

.infobox {
  position: relative;
  flex-basis: 30%;
  height: 300px;
  background-color: var(--grey);
  border-radius: 20px;
  margin-left: 1%;
  padding: 30px;
}

.slide-headline {
  font-size: 1rem;
  padding: 10px 25px;
  border-radius: 50px;
  border: solid 1px var(--orange);
  width: fit-content !important;
  margin-bottom: 20px;
  line-height: 1;
  font-weight: 200;
}

.slide-headline::before {
  content: url('../images/before.svg');
  margin-right: 10px;
}

.btn-background {
  background-color: white;
  border-top-left-radius: 20px;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 80px;
}

.roundbtn {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: orange;
  border-radius: 50px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  cursor: pointer;
}

.roundbtn img {
  height: 20px;
}

.roundbtn:hover {
  transform: rotate(-45deg);
  transition: 0.3s ease;
}

.ecke-r {
  position: absolute;
  right: 0px;
  bottom: 80px;
}

.ecke-l {
  position: absolute;
  bottom: 0px;
  right: 80px;
}

/*-----------BEREICH2-----------*/
#expertise img {
  width: 100%;
}

.imgbox {
  height: 500px;
  background-image: url('../images/energieeffizienz-beratung.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
  overflow: visible;
  position: relative;
}

.imgbox:nth-of-type(2) {
  background-image: url('../images/waermepumpen-technologie.webp');
}

.bildsonne1 {
  position: absolute;
  left: -14%;
  top: -19%;
  transition: 1s ease;
}

.bildsonne2 {
  position: absolute;
  right: -51px;
  top: -51px;
  transition: 1s ease;
}

.bildsonne1:hover, .bildsonne2:hover {
  transform: rotate(180deg);
}

#expertise2 .content:nth-of-type(1) {
  margin-bottom: 120px;
}

#expertise2 p {
  margin-bottom: 0;
}

/*-----------TEAM-----------*/
#team .content {
  flex-direction: column;
}

#team h3 {
  width: 50%;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.team-member {
  height: 400px;
  width: auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.teambild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.5s ease;
}

.teambild:hover {
  transform: scale(1.05);
}

#team .btn-background {
  background-color: var(--grey);
}

.name {
  background: var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  width: fit-content !important;
  line-height: 1;
  position: absolute;
  left: 15px;
  top: 15px;
}

.name-background {
  background-color: var(--grey);
  border-bottom-right-radius: 20px;
  position: absolute;
  left: 0;
  top: 0;
  width: 135px;
  height: 70px;
}

.ecke-l-o {
  position: absolute;
  left: 0px;
  top: 70px;
}

.ecke-r-o {
  position: absolute;
  top: 0px;
  left: 135px;
}

/*-----------Erstanfrage-----------*/
#erstanfrage .imgbox {
  background-image: url(../images/erstanfrage-formular.webp);
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

label {
  margin-bottom: 15px;
}

label#text {
  display: block;
}

input {
  box-sizing: border-box;
  border: solid 1px var(--darkgrey);
  border-radius: 10px;
  padding: 15px;
  font-size: 0.9rem;
}

.frage {
  display: flex;
  flex-direction: column;
}

.radiobuttons {
  display: flex;
  border: solid 1px var(--darkgrey);
  border-radius: 10px;
  padding: 15px;
  font-size: 0.8rem;
  width: fit-content;
  gap: 1rem;
}

.radiobuttons label {
  margin-bottom: 0;
}

.radiobuttons input {
  width: 12px;
}

#baujahr, #wasserverbrauch {
  width: fit-content;
}

.form2 .radiobuttons:nth-of-type(1) {
  margin-bottom: 15px;
}

.adresse {
  display: flex;
}

.flex {
  display: flex;
  gap: 1rem;
}

.frage2 {
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
}

.button-set {
  margin-top: 50px;
}

/*-----------FAQ-----------*/
#faq .content {
  flex-direction: column;
}

.accordion {
  font-family: 'urbane';
  font-weight: 300;
  color: var(--black);
  font-size: 1.4rem;
  background-color: transparent;
  cursor: pointer;
  padding: 30px 0;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.5s ease;
}

.panel {
  background-color: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  border-bottom: solid 1px var(--black);
}

.panel:last-of-type {
  border-bottom: none;
}

.panel p {
  width: 80%;
}

.accordion:after {
  content: '\02795';
  /* Unicode character for "plus" sign (+) */
  font-size: 20px;
  color: var(--black);
  float: right;
  margin-left: 10px;
}

#faq .active:after {
  content: "\2796";
  /* Unicode character for "minus" sign (-) */
}

/*-----------FOOTER-----------*/
footer {
  background-color: var(--black);
}

footer .content {
  border-bottom: solid 1px var(--grey);
  margin-bottom: 30px;
}

footer .col:nth-of-type(1) {
  flex-basis: 70%;
}

footer .col:nth-of-type(2) {
  flex-basis: 30%;
  text-align: right;
}

footer h3 {
  color: var(--white);
}

.kontaktdaten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--white);
}

footer img {
  height: 80%;
}

.rechtliches {
  width: 75%;
  margin-left: 12.5%;
  display: flex;
  gap: 2rem;
}

.rechtliches a {
  color: var(--darkgrey);
  cursor: pointer;
}

.rechtliches a:hover {
  color: var(--orange);
}

/*-----------POPUP+STEPSET-----------*/
:root {
  --popup-background: #FFF;
  --popup-roundness: 10px
}

.popups {
  position: fixed;
  z-index: 998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .65);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition-duration: 300ms
}

.popups.show {
  opacity: 1;
  pointer-events: auto
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .popups {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.popups .popup {
  box-sizing: border-box;
  position: fixed;
  z-index: 999;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--popup-background);
  border-radius: var(--popup-roundness);
  padding: 5vmin;
  max-height: 85vh;
  overflow-y: auto;
  translate: 0 30px;
  transition-duration: 300ms;
  opacity: 0;
  pointer-events: none
}

@media (min-width: 850px) {
  .popups .popup {
    width: min(95%, 1250px);
    transform: translate(-50%, -50%) scale(1.2);
    left: 50%;
    bottom: unset;
    top: 50%;
    translate: 0 0;
    padding: 2vmax
  }
}

.popups .popup.show {
  pointer-events: auto;
  opacity: 1;
  scale: 1;
  translate: 0 0
}

@media (min-width: 850px) {
  .popups .popup.show {
    transform: translate(-50%, -50%) scale(1)
  }
}

.popups .popup .popup-close {
  width: 1.5em;
  aspect-ratio: 1;
  position: sticky;
  top: 0;
  left: 96%;
  background-color: transparent;
  cursor: pointer;
  transition-duration: 250ms
}

@media (min-width: 768px) {
  .popups .popup .popup-close {
    width: 1.2em;
    left: 100%
  }
}

.popups .popup .popup-close::before, .popups .popup .popup-close::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background-color: #303030
}

.popups .popup .popup-close::before {
  transform: rotate(45deg)
}

.popups .popup .popup-close::after {
  transform: rotate(-45deg)
}

.step-set {
  position: relative;
  overflow: hidden;
  min-height: 0;
  transition-duration: 0.5s;

  .step {
    position: absolute;
    width: 100%;
    top: 0;
    left: 110%;
    transition-duration: 0.5s;

    &.active {
      left: 0;
    }

    &.finished {
      left: -110%;
    }
  }

  [data-previous-step],
  [data-next-step],
  [data-step] {
    cursor: pointer;
  }
}

/*-----------RESPONSIVE-----------*/
@media screen and (max-width: 1580px) {
  .headline p span {
    width: 65%;
  }
}

@media screen and (max-width: 1300px) {
  nav ul li {
    display: inline-block;
    margin: 0 1%;
  }

  .headline p span {
    width: 100%;
  }

  #angebote p {
    width: 80%;
  }
}

@media screen and (max-width: 1200px) {
  header {
    background-position-x: center;
    background-size: cover;
  }

  nav {
    display: none;
  }

  .navi {
    display: block;
  }

  .logo {
    left: 10%;
  }

  .content {
    width: 80%;
    margin-left: 10%;
    flex-direction: column;
  }

  .col {
    flex-basis: auto;
  }

  h3 {
    width: 90% !important;
  }

  #angebote {
    background-position-x: 400%;
  }

  #angebote p {
    width: 100%;
  }

  .bildbox, .infobox {
    flex-basis: 50%;
  }

  #expertise img {
    width: 70%;
    margin-left: 15%;
  }

  #expertise2 .content:nth-of-type(1) {
    flex-direction: column-reverse;
  }

  #expertise2 .content:nth-of-type(1) p {
    margin-bottom: 100px;
  }

  #expertise2 .content:nth-of-type(2) p {
    margin-bottom: 50px;
  }

  .imgbox {
    height: 400px;
  }

  .bildsonne1 {
    width: 180px;
    left: -66px;
    top: -16%;
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member {
    height: 400px;
  }

  #kontakt .content .col:nth-of-type(2) {
    display: none;
  }

  .rechtliches {
    margin-left: 10%;
    width: 80%;
  }
}

@media screen and (max-width: 990px) {
  section, footer {
    padding: 100px 0;
  }

  .headline {
    width: 80%;
    left: 10%;
  }

  h3 {
    width: 100% !important;
  }

  .team-member {
    height: 350px;
  }

  form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  #expertise img {
    width: 80%;
    margin-left: 10%;
  }
}

@media screen and (max-width: 900px) {
  .bildbox {
    flex-basis: 40%;
  }

  .infobox {
    flex-basis: 60%;
  }
}

@media screen and (max-width: 750px) {
  .bildsonne1 {
    width: 135px;
  }

  .bildsonne2 {
    width: 90px;
  }
}

@media screen and (max-width: 700px) {
  section, footer {
    padding: 75px 0;
  }

  .burger-nav {
    right: 4%;
  }

  .logo {
    position: absolute;
  }

  .content {
    width: 86%;
    margin-left: 7%;
  }

  .headline {
    left: 7%;
    width: 86%;
    text-align: center;
  }

  .headline p span {
    text-align: center;
  }

  h1 {
    text-align: center;
  }

  h3 {
    font-size: 1.7rem;
  }

  p {
    font-size: 0.9rem;
  }

  label, input {
    font-size: 0.9rem;
  }

  .button {
    font-size: 0.9rem;
  }

  .accordion {
    font-size: 1.2rem;
  }

  .rechtliches {
    margin-left: 7.5%;
    width: 85%;
  }

  .headline p {
    font-size: 2.7rem;
    margin-bottom: 10px;
  }

  .headline p span {
    font-size: 1.7rem;
  }

  .logo {
    left: 7%;
  }

  .slide-headline {
    font-size: 0.9rem;
  }

  .flex {
    flex-direction: column;
  }

  .bildbox {
    display: none;
  }

  .infobox {
    flex-basis: 100%;
    height: 250px;
  }

  .imgbox {
    height: 300px;
  }

  #expertise2 .content:nth-of-type(1) {
    margin-bottom: 75px;
  }

  #expertise img {
    width: 90%;
    margin-left: 5%;
  }
}

@media screen and (max-width: 600px) {
  header {
    background-position-x: -380px;
  }

  .team {
    grid-template-columns: repeat(1, 1fr);
  }

  .team-member {
    height: 350px;
  }

}
