@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Acme&family=Bebas+Neue&family=Chelsea+Market&family=Gruppo&family=Kite+One&family=Roboto+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap");

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

:root {
  --clr-primary-h: 124;
  --clr-primary-s: 71%;
  --clr-primary-l: 32%;
  /* Hex #188c1f */
  --clr-primary: hsl(
    var(--clr-primary-h),
    var(--clr-primary-s),
    var(--clr-primary-l)
  );

  --fw-bold: 600;

  --font-family: "Rubik";

  --nav-logo-width: 10rem;

  --section-padding-y: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

body {
  font-family: var(--font-family), sans-serif;
  position: relative;
  overflow-x: hidden;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  padding: 0.7rem 1rem;
  position: fixed;
  z-index: 130;
  background-color: #fff;
  box-shadow: 0 7px 6px -6px rgba(0, 0, 0, 1);
}

.nav-logo {
  width: var(--nav-logo-width);
}

.menu-contact {
  text-transform: uppercase;
  color: var(--clr-primary);
  cursor: pointer;
}

.btn {
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background-color: var(--clr-primary);
  color: #fff;
}

.contact-button {
  font-size: 100%;
  padding: 0.5rem 1rem;
}

.header-contact {
  display: none;
  text-align: right;
  line-height: 1.7;
  color: #999;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-title-wrapper {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 40%;
  width: 100%;
}

.hero-logo {
  width: min(90vw, 1000px);
}

.hero-logo path {
  fill: #fff;
}

.hero-subtitle {
  --fs-hero-sub: 1.6rem;

  position: relative;
  color: #fff;
  font-size: var(--fs-hero-sub);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle::before,
.hero-subtitle::after {
  position: absolute;
  top: 50%;
  content: "";
  width: calc(var(--fs-hero-sub) * 2.7);
  height: calc(var(--fs-hero-sub) * 0.09);
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle::before {
  right: 100%;
  margin-right: calc(var(--fs-hero-sub) * 0.5);
}

.hero-subtitle::after {
  left: 100%;
  margin-left: calc(var(--fs-hero-sub) * 0.5);
}

@media (min-width: 950px) {
  .hero-subtitle {
    --fs-hero-sub: 3.5rem;
  }
}

.hero-image {
  width: 100vw;
  height: 100vh;
  margin: 0 auto;
  position: relative;
}

.hero-image img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;

  --hero-animation-time: 50s;

  animation: move var(--hero-animation-time) linear infinite;
  -ms-animation: move var(--hero-animation-time) linear infinite;
  -webkit-animation: move var(--hero-animation-time) linear infinite;
  -o-animation: move var(--hero-animation-time) linear infinite;
  -moz-animation: move var(--hero-animation-time) linear infinite;
}

@keyframes move {
  0% {
    transform-origin: center;
    transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    -moz-transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    -moz-transform: scale(1.2);
  }
  to {
    transform-origin: center;
    transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    -moz-transform: scale(1);
  }
}

.offers-section {
  display: grid;
  place-content: center;
  background-color: var(--clr-primary);
  position: relative;
  width: 100vw;
  height: 25vh;
}

.pseudo-border {
  height: 2vh;
  background-color: var(--clr-primary);
}

.offer-word {
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

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

.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  text-align: center;
}

.intro-section h1 {
  margin-bottom: 1.2rem;
  hyphens: none;
}

.intro-section p {
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-align: initial;
  max-width: 60ch;
}

.intro-section p:last-of-type {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.gallery-section,
.before-after-section {
  display: flex;
  flex-direction: column;
  color: #fff;
  background-color: var(--clr-primary);
  padding: var(--section-padding-y);
  margin-bottom: 2rem;
}

.section-headline {
  margin-bottom: 2rem;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
}

.gallery-thumbnails img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.before-after-section {
  background-color: #fff;
  color: #000;
}

.ba-image-container {
  position: relative;
  margin-bottom: 1rem;
}

.switch-btn {
  position: absolute;
  z-index: 40;
  top: 95%;
  left: 80%;
  background-color: #fff;
  border: 4px solid var(--clr-primary);
  border-radius: 50%;
  padding: 0.5rem 0.5rem 0.2rem 0.5rem;
}

.switch-btn svg {
  fill: #000;
}

.before-container,
.after-container {
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 1;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .before-container:hover {
    animation: fade 3s cubic-bezier(0.78, 0, 0.23, 1.01) alternate infinite;
  }

  @keyframes fade {
    0% {
      opacity: 1;
    }

    100% {
      opacity: 0;
    }
  }

  .switch-btn {
    display: none;
  }
}

.before-container img,
.after-container img {
  object-position: top left;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.ba-button-container {
  display: flex;
  flex-wrap: wrap;
}

.ba-btn {
  background-color: #ddd;
  color: #999;
  padding: 0.3rem 0.7rem;
  margin: 0.5rem;
  border-radius: 9999px;
  cursor: pointer;
}

.ba-btn.active {
  background-color: var(--clr-primary);
  color: #fff;
}

.legal-notice {
  padding: 20vh 1rem;
  line-height: 1.25;
}

.legal-notice h1 {
  margin-bottom: 1.5rem;
}

.legal-notice p:first-of-type {
  margin-bottom: 1rem;
}

.legal-contact-item {
  display: grid;
  grid-template-columns: 5ch auto;
  column-gap: 0.5rem;
}

.legal-responsible {
  margin: 1rem 0;
}

.privacy > h2 {
  margin: 1rem 0;
}

@media (min-width: 950px) {
  .legal-notice {
    padding: 9rem 0 0 6rem;
    max-width: 70ch;
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 10rem;
  color: #fff;
  background-color: var(--clr-primary);
  margin-top: 20rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer-links a {
  color: inherit;
}

@media (min-width: 950px) {
  :root {
    --nav-logo-width: 14rem;
    --section-padding-y: 2.5rem;
    --section-padding-x: max(3rem, 10vw);
  }

  header {
    padding: 1rem var(--section-padding-x);
  }

  .gallery-section,
  .before-after-section {
    padding: var(--section-padding-y) var(--section-padding-x);
  }

  header .contact-button {
    display: none;
  }

  .header-contact {
    display: block;
  }
}

.contact-modal a {
  color: inherit;
  text-decoration: underline;
}

.contact-modal a[href]::after {
  color: #25d931;
  font-size: 60%;
  line-height: 1.2;
  position: absolute;
  text-decoration: none;
}

@media (hover: none) {
  .contact-modal a[href^="tel:+49177"]::after {
    content: "jetzt anrufen";
    transform: translate(0.75rem, 0rem) rotate(5deg);
  }

  .contact-modal a[href^="mailto"]::after {
    content: "oder Mail schreiben";
    transform: translate(-2rem, 2rem);
    text-decoration: none;
  }
}

@media (hover: hover) {
  .contact-modal a[href^="tel"] {
    text-decoration: none;
  }
}

a[href^="mailto"]::after {
  content: "jetzt Mail schreiben";
  transform: translate(-2rem, 2rem);
}

.contact-modal {
  display: none;
  place-content: center;
  position: fixed;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  color: #fff;
  font-size: 120%;
  line-height: 1.7;
  background-color: var(--clr-primary);
}

.contact-modal p:first-of-type {
  margin-bottom: 3rem;
}

.contact-link {
  display: grid;
  grid-template-columns: 1ch auto;
  column-gap: 0.75rem;
}

.close-button {
  position: absolute;
  top: 5%;
  left: 15%;
  font-size: 200%;
  cursor: pointer;
  color: #fff;
}
