@import url('https://fonts.cdnfonts.com/css/avenir-lt-std');

@font-face {
  font-family: 'Avenir Light';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Avenir Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Avenir Heavy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Avenir Heavy.ttf') format('truetype');
}


/* --- General --- */

:root {
  --clr-primary: #ffc000;
  --clr-primary-hsl-values: 45 100% 50%;
  --clr-text: white;
  --clr-lite: rgba(37, 43, 66, 0.63);
  --clr-grey: #737373;

  --scroller-height: 4.25vw;
}

* {
  box-sizing: border-box;
  font-family: 'Avenir LT Std', sans-serif;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  scroll-behavior: smooth;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
}

ul {
  list-style: none;
}

@media screen and (orientation: landscape) {
  .mobile {
    display: none !important;
  }

  .container {
    max-width: clamp(475px, 80vw, 1140px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (orientation: portrait) {
  .desktop {
    display: none !important;
  }
}

.primary {
  color: var(--clr-primary);
}

/* --- Header --- */

header {
  position: fixed;
  width: 100%;
  margin: 0 auto;
  top: 0;
  z-index: 20;
  transition: transform 0.2s ease;
}

.top-header {
  height: 40px;
  top: 0;
  z-index: 3;
  left: 0;
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, .7);
  color: white;
  transition: all 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* header.hide {
  transform: translateY(-40px);
} */

.top-header ul {
  display: flex;
  width: 100%;
  height: 100%;
  margin-left: auto;
  padding-right: 0;
  justify-content: flex-end;
  align-items: center;
  color: white;
  font-size: 1.3vh;
  font-weight: 500;
}

.top-header li {
  margin-left: 5%;
}

.top-header li:hover {
  cursor: pointer;
}

.top-header img {
  font-size: 1.3vh;
  margin-right: 10px;
  border: none;
  height: 2.5vh;
}

.envelope-icon {
  display: inline-block;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.4vh;
  margin-right: 10px;
}

.top-header .fa-envelope {
  margin-right: 5px;
}

.main-header {
  z-index: 2;
  top: 0;
  padding: 1.5vh 1vw;
  position: sticky;
  background: rgba(0, 0, 0, .5);
  opacity: 1;
}

.logo-container {
  height: 50px;
  width: calc(50px * 6.657);
  transition: all 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

@media screen and (orientation: landscape) {
  .logo-container.small-logo {
    height: 35px;
    width: calc(35px * 6.657);
  }
}

.logo-container:hover {
  cursor: pointer;
}

.desktop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  list-style: none;
}

.main-nav li {
  position: relative;
  line-height: 2.4;
  font-size: 1.4vh;
  letter-spacing: .2px;
  font-weight: 600;
}

.main-nav li.active {
  color: var(--clr-primary);
}

.mobile-nav li.active {
  color: var(--clr-primary);
}

.main-nav li:after {
  content: '';
  bottom: 0;
  height: 3px;
  width: 0%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  display: block;
  background: var(--clr-primary);
}

.main-nav li:hover:after {
  transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 70% !important;
}

.main-nav li a {
  padding: 0 2vw;
  font-size: 1.5vh;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
}

.main-nav li:hover a {
  transform: translateY(-2px);
  color: var(--clr-primary);
  -webkit-text-stroke: .3px var(--clr-primary);
}

/* --- Home --- */

#home {
  height: 100vh;
  width: 100%;
}

.carousel {
  position: absolute;
  z-index: -1;
  filter: brightness(.4);
  overflow: hidden;
  width: 100%;
  height: 100vh;
  background: black;
}

.carousel img {
  min-width: 100vw;
  min-height: 100vh;
  height: 100%;

  object-fit: cover;
  vertical-align: middle;
}

.carousel .panel {
  position: absolute;
  min-height: 100vh;
  height: 100%;
}

.carousel .panel:nth-of-type(1) {
  animation-name: fader;
  animation-iteration-count: infinite;
  animation-duration: 12s;
  z-index: -1;
}

.carousel .panel:nth-of-type(2) {
  animation-name: fader;
  animation-iteration-count: infinite;
  animation-delay: -8s;
  animation-duration: 12s;
  z-index: -2;
}

.carousel .panel:nth-of-type(n+3) {
  animation-name: fader;
  animation-iteration-count: infinite;
  animation-delay: -4s;
  animation-duration: 12s;
  z-index: -3;
}

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

  3% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  36% {
    opacity: 0;
  }

  97% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.title-scroller {
  height: var(--scroller-height, 5.5vw);
  overflow-y: hidden;
  text-align: center;
  position: relative;
}

.title-scroller .title {
  -webkit-animation: title-scroll 12s infinite;
  -moz-animation: title-scroll 12s infinite;
  -o-animation: title-scroll 12s infinite;
  animation: title-scroll 12s infinite;
}

@keyframes title-scroll {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(0);
  }

  36% {
    transform: translateY(calc(var(--scroller-height, 4.25vw) * -1));
  }

  63% {
    transform: translateY(calc(var(--scroller-height, 4.25vw) * -1));
  }

  69% {
    transform: translateY(calc(var(--scroller-height, 4.25vw) * -2));
  }

  97% {
    transform: translateY(calc(var(--scroller-height, 4.25vw) * -2));
  }

  100% {
    transform: translateY(0);
  }
}

.home__content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.title-scroller .title {
  font-size: calc(var(--scroller-height, 5.5vw) - calc(var(--scroller-height, 5.5vw) * 0.2));
  padding-top: calc(var(--scroller-height, 5.5vw) * 0.2);
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 500;
  -webkit-text-stroke: 2px;
  letter-spacing: 4px;
  text-shadow: 1px 1px 3px rgb(0 0 0 / 30%);
  font-family: 'Avenir Heavy', sans-serif;
}

.subt {
  text-transform: uppercase;
  font-size: 1.7vh;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  position: relative;
  text-align: center;
}

.arrow {
  color: var(--clr-primary);
  font-size: 5vh;
  position: absolute;
  top: 9vh;
  left: 50%;
  transform: translateX(-50%);
}

/* --- About --- */

#about {
  background: rgba(0, 0, 0, .4) url('assets/images/4.2.\ Ü.\ Hintegrund.jpg') center center no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-blend-mode: darken;
}

#about .container {
  padding: 15vh 0;
}

.section-title {
  text-align: center;
  font-size: 2.3vw;
  font-weight: 100;
  color: white;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.7em;
  margin-bottom: 1.4em;
  line-height: 1;
}

.section-title:after {
  content: '';
  bottom: 0;
  height: 3px;
  width: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  position: absolute;
  background: var(--clr-primary);
}

#about .content {
  background-color: white;
  padding: 8vh 1vw 7vh 1vw;
  display: grid;
  grid-template-columns: 49% 49%;
  gap: 2%;
  max-width: 100%;
}

.about-text {
  text-align: left;
}

.about-text p {
  margin: 1em 0;
  font-size: 1.05vw;
  font-weight: 100;
  line-height: 1.3;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-text h2 {
  font-size: 2vw;
  line-height: 1;
  font-weight: 600;
}

.about-img {
  background: url('assets/images/4.1.\ Über\ uns.jpeg') center center no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* --- Offer --- */

#offer {
  background: rgba(0, 0, 0, .82) url('assets/images/4.1.\ Über\ uns.jpeg');
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  min-height: 100vh;
  padding-bottom: 15vh;
}

#offer .container {
  padding-top: 13vh;
}

#offer .section-title {
  font-weight: 100;
}

.card-grid {
  justify-content: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 0.5vw;
  row-gap: 0.5vw;
  height: 80vh;
}

.card-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsla(0, 0%, 20%, .7);
  transition: all 0.5s cubic-bezier(0, 0, 0, 1);
}

.card-text {
  color: white;
  position: absolute;
  z-index: 2;
  left: 1em;
  top: 50%;
  transform: translateY(-1em);
  line-height: 1.3;
  font-weight: 600;
  font-size: 1vw;
}

.card-text::first-line {
  color: var(--clr-primary);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0.5em hsl(var(--clr-primary-hsl-values) / .5);
  z-index: 4;
  cursor: pointer;
}

/* --- FAQ --- */

#faq {
  background: rgba(0, 0, 0, .1) url('assets/images/14.\ Kontakt.jpg') center center no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-blend-mode: overlay;
  height: 100vh;
}

#faq .section-title {
  text-shadow: 0 0 0.3em black;
}

#faq .container {
  padding: 15vh 0;
}

.q-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5vh;
}

.q-container .left-col,
.q-container .right-col {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5vh;
}

.question {
  width: 100%;
  background: hsla(0, 0%, 20%, 0.9);
  color: white;
  font-size: 1.7vh;
  line-height: 1.3;
  padding: 1vh 1vw;
  max-height: 5.5vh;
  display: grid;
  grid-template-columns: 92% 8%;
  align-items: center;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.question .open-arrow {
  text-align: right;
  color: var(--clr-primary);
}

.question:hover {
  cursor: pointer;
}

.question .open-arrow i {
  font-size: 2em;
  transition: transform 0.15s cubic-bezier(0.49, -0.04, 0.32, 0.99);
}

.question .answer {
  padding-top: 1.5vh;
  line-height: 1.3;
  font-size: 1.5vh;
  font-family: 'Avenir Light', sans-serif;
  font-weight: 100;
  color: white;
}

.question.opened {
  max-height: 100vh;
}

.question.opened .open-arrow i {
  transform: rotate(90deg);
}

/* --- Contact --- */

#contact {
  background: rgba(0, 0, 0, .7) url('assets/images/14.\ Kontakt.jpg') center center no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-blend-mode: overlay;
  height: 100vh;
}

#contact .container {
  height: 100%;
  color: white;
}

#contact h2 {
  padding-block: 30vh 5vh;
  font-size: 3.2vw;
  line-height: 1;
  font-weight: 700;
  color: var(--clr-primary);
  text-align: center;
}

#contact .contact-form {
  display: grid;
  grid-template-columns: 35% 60%;
  margin-top: 2rem;
  gap: 0.5rem;
}

@media only screen and (orientation: landscape) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form #msg {
    grid-row: 1 / span 3;
    grid-column: 2;
  }

  .contact-form #submit {
    grid-column: 2;
  }

  .contact-content input {
    height: 4rem;
  }
}

.contact-content a {
  text-decoration: underline;
}

.contact-content input,
.contact-content textarea {
  padding: 0.8rem;
  outline: none;
  border: none;
  border-radius: 0;
  color: black;
  font-size: 1.2em;
}

.contact-form .callback-checkbox {
  display: flex;
  align-items: center;
  height: fit-content;
  gap: 0.5rem;
}

.contact-form .callback-checkbox input {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-form .info {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-form #submit {
  width: fit-content;
  padding: 1.2rem 2.5rem;
  font-family: "Helvetica Neue";
  font-weight: 400;
  color: white;
  background-color: #212529;
  cursor: pointer;
  place-self: flex-end;
}

.contact-form #submit:hover {
  background-color: hsl(210, 11%, 25%);
}

.contact-form #submit:active {
  border: 1px solid grey;
}

/* --- SimpleContent --- */

.simpleContent {
  padding-top: 17.5vh;
}

.simpleContent .container {
  position: relative;
}

.closer {
  overflow: hidden;
  position: fixed;
  right: 5vw;
  width: 4vh;
  height: 4vh;
}

.closer:hover {
  cursor: pointer;
}

.closer::before,
.closer::after {
  background-color: hsl(0, 0%, 80%);
  content: '';
  display: block;
  height: 2px;
  left: 0;
  position: absolute;
  transform-origin: center left;
  width: 5.6vh;
  z-index: -1;
}

.closer::before {
  top: 0;
  transform: rotate(45deg);
}

.closer::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.simpleContent .title {
  padding-top: 7.5vh;
  color: var(--clr-primary);
  font-size: 2.6vw;
  line-height: 1.1;
}

.simpleContent .title:first-of-type {
  padding-top: 7.5vh;
}

.simpleContent .content {
  color: white;
  padding-top: 2vh;
}

.simpleContent .content:last-of-type {
  padding-bottom: 10vh;
}

.simpleContent .content p {
  margin: 1em 0;
  line-height: 1.3;
}

/* --- OfferPage --- */

.offerPage .closer {
  top: 17.5vh;
}

.offerPage .container {
  padding-top: 47vh;
  color: white;
}

.offerPage .title {
  position: absolute;
  transform: translateY(-100%);
  font-size: 2.4vw;
  line-height: 1.1;
}

.offerPage .title::first-line {
  color: var(--clr-primary);
}

.offerPage .content {
  font-size: 1.3vw;
  padding-top: 3vh;
  line-height: 1.3;
  font-weight: 300;
  width: 60%;
}

.offerPage .content p {
  margin: 1em 0;
  line-height: 1.3;
}

/* Mobile */

@media screen and (orientation: landscape) and (max-width: 1000px) {
  .logo-container {
    height: 5vw;
  }

  .logo-container.small-logo {
    height: 3.5vw;
  }
}

@media screen and (orientation: portrait) {

  :root {
    --scroller-height: max(1.8vh, 7vw);
  }

  /* --- Header --- */

  header {
    background-color: rgba(0, 0, 0, .8);
  }

  .main-header img.lang {
    font-size: 1.3vh;
    border: none;
    height: 2.5vh;
  }

  .main-header {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .header-right>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-right: 5px;
  }

  .header-right a {
    display: flex;
    align-items: center;
  }

  .mobile-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    transform: translateY(100%) translateY(-1px);
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, .8);
    width: 100%;
  }

  .mobile-nav ul {
    padding-bottom: 2vh;
  }

  .mobile-nav.opened-nav {
    max-height: 50vh;
  }

  .mobile-nav li {
    padding: 1em 0;
    margin: 0 10vw;
    font-size: 1.8vh;
    border-bottom: 1px solid white;
    display: grid;
    grid-template-columns: 50% 50%;
  }

  .mobile-nav li:first-of-type {
    border-top: 1px solid white;
  }

  .mobile-nav li>div:first-child,
  .mobile-nav li>a:first-child {
    padding-left: 1em;
  }

  .mobile-nav i.fa-envelope {
    margin-right: .6em;
  }

  header.hide {
    transform: none;
  }

  .menu-icon {
    height: 10vw;
    width: 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-container {
    height: 8vw;
    width: calc(8vw * 6.657);
    display: flex;
    align-items: center;
  }

  /* --- Home --- */

  .title-scroller .title {
    /* font-weight: 800; */
    -webkit-text-stroke: 0.3px;
    letter-spacing: .2px;
  }

  .title-scroller .title {
    -webkit-animation: title-scroll-mobile 12s infinite;
    -moz-animation: title-scroll-mobile 12s infinite;
    -o-animation: title-scroll-mobile 12s infinite;
    animation: title-scroll-mobile 12s infinite;
  }

  @keyframes title-scroll-mobile {
    0% {
      transform: translateY(0);
    }

    30% {
      transform: translateY(0);
    }

    36% {
      transform: translateY(calc(var(--scroller-height, max(1.8vh, 7vw)) * -1));
    }

    63% {
      transform: translateY(calc(var(--scroller-height, max(1.8vh, 7vw)) * -1));
    }

    69% {
      transform: translateY(calc(var(--scroller-height, max(1.8vh, 7vw)) * -2));
    }

    97% {
      transform: translateY(calc(var(--scroller-height, max(1.8vh, 7vw)) * -2));
    }

    100% {
      transform: translateY(0);
    }
  }

  .subt {
    font-size: 3vw;
    letter-spacing: .2px;
    margin-top: 1vh;
  }

  .arrow {
    top: 5vh;
  }

  .panel {
    display: flex;
    justify-content: center;
  }

  .panel img {
    height: max(100%, 100vh);
    width: 100%;
  }

  /* --- About --- */

  #about {
    min-height: 100vh;
  }

  #about .container {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .section-title {
    font-size: 5.3vw;
    letter-spacing: 1.6px;
  }

  .section-title:after {
    width: 12vw;
  }

  #about .content {
    display: flex;
    flex-direction: column;
    gap: 3vh;
    padding: 3vh 3vw;
  }

  .about-img {
    height: 20vh;
  }

  #about h2 {
    font-size: 5.2vw;
    margin-bottom: 2vh;
  }

  #about p {
    margin: 1vh 0;
    font-size: 4.5vw;
  }

  /* --- Offer --- */

  #offer {
    min-height: 100vh;
    height: fit-content;
  }

  .card-grid {
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding-bottom: 0.5vw;
  }

  .card {
    height: 60vw;
  }

  .card-text {
    font-size: 5.5vw;
    left: 6vw;
    width: calc(100% - 12vw);
  }

  .card-text:after {
    content: '+';
    font-weight: 600;
    font-size: 6vw;
    color: var(--clr-primary);
    position: absolute;
    right: 0;
    top: 1em;
    z-index: 10;
  }

  /* --- FAQ --- */

  #faq .section-title {
    margin-bottom: 0.7em;
  }

  .faq-subt {
    text-shadow: 0 0 0.3em black;
    text-transform: uppercase;
    text-align: center;
    color: white;
    font-size: 4.5vw;
    margin-bottom: 1em;
    line-height: 1;
    font-weight: 100;
  }

  .q-container {
    width: 88vw;
    margin: 0 auto;
    height: 66vh;
    flex-direction: column;
    overflow-y: auto;
    justify-content: unset;
  }

  .q-container .left-col {
    width: 100%;
  }

  .question {
    padding: 3vh 3vw;
    max-height: 9.4vh;
    line-height: 1.3;
  }

  .question .answer {
    padding-top: 3.5vh;
  }

  /* --- Contact --- */

  #contact .container {
    position: relative;
    padding: 0 6vw;
  }

  #contact h2 {
    font-size: 10vw;
    padding-block: 20vh 0;
  }

  #contact .contact-form {
    margin-top: 5vh;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .contact-form #msg {
    height: 5em;
  }

  .contact-form .info {
    font-size: 0.8em;
  }

  /* --- SimpleContent --- */

  .simpleContent .closer {
    top: 10vh;
  }

  .simpleContent .container {
    padding: 0 6vw;
  }

  /* --- OfferPage --- */

  .offerPage .container {
    padding-left: 6vw;
  }

  .offerPage .closer {
    top: 10vh;
  }

  .offerPage .title {
    font-size: 5.3vw;
    width: 60%;
    line-height: 1.3;
  }

  .offerPage .content {
    width: 90%;
    font-size: 3.9vw;
    padding-top: 1em;
  }

}

@media screen and (orientation: portrait) and (min-width: 500px) {
  #about p {
    font-size: 3.7vw;
    line-height: 1.1;
  }
}